# mcp-blockchain-fees [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CryptoAPIs-io/cryptoapis-mcp-blockchain-fees  
**GitHub Stars:** 0  
**npm Downloads (last month):** 704  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-blockchain-fees

## Description
MCP server for fee recommendations and gas estimation on EVM, UTXO, XRP via Crypto APIs

## Tools
Capabilities this server exposes over MCP:

- **blockchain_fees_utxo** — Fee recommendations for UTXO blockchains (Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Zcash).
- **blockchain_fees_evm** — Fee recommendations and gas estimation for EVM blockchains.
- **blockchain_fees_xrp** — Fee recommendations for XRP (mainnet, testnet).
- **blockchain_fees_tezos** — Fee recommendations and fee estimation for Tezos (mainnet, shadownet).
- **blockchain_fees_solana** — Fee recommendations and compute-unit estimation for Solana (mainnet, devnet).

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

```json
"mcpServers": {
  "mcp-blockchain-fees": {
    "command": "npx",
    "args": ["-y","@cryptoapis-io/mcp-blockchain-fees"],
    "env": {
      "CRYPTOAPIS_API_KEY": ""
    }
  }
}
```

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

## Documentation

## What mcp-blockchain-fees does

mcp-blockchain-fees exposes Crypto APIs' Blockchain Fees product through the Model Context Protocol. It gives agents access to fee recommendations and estimation operations across five blockchain families:

- UTXO networks: Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, and Zcash
- EVM networks, including EIP-1559 fee data and gas estimates
- XRP mainnet and testnet
- Tezos mainnet and shadownet
- Solana mainnet and devnet

The server is useful for applications that need to compare slow, standard, and fast fee targets, estimate the cost of a transfer, or determine execution requirements for token and contract operations. It provides estimates and recommendations rather than transaction signing or submission tools.

## How it works

The server calls Crypto APIs on behalf of an MCP client. A Crypto APIs account and API key are required. With the default stdio transport, the key is supplied at startup through `--api-key` or `CRYPTOAPIS_API_KEY`.

HTTP transport listens on `127.0.0.1` by default and serves MCP at `/mcp`. The API key can be fixed at startup with `--api-key`, or omitted so each request supplies its own `x-api-key` header. This per-request mode can support multiple callers using their own Crypto APIs credentials.

For remote HTTP access, bind with `--host 0.0.0.0` and protect the service. A bearer token can be configured with `--auth-token` or, preferably, the `MCP_AUTH_TOKEN` environment variable. `--allowed-hosts` limits accepted Host headers when using a non-loopback bind. Stdio mode always requires an API key at startup.

## Setup and configuration

Install the package with npm:

```bash
npm install @cryptoapis-io/mcp-blockchain-fees
```

Node.js 18 or newer is required. Start a local stdio server with:

```bash
npx @cryptoapis-io/mcp-blockchain-fees --api-key YOUR_API_KEY
```

The CLI defaults to stdio transport. For HTTP, specify the transport and optional port:

```bash
npx @cryptoapis-io/mcp-blockchain-fees --transport http --port 3000 --api-key YOUR_API_KEY
```

The main options are `--transport`, `--host`, `--port`, `--path`, `--auth-token`, `--allowed-hosts`, and `--stateless`. The HTTP port defaults to `3000`, and the MCP path defaults to `/mcp`.

Claude Desktop and Cursor can launch the package with `npx` and pass `CRYPTOAPIS_API_KEY` in their MCP configuration. An n8n workflow can connect an MCP Client Tool to `http://localhost:3000/mcp` after starting HTTP mode. The official remote Crypto APIs MCP endpoint is also available at `https://ai.cryptoapis.io/mcp`; it accepts the API key through the `x-api-key` header and does not require local installation.

## Tools and capabilities

`blockchain_fees_utxo` provides fee tiers and smart-fee estimates for a target confirmation time on supported UTXO chains.

`blockchain_fees_evm` returns standard fee recommendations, EIP-1559 base and priority fee data, and gas estimates for native coin transfers, token transfers, and contract interactions.

`blockchain_fees_xrp` returns fee recommendations for XRP mainnet and testnet.

`blockchain_fees_tezos` provides minimal fee and cost rates from the mempool, plus estimates for native XTZ, FA1.2, and FA2 transfers.

`blockchain_fees_solana` returns priority fee recommendations and compute-unit estimates for SOL transfers, SPL token transfers, and arbitrary program instruction calls.

## Limitations and notes

A valid Crypto APIs key should be configured before making requests. Invalid or missing credentials may result in an IP ban from the Crypto APIs ecosystem. HTTP deployments exposed beyond localhost should use an authentication token or per-request API keys, and should configure an allowed-host list where appropriate. Fee and execution estimates depend on the selected network and operation parameters.

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

