buda-mcp
buda-mcp
Buda.com을 위한 MCP 서버입니다. Buda.com은 칠레, 콜롬비아, 페루의 주요 암호화폐 거래소입니다. MCP 호환 AI 어시스턴트가 시장 데이터, 호가창, 거래 내역, 스프레드, 기술적 지표 및 가격 시뮬레이션에 실시간으로 접근할 수 있게 해주며, 계정이나 API 키가 필요하지 않습니다.
빠른 시작
npx @guiie/buda-mcp또는 영구적으로 설치하려면:
npm install -g @guiie/buda-mcp
buda-mcpRelated MCP server: market-data-mcp
MCP 클라이언트에 설치
Claude Code
claude mcp add buda-mcp -- npx -y @guiie/buda-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"buda-mcp": {
"command": "npx",
"args": ["-y", "@guiie/buda-mcp"]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"buda-mcp": {
"command": "npx",
"args": ["-y", "@guiie/buda-mcp"]
}
}
}도구
모든 도구는 공개되어 있으며 API 키나 계정이 필요하지 않습니다.
get_market_summary ⭐ 여기서 시작하세요
한 번의 호출로 요약 정보 제공: 최종 가격, 매수/매도 호가, 스프레드 %, 24시간 거래량, 가격 변동 및 liquidity_rating(high / medium / low). 사용자가 특정 시장에 대해 질문할 때 가장 먼저 사용하기 좋은 도구입니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID (예: |
get_markets
Buda.com의 모든 거래 쌍을 나열하거나 특정 시장에 대한 세부 정보(수수료, 최소 주문 규모, 할인 등급)를 가져옵니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 아니오 | 시장 ID (예: |
get_ticker
현재 스냅샷: 최종 가격, 최적 매수/매도 호가, 24시간 거래량, 24시간 및 7일 가격 변동.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID (예: |
get_orderbook
현재 호가창: {price, amount} 객체로 정렬된 매수 및 매도 호가.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
| number | 아니오 | 측면당 최대 가격 레벨 (기본값: 전체). |
get_trades
최근 거래 내역을 유형화된 객체로 제공: {timestamp_ms, amount, price, direction}.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
| number | 아니오 | 거래 수 (기본값 50, 최대 100). |
| number | 아니오 | Unix 초 단위 — 이보다 오래된 거래를 반환합니다 (페이지네이션). |
get_market_volume
측면별(매수 = 구매, 매도 = 판매) 24시간 및 7일 거래량.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
get_spread
매수/매도 스프레드: 절대값 및 매도 가격 대비 백분율.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
compare_markets
모든 견적 통화에 걸쳐 주어진 기준 통화의 모든 쌍에 대한 나란히 비교 티커 데이터.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 기준 통화 (예: |
get_price_history
원시 거래 내역에서 집계된 OHLCV 캔들 (Buda는 기본 캔들스틱 엔드포인트가 없음). 5m, 15m, 30m, 1h, 4h, 1d 주기를 지원합니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
| string | 아니오 |
|
| number | 아니오 | 집계 전 가져올 원시 거래 수 (기본값 100, 최대 1000). |
get_arbitrage_opportunities
USDC로 정규화된 Buda의 CLP, COP, PEN 시장 전반에 걸친 자산의 국가 간 가격 차이를 탐지합니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 예: |
| number | 아니오 | 보고할 최소 차이 (기본값 0.5). |
simulate_order
실시간 티커 데이터를 사용하여 매수 또는 매도 주문을 시뮬레이션합니다. 실제 주문은 실행되지 않습니다. estimated_fill_price, fee_amount, total_cost, slippage_vs_mid_pct를 반환합니다. 모든 응답에는 simulation: true가 포함됩니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
|
| 예 | 주문 측면. |
| number | 예 | 기준 통화 단위의 주문 규모. |
| number | 아니오 | 시장가 주문 시뮬레이션 시 생략. |
calculate_position_size
자본, 위험 %, 진입가, 손절가를 기반으로 한 켈리 방식의 포지션 규모 계산. 완전히 클라이언트 측에서 수행되며 API 호출이 없습니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID (참고용). |
| number | 예 | 규모를 산정할 총 자본. |
| number | 예 | 위험을 감수할 자본의 % (0.1–10). |
| number | 예 | 진입 가격. |
| number | 예 | 손절 가격. |
get_market_sentiment
세 가지 구성 요소에서 도출된 복합 심리 점수(-100 ~ +100): 24시간 가격 변동(40%), 7일 평균 대비 거래량(35%), 시장 유형 기준 대비 스프레드(25%). score, label, component_breakdown 및 disclaimer를 반환합니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
get_technical_indicators
RSI (14), MACD (12/26/9), 볼린저 밴드 (20, 2σ), SMA 20, SMA 50 — Buda 거래 내역에서 서버 측에서 계산됨 (외부 라이브러리 없음). 신호 해석과 20개 미만의 캔들을 사용할 수 있는 경우 구조화된 경고를 반환합니다. disclaimer 포함.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
| string | 아니오 |
|
| number | 아니오 | 가져올 원시 거래 수 (500–1000). |
get_real_quotation
주문을 실행하지 않고 주어진 주문 금액과 방향에 대한 실시간 견적을 반환하며, 정확한 체결 가격, 수수료 및 잔액 변화를 보여줍니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 시장 ID. |
|
| 예 | 주문 측면. |
| number | 예 | 기준 통화 단위의 주문 규모. |
| number | 아니오 | 지정가 견적을 위한 지정가. |
get_available_banks
주어진 통화 국가에서 법정 화폐 입출금이 가능한 은행 목록을 나열합니다.
매개변수 | 유형 | 필수 | 설명 |
| string | 예 | 법정 화폐 코드 (예: |
MCP 리소스
도구 외에도 서버는 클라이언트가 직접 읽을 수 있는 MCP 리소스를 노출합니다:
URI | 설명 |
| 모든 Buda.com 시장의 JSON 목록 |
| 특정 시장의 JSON 티커 (예: |
| 유동성 등급이 포함된 전체 시장 요약 (예: |
지원되는 시장
견적 | 국가 | 샘플 쌍 |
CLP | 칠레 | BTC-CLP, ETH-CLP, SOL-CLP |
COP | 콜롬비아 | BTC-COP, ETH-COP, SOL-COP |
PEN | 페루 | BTC-PEN, ETH-PEN |
USDC | USD 고정 | BTC-USDC, USDT-USDC |
BTC | 교차 | ETH-BTC, LTC-BTC, BCH-BTC |
소스에서 빌드
git clone https://github.com/gtorreal/buda-mcp.git
cd buda-mcp
npm install
npm run build
node dist/index.js # stdio (for MCP clients)
node dist/http.js # HTTP on port 3000 (for Railway / hosted)테스트 실행:
npm run test:unit # 100 unit tests, no network required
npm run test:integration # live API tests (skips if unreachable)
npm test # bothHTTP / Railway 배포
dist/http.js 진입점은 다음을 포함하는 Express 서버를 실행합니다:
POST /mcp— 스트리밍 가능한 HTTP MCP 전송GET /mcp— SSE 스트리밍 전송GET /health— 상태 확인 ({ status })GET /.well-known/mcp/server-card.json— Smithery 호환 정적 도구 매니페스트
환경 변수
변수 | 필수 | 설명 |
| 아니오 | HTTP 수신 포트 (기본값: |
| 아니오 |
|
| 아니오 |
|
보안
이 서버는 공개된 Buda.com API 엔드포인트만 노출합니다. 자격 증명은 수락되거나 저장되지 않습니다. 프롬프트 인젝션을 방지하기 위해 모든 도구 매개변수에 입력 유효성 검사가 적용됩니다. 오류 메시지는 정제되며, 내부 세부 정보(경로, 업스트림 오류)는 stderr에만 기록되고 호출자에게 반환되지 않습니다.
취약점 보고
보안 문제는 공개 이슈가 아닌 GitHub 보안 권고를 통해 비공개로 보고해 주십시오. 전체 공개 정책은 SECURITY.md를 참조하십시오.
프로젝트 구조
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_quotation
marketplace/
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문서
에이전트 컨텍스트: AGENTS.md | 운영 노트: docs/PROJECT_MEMORY.md | 변경 로그: CHANGELOG.md | 보안: SECURITY.md
라이선스
MIT — Buda.com API 문서
Available Tools
17 toolscalculate_position_sizeA
Calculates position size based on your capital, risk tolerance, entry price, and stop-loss. Determines how many units to buy or sell so that a stop-loss hit costs exactly risk_pct% of capital. Fully client-side — no API call is made. Example: 'How many BTC can I buy on BTC-CLP if I have 1,000,000 CLP, risk 2%, entry 80,000,000 CLP, stop at 78,000,000 CLP?'
Inputs: market_id (required), capital (required), risk_pct (required), entry_price (required), +1 more.
compare_marketsA
Returns side-by-side ticker data for all trading pairs of a given base currency across Buda.com's supported quote currencies (CLP, COP, PEN, BTC, USDC, ETH). All prices are floats; price_change_24h and price_change_7d are floats in percent (e.g. 1.23 means +1.23%). Example: 'In which country is Bitcoin currently most expensive on Buda?'
Inputs: base_currency (required).
get_arbitrage_opportunitiesA
Detects cross-country price discrepancies for a given asset across Buda's CLP, COP, and PEN markets, normalized to USDC. Fetches all relevant tickers, converts each local price to USDC using the current USDC-CLP / USDC-COP / USDC-PEN rates, then computes pairwise discrepancy percentages. Results above threshold_pct are returned sorted by opportunity size. Note: Buda taker fee is 0.8% per leg (~1.6% round-trip) — always deduct fees before acting on any discrepancy. Example: 'Is there an arbitrage opportunity for BTC between Chile and Peru right now?'
Inputs: base_currency (required), threshold_pct.
get_available_banksA
Returns banks available for deposits and withdrawals of a fiat currency on Buda.com. Returns an empty banks array (not an error) if the currency has no associated banks (e.g. crypto currencies or unsupported fiat currencies). Results are cached for 60 seconds. Example: 'Which banks can I use for CLP deposits?'
Inputs: currency (required).
get_marketsA
Lists all available trading pairs on Buda.com, or returns details for a specific market (base/quote currencies, taker/maker fees as decimals, minimum order size in base currency, and fee discount tiers). Omit market_id to get all ~26 markets at once. Example: 'What is the taker fee and minimum order size for BTC-CLP?'
Inputs: market_id.
get_market_sentimentA
Computes a composite sentiment score (−100 to +100) for a Buda.com market based on 24h price variation (40%), volume vs 7-day average (35%), and bid/ask spread vs baseline (25%). Returns a score, a label (bearish/neutral/bullish), and a full component breakdown. Example: 'Is the BTC-CLP market currently bullish or bearish?'
Inputs: market_id (required).
get_market_summaryA
One-call summary of everything relevant about a market: last price, best bid/ask, spread %, 24h volume, 24h and 7d price change, and a liquidity_rating ('high' / 'medium' / 'low' based on spread thresholds: < 0.3% = high, 0.3–1% = medium, > 1% = low). All prices and volumes are floats. Best first tool to call when a user asks about any specific market. Example: 'Give me a complete overview of the BTC-CLP market right now.'
Inputs: market_id (required).
get_market_volumeB
Returns 24h and 7-day transacted volume for a Buda.com market, split by buy (bid) and sell (ask) side. All volume values are floats in the base currency (e.g. BTC for BTC-CLP). Example: 'How much Bitcoin was sold on BTC-CLP in the last 24 hours?'
Inputs: market_id (required).
get_orderbookA
Returns the current order book for a Buda.com market as typed objects with float price and amount fields. Bids are sorted highest-price first; asks lowest-price first. Prices are in the quote currency; amounts are in the base currency. Example: 'What are the top 5 buy and sell orders for BTC-CLP right now?'
Inputs: market_id (required), limit.
get_price_historyA
IMPORTANT: Candles are aggregated client-side from raw trades (Buda has no native candlestick endpoint) — fetching more trades via the 'limit' parameter gives deeper history but slower responses. Returns OHLCV candles (open/high/low/close as floats in quote currency; volume as float in base currency) for periods 5m, 15m, 30m, 1h, 4h, or 1d. Candle timestamps are UTC bucket boundaries. Example: 'Show me the hourly BTC-CLP price chart for the past 24 hours.'
Inputs: market_id (required), period, limit.
get_real_quotationA
Gets a server-side price quotation for a buy or sell on Buda.com. Calls the Buda quotation API to compute an accurate fill estimate including fees, based on live order book state. Prefer this over simulate_order for accurate fee-tier-aware quotes. This is a POST (not idempotent) but does not place an order. Public endpoint — no API key required. Parameters: market_id, type ('Bid'|'Ask'), amount, optional limit price. Example: 'Get an accurate quote to sell 0.05 BTC on BTC-CLP.'
Inputs: market_id (required), type (required), amount (required), limit.
get_spreadA
Returns the best bid, best ask, absolute spread, and spread percentage for a Buda.com market. All prices are floats in the quote currency (e.g. CLP). spread_percentage is a float in percent (e.g. 0.15 means 0.15%). Use this to evaluate liquidity before placing a large order. Example: 'Is BTC-CLP liquid enough to buy 10M CLP without significant slippage?'
Inputs: market_id (required).
get_stable_liquidityA
Returns spread and market-impact slippage for all stablecoin markets on Buda.com (USDT-CLP, USDC-CLP, USDT-PEN, USDC-PEN, USDT-COP, USDC-COP, USDT-USDC, etc.). Slippage is computed by walking the live order book for five fixed USD notional sizes: 1k, 5k, 10k, 50k, and 100k. Positive buy_pct means you pay more than the best ask; negative sell_pct means you receive less than the best bid. null values indicate insufficient order book depth for that size. Example: 'How liquid are the stablecoin markets on Buda right now?'
Inputs: no named parameters.
get_technical_indicatorsA
Computes RSI (14), MACD (12/26/9), Bollinger Bands (20, 2σ), SMA 20, and SMA 50 from Buda trade history — no external data or libraries. Supports periods: 5m, 15m, 30m, 1h, 4h, 1d. Use shorter periods (5m/15m) for intraday analysis. Uses at least 500 trades for reliable results (set limit=1000 for maximum depth). Returns latest indicator values and signal interpretations (overbought/oversold, crossover, band position). If fewer than 20 candles are available after aggregation, returns a structured warning instead. Example: 'Is BTC-CLP RSI overbought on the 4-hour chart?'
Inputs: market_id (required), period, limit.
get_tickerA
Returns the current market snapshot for a Buda.com market: last traded price, best bid, best ask, 24h volume, and price change over 24h and 7d. All prices are floats in the quote currency (e.g. CLP for BTC-CLP). price_variation_24h is a decimal fraction (0.012 = +1.2%). Example: 'What is the current Bitcoin price in Chilean pesos?'
Inputs: market_id (required).
get_tradesA
Returns recent trade history for a Buda.com market as typed objects. Each entry has timestamp_ms (integer), amount (float, base currency), price (float, quote currency), and direction ('buy' or 'sell'). Example: 'What was the last executed price for BTC-CLP and was it a buy or sell?'
Inputs: market_id (required), limit, timestamp.
simulate_orderA
[DEPRECATED: prefer get_real_quotation for server-side accurate quotes] Simulates a buy or sell order on Buda.com using live ticker data — no order is placed. Returns estimated fill price, fee, total cost, and slippage vs mid-price. Omit 'price' for a market order simulation; supply 'price' for a limit order simulation. All outputs are labelled simulation: true — this tool never places a real order. Example: 'How much would it cost to buy 0.01 BTC on BTC-CLP right now?'
Inputs: market_id (required), side (required), amount (required), price.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes (trades, volume, spread, summary, indicators, etc.), but specify_market functions like get_ticker, get_market_summary, and get_market_volume have overlapping market snapshot data. However, descriptions differentiate them well (summary is one-call, volume focuses on volume, ticker is a snapshot).
Tools follow a consistent verb_noun pattern with 'get_' prefix, e.g., get_trades, get_spread, get_markets. Minor deviations include calculate_position_size, simulate_order, and compare_markets, which use different verbs but are still readable and fit the domain.
17 tools is slightly above the ideal 3-15 but still well-scoped for a comprehensive market data server. Each tool serves a specific market data or analysis function, and there are no redundant tools (though simulate_order is deprecated, it is still useful for backward compatibility).
The tool surface covers a broad range of market data needs: market overview, order book, trades, history, technical indicators, sentiment, quotation, and stablecoin liquidity. Minor gaps include lack of direct order placement (but that is out of scope for a read-only server) and no explicit tool for order book depth beyond get_orderbook, but the main analytics are well covered.
Maintenance
Related MCP Connectors
Real-time crypto market data: candles, tickers, orderbooks across 13+ exchanges via MCP.
Read-only crypto, equities, FX and commodities market data. No trading tools. API key required.
Hyperliquid and Lighter market data: order books, trades, candles, funding, OI, and webhooks
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time and historical cryptocurrency market data from 100+ exchanges including prices, OHLCV data, market statistics, and order books through the CCXT library with intelligent caching.-
- -licenseNot gradedqualityNot gradedmaintenanceReal-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.-
- AlicenseAqualityDmaintenanceLive market data for AI agents. 8 tools: real-time crypto prices, OHLCV candles, order books, market cap rankings, trending coins, technical analysis (RSI/SMA/z-score), asset comparison, and Fear & Greed index. Zero API keys, zero dependencies.281MIT
- AlicenseAqualityCmaintenanceReal-time institutional crypto & equity orderflow intelligence. Detects BUY/SELL pressure from live Binance L2 orderbook and aggressive trade feeds for any USDT pair or US equity.1015 PyPI5MIT