CoinGecko — Claude Code MCP server: what it does, how to install
CoinGecko supplies live and historical crypto market metrics directly to your coding assistant. Works immediately without an API key.
no license 641 installs updated 2026-05-19
claude mcp add --transport http api https://api-coingecko.run.toolsWhat CoinGecko does
This MCP server exposes market metrics across 38 million tokens and 1500 exchanges through https://api-coingecko.run.tools. Access is free, so you do not need to generate tokens or sign up for credentials.
It works using two dedicated tools. First, search_docs lets the model inspect the client library reference, checking parameters before constructing calls. Then, execute runs JavaScript by passing an initialized SDK client into an async run(client) handler.
Because interaction relies entirely on running code against an SDK instance rather than simple URL lookups, the assistant must structure its logic inside that handler.
What it helps with
- fetch live prices and trading volumes for cryptocurrencies
- inspect historical market capitalization and token stats
- lookup SDK functions using
search_docsbefore running queries - execute JavaScript snippets to extract market figures across exchanges
Example prompts for the agent
- Check the current price and 24-hour volume for Bitcoin
- Look up the CoinGecko SDK docs to see how to fetch historical price data
- Write and run a script to get top exchange volumes for Ethereum
How to install CoinGecko
Platform CLI: remote server
claude mcp add --transport http api https://api-coingecko.run.toolsPlatform CLI: remote server
codex mcp add coingecko --url https://api-coingecko.run.toolsConfig file
{
"mcpServers": {
"coingecko": {
"url": "https://api-coingecko.run.tools"
}
}
}Config file
{
"servers": {
"coingecko": {
"type": "http",
"url": "https://api-coingecko.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http coingecko https://api-coingecko.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about CoinGecko
How do I install CoinGecko in Claude Code?
Run claude mcp add --transport http coingecko https://api-coingecko.run.tools in your terminal.
What does the CoinGecko MCP server do?
It allows agents to retrieve cryptocurrency metrics and historical market stats by executing JavaScript against an SDK client.
Is an API key required to use CoinGecko MCP?
No, the endpoint is freely accessible and does not require an API token.