Skip to main content
Glama
CoinCap MCP Server

CoinCap MCP Server

by CC3-0

CoinCap MCP Server

A Model Context Protocol (MCP) server that exposes the CoinCap.io api as tools. This server can run in multiple modes to integrate with different MCP clients including Claude Desktop and MCP Inspector.

Features

  • Dynamic API Loading: Automatically loads all available CoinCap endpoints from their Swagger specification

  • Multiple Transport Modes: Works with stdio (Claude Desktop) or streamable HTTP (MCP Inspector)

  • Comprehensive Coverage: Access to assets, markets, exchanges, technical analysis, conversion rates & everything else in the api https://pro.coincap.io/api-docs/

Related MCP server: mcp-coincap-jj

Prerequisites

  • Node.js ≥ 18

  • Yarn package manager

  • Auth, either of:

Installation

Option 1: Using Claude Desktop Extension (.dxt) File

  1. Download the latest built .dxt file here: https://github.com/CC3-0/coincap-mcp-server/raw/refs/heads/main/coincap-mcp-clean.dxt and open with claude desktop

Option 2: Using npx

# Run directly without installation
npx coincap-mcp-server

# For HTTP mode
npx coincap-mcp-server --port=3001

Option 3: Clone and Build

# Clone the repository
git clone https://github.com/CC3-0/coincap-mcp-server
cd coincap-mcp-server

# Install dependencies
yarn install

# Build the project
yarn build

Keyless x402 payments

The 10 agentFriendly tools can be used without a CoinCap account: set X402_PRIVATE_KEY to an EVM private key whose wallet holds USDC on Base, and the server pays per call ($0.002–$0.01 USDC) via the x402 protocol. Payment is signed off-chain (EIP-3009) — the wallet needs no ETH for gas, only USDC.

{
  "mcpServers": {
    "crypto-prices": {
      "command": "npx",
      "args": ["coincap-mcp-server"],
      "env": {
        "X402_PRIVATE_KEY": "0x_your_wallet_private_key"
      }
    }
  }
}

Notes:

  • Use a dedicated, low-balance wallet. Fund it with a few dollars of USDC on Base — never reuse a wallet holding significant funds.

  • Per-call spend is capped at 100000 atomic USDC ($0.10) regardless of what a server asks for; override with X402_MAX_PAYMENT_ATOMIC_USDC.

  • If both COINCAP_API_KEY and X402_PRIVATE_KEY are set, the API key is used (no payment is made).

  • Non-agentFriendly tools always require an API key.

Usage

Option 1: Claude Desktop Extension File

This is the easiest way to use the CoinCap MCP Server. Requires the Claude Desktop app.

  1. Download the latest built Desktop Extension file here: https://github.com/CC3-0/coincap-mcp-server/raw/refs/heads/main/coincap-mcp-clean.dxt

  2. Locate the ‘coincap-mcp-clean.dxt file on your computer and right-click on the file.

  3. Select: Open With > Claude

  4. In the Preview popup within Claude Desktop, click the 'install' button

  5. This will open a Configuration popup. In the 'CoinCap API Key' field, paste in your CoinCap API key. (If you do not already have a CoinCap API key, you can get one by creating a free CoinCap Pro account here: https://pro.coincap.io/dashboard)

  6. You do not need to change anything in the 'Node.js Executable Path' field.

  7. Click 'Save' at the bottom of the configuration popup

  8. On the Extension preview popup, enable the MCP server by switching the toggle from 'disabled' to 'enabled'.

  9. Close the preview popup and start a new chat.

  10. Click the 'Search and tools' button in the chat text box to verify that the CoinCap MCP is installed and enabled properly.

  11. You're ready to access CoinCap's crypto market data through Claude Desktop!

For more information on Claude Desktop Extenions see https://www.anthropic.com/engineering/desktop-extensions

Option 2: Claude Desktop Integration (Stdio Mode)

This is the standard mode for integrating with Claude Desktop via stdio transport.

Setup Steps:

  1. Build the project: yarn build

  2. Configure Claude Desktop to use the built server

  3. Set your CoinCap API key in the environment

Claude Desktop Configuration:

Using npx (Recommended):

{
  "mcpServers": {
    "crypto-prices": {
      "command": "npx",
      "args": ["coincap-mcp-server"],
      "env": {
        "COINCAP_API_KEY": "your_coincap_api_key_here"
      }
    }
  }
}

Using local build:

{
  "mcpServers": {
    "crypto-prices": {
      "command": "node",
      "args": ["/path/to/your/coincap-mcp-server/dist/index.js"],
      "env": {
        "COINCAP_API_KEY": "your_coincap_api_key_here"
      }
    }
  }
}

Option 3: Remote Streamable HTTP

Run the server as an HTTP service for use with MCP Inspector or other HTTP-based MCP clients.

Starting the HTTP Server:

# Set your API key
export COINCAP_API_KEY="your_coincap_api_key_here"

# Start the HTTP server
yarn startRemote

This starts an HTTP server on http://127.0.0.1:3001/mcp

Using with MCP Inspector :

The MCP Inspector (https://github.com/modelcontextprotocol/inspector) allows you to Browse available tools & make calls.

# Start mcp inspector
npx @modelcontextprotocol/inspector

Visit the local mcp inspector in the browser, set mode to streamable HTTP mode, and url to http://127.0.0.1:3001/mcp

Curl examples:

List Available Tools:

curl -X POST http://127.0.0.1:3001/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

Example Tool Call: Get Bitcoin Asset Details

curl -X POST http://127.0.0.1:3001/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "assets_slug",
      "arguments": {
        "slug": "bitcoin",
        "apiKey": "your_coincap_api_key_here"
      }
    }
  }'

Available Tools

The server dynamically loads tools from the CoinCap API specification, providing access to comprehensive cryptocurrency data and technical analysis. The exact tools available are loaded at runtime from the API's Swagger specification.

Tool Categories Include:

  • Asset Tools - Cryptocurrency listings, details, historical data, and markets

  • Technical Analysis Tools - RSI, SMA, EMA, MACD, VWAP, and candlestick data

  • Market & Exchange Tools - Exchange listings, market data, and conversion rates

To see all available tools and their parameters, use the "List Available Tools" command above or connect via MCP Inspector.

Development

# Install dependencies
yarn install

# Build the project
yarn build

# Start in stdio mode (default)
yarn start

# Start in HTTP mode on port 3001
yarn startRemote

# Development with auto-rebuild
yarn dev

API Key Issues

  • Ensure your COINCAP_API_KEY is properly set as an environment variable when used locally and passed in every tool call.

Available Tools

38 tools
accountA

Retrieve account information for the current API key

Inputs: no named parameters.

agentFriendly_asset_mcap_history_slugC

Get asset market cap history (direct from mcap_history table) optimized for AI analysis

Inputs: slug (required), start, end.

agentFriendly_full_assets_by_slugC

Get comprehensive asset data with all available fields

Inputs: slugs (required), includeWebsite, includeExplorer, includeTaData, +4 more.

agentFriendly_history_slugC

Get price history optimized for AI analysis

Inputs: slug (required), start, end.

agentFriendly_news_topA

Get latest crypto news for market analysis

Inputs: no named parameters.

agentFriendly_ta_slug_emaC

Get Exponential Moving Average for trend analysis

Inputs: slug (required), period, fetchInterval.

agentFriendly_ta_slug_macdC

Get MACD for trend and momentum analysis

Inputs: slug (required), short, long, signal, +1 more.

agentFriendly_ta_slug_rsiB

Get Relative Strength Index for momentum analysis

Inputs: slug (required), period, fetchInterval.

agentFriendly_ta_slug_smaB

Get Simple Moving Average for technical analysis

Inputs: slug (required), window, fetchInterval.

agentFriendly_total_market_cap_historyC

Get total market cap history optimized for AI analysis

Inputs: start, end.

assetsC

Retrieve a list of assets

Inputs: search, ids, limit, offset.

assets_slugC

Retrieve a single asset

Inputs: slug (required).

assets_slug_historyC

Retrieve historical data for a specific asset

Inputs: slug (required), interval (required), start, end.

assets_slug_marketcap-historyC

Get market cap history for an asset

Inputs: slug (required), start, end.

assets_slug_marketsA

Retrieve markets for a specific asset

Inputs: slug (required), limit, offset.

assets_totals_total-marketcap-historyB

Retrieve total market cap history

Inputs: no named parameters.

exchangesB

Retrieve a list of exchanges

Inputs: limit, offset.

exchanges_exchangeC

Retrieve details for a specific exchange

Inputs: exchange (required).

marketsC

Retrieve a list of markets

Inputs: exchangeId, baseSymbol, baseId, quoteSymbol, +5 more.

post_prepaid_createB

Create a free prepaid API key

Inputs: no named parameters.

post_prepaid_refillA

Refill a prepaid API key (x402 payment)

Inputs: apiKey (required).

prepaid_infoA

Check prepaid key balance

Inputs: apiKey (required).

price_byaddressA

Get USD price by token address & network

Inputs: tokenAddress (required), network (required).

price_bysymbol_symbolA

Get USD prices by symbol(s) - supports up to 100 comma-separated symbols

Inputs: symbol (required).

ratesC

Retrieve conversion rates

Inputs: ids.

rates_slugB

Retrieve a conversion rate by slug

Inputs: slug (required).

ta_slug_allLatestC

Latest values for all indicators

Inputs: slug (required), fetchInterval.

ta_slug_candlesticksD

Candlestick data

Inputs: slug (required), interval, start, end.

ta_slug_emaC

Full EMA series

Inputs: slug (required), start, end, period, +2 more.

ta_slug_ema_latestC

Latest EMA datapoint

Inputs: slug (required), start, end, period, +2 more.

ta_slug_macdB

Full MACD series

Inputs: slug (required), start, end, short, +4 more.

ta_slug_macd_latestC

Latest MACD datapoint

Inputs: slug (required), start, end, short, +4 more.

ta_slug_rsiB

Full RSI series

Inputs: slug (required), start, end, period, +3 more.

ta_slug_rsi_latestC

Latest RSI datapoint

Inputs: slug (required), start, end, period, +3 more.

ta_slug_smaC

Full SMA series

Inputs: slug (required), start, end, window, +2 more.

ta_slug_sma_latestC

Latest SMA datapoint

Inputs: slug (required), start, end, window, +2 more.

ta_slug_vwap_latestC

24h VWAP (latest)

Inputs: slug (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 38 tools

    Disambiguation3/5

    There is notable overlap between 'agentFriendly_' and regular tools (e.g., history and TA indicators), which can confuse an agent on which variant to use. Some tools have similar purposes but with different output optimizations.

    Naming Consistency3/5

    Naming conventions are mixed: some use hyphens (marketcap-history), some underscores (assets_slug), and many have prefixes like agentFriendly_ or post_prepaid_. This inconsistency makes pattern recognition harder.

    Tool Count2/5

    38 tools is excessive for a coin data API. Many tools duplicate functionality (e.g., separate 'latest' and full series for each TA indicator, agentFriendly versions of existing tools). A smaller, more cohesive set would be more effective.

    Completeness4/5

    The tool set covers core CoinCap features: assets, history, technical indicators, markets, exchanges, rates, prices, and account management. Missing only minor niche endpoints, but overall sufficient for market analysis.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
      3
      582 npm
      42
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3
      3
      24 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides access to cryptocurrency market data through the CoinCap API v3, enabling users to retrieve real-time prices, exchange rates, market information, and detailed data for various cryptocurrencies.
      5
      MIT