Buda Mcp

io.github.gtorreal由 GitHub 帳號 gtorreal 發布v2.0.0更新於 Oct 24, 2026

Buda.com market data: prices, spreads, OHLCV, order books, trades, and volume for CLP, COP, PEN.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

針對 Buda.com 加密貨幣交易所行情資料的唯讀 MCP 伺服器,讓助理取得即時價格、訂單簿、成交、技術指標並模擬下單。

可以做什麼
查詢市場與交易對、行情快照、附流動性評級的市場摘要,並依基礎幣種跨計價幣種比較交易對。讀取訂單簿、近期成交、24 小時與 7 日成交量以及買賣價差。取得 OHLCV 價格歷史,計算技術指標(RSI、MACD、布林通道、移動平均)與綜合情緒分數。辨識 CLP、COP、PEN 市場之間的跨國價差。模擬買賣訂單與報價,並依凱利法則計算部位規模。依法幣列出可用的出入金銀行。
適用情境
適合讓助理回答智利、哥倫比亞與秘魯 Buda.com 市場的問題,或分析價格、價差、成交量、技術訊號與假設訂單成本,而不必真的下單。
執行需求
以 Node.js 本機程序執行,通常透過 npx 或全域 npm 安裝;stdio 伺服器不需要帳號、API 金鑰或環境變數。需要能連線至 Buda.com 的公開 API 端點。
安裝前請注意
所有工具皆為唯讀,不會真正下單,模擬結果會明確標示。行情資料、指標、情緒分數與部位計算僅供參考,不構成投資建議。伺服器會向 Buda.com 公開 API 發出請求,因此查詢內容與市場識別碼會傳送給該第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Buda Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

buda-mcp

[npm version] [License: MIT] [Node.js >=18]

MCP server for Buda.com — the leading cryptocurrency exchange in Chile, Colombia, and Peru. Gives any MCP-compatible AI assistant live access to market data, order books, trade history, spreads, technical indicators, and price simulation — no account or API key required.


Quick Start

bash
npx @guiie/buda-mcp

Or install permanently:

bash
npm install -g @guiie/buda-mcpbuda-mcp

Install in your MCP client

Claude Code

bash
claude mcp add buda-mcp -- npx -y @guiie/buda-mcp

Claude Desktop (claude_desktop_config.json)

json
{  "mcpServers": {    "buda-mcp": {      "command": "npx",      "args": ["-y", "@guiie/buda-mcp"]    }  }}

Cursor (~/.cursor/mcp.json)

json
{  "mcpServers": {    "buda-mcp": {      "command": "npx",      "args": ["-y", "@guiie/buda-mcp"]    }  }}

Tools

All tools are public — no API key or account required.

get_market_summary ⭐ Start here

One-call summary: last price, bid/ask, spread %, 24h volume, price change, and liquidity_rating (high / medium / low). Best first tool when a user asks about any specific market.

ParameterTypeRequiredDescription
market_idstringYesMarket ID (e.g. BTC-CLP).

get_markets

List all trading pairs on Buda.com, or get details for a specific market (fees, minimum order size, discount tiers).

ParameterTypeRequiredDescription
market_idstringNoMarket ID (e.g. BTC-CLP). Omit to list all markets.

get_ticker

Current snapshot: last price, best bid/ask, 24h volume, and price change over 24h and 7d.

ParameterTypeRequiredDescription
market_idstringYesMarket ID (e.g. BTC-CLP, ETH-COP).

get_orderbook

Current order book: sorted bids and asks as {price, amount} objects.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
limitnumberNoMax price levels per side (default: all).

get_trades

Recent trade history as typed objects: {timestamp_ms, amount, price, direction}.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
limitnumberNoNumber of trades (default 50, max 100).
timestampnumberNoUnix seconds — returns trades older than this (pagination).

get_market_volume

24h and 7-day transacted volume by side (bid = buys, ask = sells).

ParameterTypeRequiredDescription
market_idstringYesMarket ID.

get_spread

Bid/ask spread: absolute value and percentage of the ask price.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.

compare_markets

Side-by-side ticker data for all pairs of a given base currency across all quote currencies.

ParameterTypeRequiredDescription
base_currencystringYesBase currency (e.g. BTC, ETH).

get_price_history

OHLCV candles aggregated from raw trade history (Buda has no native candlestick endpoint). Supports 5m, 15m, 30m, 1h, 4h, 1d periods.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
periodstringNo5m / 15m / 30m / 1h / 4h / 1d (default 1h).
limitnumberNoRaw trades to fetch before aggregation (default 100, max 1000).

get_arbitrage_opportunities

Detects cross-country price discrepancies for an asset across Buda's CLP, COP, and PEN markets, normalized to USDC.

ParameterTypeRequiredDescription
base_currencystringYese.g. BTC.
threshold_pctnumberNoMinimum discrepancy to report (default 0.5).

simulate_order

Simulates a buy or sell order using live ticker data — no order is ever placed. Returns estimated_fill_price, fee_amount, total_cost, slippage_vs_mid_pct. All responses include simulation: true.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
sidebuy | sellYesOrder side.
amountnumberYesOrder size in base currency.
pricenumberNoOmit for market order simulation.

calculate_position_size

Kelly-style position sizing from capital, risk %, entry, and stop-loss. Fully client-side — no API call.

ParameterTypeRequiredDescription
market_idstringYesMarket ID (for context).
capitalnumberYesTotal capital to size from.
risk_pctnumberYes% of capital to risk (0.1–10).
entry_pricenumberYesEntry price.
stop_loss_pricenumberYesStop-loss price.

get_market_sentiment

Composite sentiment score (−100 to +100) from three components: 24h price variation (40%), volume vs 7-day average (35%), spread vs market-type baseline (25%). Returns score, label, component_breakdown, and a disclaimer.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.

get_technical_indicators

RSI (14), MACD (12/26/9), Bollinger Bands (20, 2σ), SMA 20, SMA 50 — computed server-side from Buda trade history (no external libraries). Returns signal interpretations and a structured warning if fewer than 20 candles are available. Includes disclaimer.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
periodstringNo1h / 4h / 1d (default 1h).
limitnumberNoRaw trades to fetch (500–1000).

get_real_quotation

Returns a real-time quotation for a given order amount and direction, showing exact fill price, fee, and balance changes without placing an order.

ParameterTypeRequiredDescription
market_idstringYesMarket ID.
typeBid | AskYesOrder side.
amountnumberYesOrder size in base currency.
limit_pricenumberNoLimit price for limit quotations.

get_available_banks

Lists available banks for fiat deposits/withdrawals in a given currency's country.

ParameterTypeRequiredDescription
currencystringYesFiat currency code (e.g. CLP, COP, PEN).

MCP Resources

In addition to tools, the server exposes MCP Resources that clients can read directly:

URIDescription
buda://marketsJSON list of all Buda.com markets
buda://ticker/{market}JSON ticker for a specific market (e.g. buda://ticker/BTC-CLP)
buda://summary/{market}Full market summary with liquidity rating (e.g. buda://summary/BTC-CLP)

Markets covered

QuoteCountrySample pairs
CLPChileBTC-CLP, ETH-CLP, SOL-CLP
COPColombiaBTC-COP, ETH-COP, SOL-COP
PENPeruBTC-PEN, ETH-PEN
USDCUSD-peggedBTC-USDC, USDT-USDC
BTCCrossETH-BTC, LTC-BTC, BCH-BTC

Build from source

bash
git clone https://github.com/gtorreal/buda-mcp.gitcd buda-mcpnpm installnpm run buildnode dist/index.js        # stdio (for MCP clients)node dist/http.js         # HTTP on port 3000 (for Railway / hosted)

Run tests:

bash
npm run test:unit        # 100 unit tests, no network requirednpm run test:integration # live API tests (skips if unreachable)npm test                 # both

HTTP / Railway deployment

The dist/http.js entrypoint runs an Express server with:

  • POST /mcp — Streamable HTTP MCP transport
  • GET /mcp — SSE streaming transport
  • GET /health — health check ({ status })
  • GET /.well-known/mcp/server-card.json — Smithery-compatible static tool manifest

Environment variables

VariableRequiredDescription
PORTNoHTTP listen port (default: 3000)
MCP_RATE_LIMITNoMax requests per IP per minute on /mcp (default: 120)
TRUST_PROXY_HOPSNoNumber of reverse-proxy hops to trust for X-Forwarded-For (default: 1).

Security

The server exposes only public Buda.com API endpoints. No credentials are accepted or stored. Input validation is applied to all tool parameters to prevent prompt injection. Error messages are sanitized — internal details (paths, upstream errors) are logged to stderr only and never returned to callers.

Reporting vulnerabilities

Please report security issues privately via GitHub Security Advisories — not as public issues. See SECURITY.md for the full disclosure policy.


Project structure

src/  client.ts                   BudaClient (HTTP + 429 retry)  cache.ts                    In-memory TTL cache with in-flight deduplication  types.ts                    TypeScript types for Buda API responses  validation.ts               validateMarketId(), validateCurrency()  utils.ts                    flattenAmount(), aggregateTradesToCandles(), getLiquidityRating()  version.ts                  Single source of truth for version string  index.ts                    stdio MCP server entrypoint  http.ts                     HTTP/SSE MCP server entrypoint  tools/    markets.ts                get_markets    ticker.ts                 get_ticker    orderbook.ts              get_orderbook    trades.ts                 get_trades    volume.ts                 get_market_volume    spread.ts                 get_spread    compare_markets.ts        compare_markets    price_history.ts          get_price_history    arbitrage.ts              get_arbitrage_opportunities    market_summary.ts         get_market_summary    simulate_order.ts         simulate_order    calculate_position_size.ts calculate_position_size    market_sentiment.ts       get_market_sentiment    technical_indicators.ts   get_technical_indicators    banks.ts                  get_available_banks    quotation.ts              get_real_quotationmarketplace/  cursor-mcp.json             Cursor MCP config example  claude-listing.md           Claude registry listing  openapi.yaml                OpenAPI spec (GPT Actions / HTTP wrapper)  gemini-tools.json           Gemini function declarations

Documentation

Agent context: AGENTS.md | Operational notes: docs/PROJECT_MEMORY.md | Changelog: CHANGELOG.md | Security: SECURITY.md


License

MIT — Buda.com API docs

來源:README.md,提交 6ccea88

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分