# buda-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/gtorreal/buda-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 437  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/buda-mcp

## Description
Buda.com market data: prices, order books, trades, and volume for crypto markets in CLP, COP, PEN.

## Tools
Capabilities this server exposes over MCP:

- **get_markets** — 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?'
- **get_ticker** — 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?'
- **get_orderbook** — 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?'
- **get_trades** — 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?'
- **get_market_volume** — 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?'
- **get_spread** — 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?'
- **compare_markets** — 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?'
- **get_price_history** — 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.'
- **get_arbitrage_opportunities** — 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?'
- **get_market_summary** — 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.'
- **simulate_order** — [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?'
- **get_real_quotation** — 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.'
- **calculate_position_size** — 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?'
- **get_market_sentiment** — 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?'
- **get_technical_indicators** — 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?'
- **get_available_banks** — 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?'

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `PORT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What buda-mcp MCP server does

The buda-mcp MCP server gives MCP-compatible assistants read access to Buda.com market information for cryptocurrency pairs quoted in Chilean pesos, Colombian pesos, Peruvian soles, USDC, and BTC. It also provides calculations based on that data, including historical candles, technical indicators, market sentiment, cross-country price comparisons, and simulated order results.

The server is intended for analysis and information retrieval. Its order simulation and quotation tools do not place orders. Position sizing is calculated locally from the supplied capital, risk percentage, entry price, and stop-loss price. The available-bank tool returns banks associated with a selected fiat currency and country.

## How it works

The buda-mcp MCP server retrieves public Buda.com data when tools are called. Current-market tools can return tickers, bid and ask levels, recent trades, transacted volume, spreads, and market summaries. Trade history is also used to construct OHLCV candles because Buda.com does not provide a native candlestick endpoint.

Technical analysis is computed server-side without external libraries. Available calculations include RSI, MACD, Bollinger Bands, SMA 20, and SMA 50. Results include signal interpretations, while insufficient candle data produces a structured warning. Sentiment combines 24-hour price movement, volume relative to the seven-day average, and spread compared with a market-type baseline; its response includes a disclaimer.

Resources are available at `buda://markets`, `buda://ticker/{market}`, and `buda://summary/{market}`. These provide market lists, individual tickers, and full summaries with liquidity ratings.

## Setup and configuration

Run the published package directly with Node.js 18 or newer:

```bash
npx @guiie/buda-mcp
```

For a permanent installation, install `@guiie/buda-mcp` globally and run `buda-mcp`. Claude Code, Claude Desktop, and Cursor can launch it as a stdio process using `npx -y @guiie/buda-mcp`.

From source, install dependencies, build the project, and start `node dist/index.js` for stdio. The `dist/http.js` entry point provides Streamable HTTP and SSE transport on port 3000 by default. Set `PORT` to choose another HTTP port. The HTTP service also exposes `/health` and a Smithery-compatible server-card endpoint.

No Buda.com account or API key is required for the documented tools.

## Tools and capabilities

The buda-mcp MCP server includes tools for:

- Listing markets and retrieving fees, minimum order sizes, and discount tiers.
- Reading ticker snapshots, order books, trades, volume, spreads, and liquidity summaries.
- Comparing one base currency across quote currencies and detecting normalized cross-country discrepancies.
- Aggregating trade history into selectable 5-minute through daily candles.
- Calculating indicators, sentiment scores, and Kelly-style position sizes.
- Simulating market or limit orders and returning estimated fills, fees, totals, and slippage.
- Producing real-time quotations with fill prices, fees, and balance changes without submitting orders.
- Listing available banks for CLP, COP, or PEN deposit and withdrawal workflows.

The `simulate_order` response identifies itself with `simulation: true`. The arbitrage, sentiment, and technical-analysis outputs are analytical results, not execution instructions.

## Limitations and notes

Data-dependent tools require Buda.com market or trade data to be available. Historical indicators and candles depend on the amount of trade history returned, so short histories may not provide enough observations. Arbitrage results are limited to Buda markets in CLP, COP, and PEN and normalize prices to USDC. Position sizing does not call the exchange API, while order simulations and quotations do not execute transactions.

The project is released under the MIT license. Unit tests do not require network access; integration tests use the live API and skip when it cannot be reached.

_Full upstream README: https://allmcps.com/mcp/buda-mcp/readme_

