crypto-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@crypto-mcp-serverwhat's the current price of bitcoin?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
crypto-mcp-server
An MCP server exposing live cryptocurrency market data from the CoinGecko v3 API as 12 typed tools.
Built on the MCP Python SDK 2.x (MCPServer), fully asynchronous, with a
shared connection pool, client-side rate limiting, response caching, bounded
retries, and structured logging.
Tools
Tool | Purpose |
| Upstream health plus this server's config and cache stats |
| Every accepted |
| Resolve a name or symbol to a CoinGecko coin id |
| Spot prices for many coins in many currencies at once |
| Convert a quantity of a coin into another currency |
| Full profile: supply, ATH, 24h/7d/30d changes |
| Ranked market table by market cap, volume, or id |
| Historical price / market cap / volume series |
| Candlestick data |
| Market state on one past date (needs a paid plan) |
| Most-searched coins of the last 24 hours |
| Total market cap, volume, BTC/ETH dominance |
Every tool is read-only, returns a typed model (so clients get an
outputSchema), and pairs raw numerics with preformatted *_display strings —
models quote the display string and compute on the raw value.
Related MCP server: CoinGecko MCP Server
Install
uv syncRun
# stdio (default) — how MCP clients launch it
uv run crypto-mcp-server
# HTTP, for remote clients or debugging
uv run crypto-mcp-server --transport streamable-http --port 8000
# verbose, machine-readable logs
uv run crypto-mcp-server --log-level DEBUG --log-format jsonpython -m crypto_mcp_server works identically.
Client configuration
{
"mcpServers": {
"crypto": {
"command": "uv",
"args": ["run", "--directory", "/path/to/crypto_mcp_server", "crypto-mcp-server"],
"env": { "CRYPTO_MCP_API_KEY": "CG-xxxxxxxxxxxx" }
}
}
}Configuration
All settings come from CRYPTO_MCP_* environment variables and are resolved
once at startup by Settings.from_env(). Everything is optional — the server
runs anonymously against CoinGecko's public tier out of the box.
Variable | Default | Meaning |
| (unset) | CoinGecko Demo or Pro key |
| inferred |
|
| follows tier | API root; override for a proxy or mock |
|
| Total request timeout |
|
| Connect timeout |
|
| Retries after the first attempt |
|
| First-retry backoff factor |
|
| Ceiling on any single sleep |
|
| Connection pool size |
| tier default | Client-side outbound ceiling |
|
| Response cache TTL; |
|
| Cache size before LRU eviction |
|
|
|
|
|
|
The tier is inferred from the key's presence, and the base URL follows the
tier, so a Pro user only sets CRYPTO_MCP_API_KEY and
CRYPTO_MCP_API_TIER=pro.
A note on rate limits
The anonymous tier is throttled per source IP and shared with every other unauthenticated caller behind it. The default client-side budgets (5/min public, 25/min demo, 450/min pro) sit deliberately below CoinGecko's published ceilings — measured against the live API, even 10/min drew constant 429s without a key. For anything beyond casual use, set an API key.
Architecture
server.py MCP tools: argument validation, error translation, lifespan
↓
mappers.py raw CoinGecko JSON → typed models
↓
client.py the only module that knows HTTP
↓
utils.py retry, rate limiting, TTL cache, formatting, input hygieneconfig.py, exceptions.py, logging_config.py, and models.py are shared
by every layer. A single request flows through:
get_json()
└─ TTLCache.get_or_load de-duplicates concurrent identical calls
└─ retry_async exponential backoff with full jitter
└─ AsyncRateLimiter
└─ httpx2 one attemptCaching sits outside retries so a retried call is stored once; the limiter sits inside them so every physical attempt is metered.
Error handling
Failures are expressed as a shallow hierarchy under CryptoMCPError
(ToolInputError, RateLimitError, AuthenticationError,
ResourceNotFoundError, UpstreamTimeoutError, …). Each tool is wrapped by
@tool_handler, which guarantees three things:
Argument mistakes fail before any network call, with a message naming a valid value (
order must be one of market_cap_desc, …).Known failures surface as
ToolErrorwith their message intact.Anything unexpected is logged with a full traceback and returned as a generic message — no traceback ever reaches the client.
Retries cover timeouts, connection errors, and 5xx/429 responses. When
CoinGecko supplies a Retry-After longer than BACKOFF_MAX_SECONDS, the
server stops rather than retrying: sleeping less than the server demanded
only earns another rejection, and honouring a 60-second window inside a tool
call would stall the session.
Logging
Logs go to stderr, never stdout — under the stdio transport, stdout is the
JSON-RPC channel, and a stray write there corrupts the frame the client is
parsing and drops the session. configure_logging also detaches any stdout
handler it finds on the root logger.
Tests
uv run pytest109 tests, no network access: upstream behaviour is simulated with
httpx2.MockTransport injected into the real client, and the tool layer is
driven through a genuine in-process MCP client session, so retries, caching,
rate limiting, error mapping, and the wire protocol all run as they do in
production.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceFree MCP server for real-time cryptocurrency data. Get token prices, market overview, top movers, historical charts, and detailed token info directly in Claude Code, Cursor, or any MCP-compatible AI tool. Powered by CoinGecko with 70+ token mappings and built-in caching.5MIT
- AlicenseAqualityFmaintenanceAn MCP server for CoinGecko that connects any MCP-compatible client to free crypto market data, providing tools for prices, market caps, trending coins, historical data, and global stats.845MIT
- Alicense-qualityBmaintenanceMCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.591Apache 2.0
- Alicense-qualityBmaintenanceA Model Context Protocol server for real-time cryptocurrency price data, market data, trending coins, historical charts, and currency conversion using the free CoinGecko API.MIT
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akshaygp18/crypto-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server