Skip to main content
ClaudeWave
cyanheads avatar
cyanheads

coingecko-mcp-server

View on GitHub

Market data for 15,000+ cryptocurrencies — prices, history, trends, and deep coin metadata via CoinGecko.

MCP ServersOfficial Registry1 stars0 forksTypeScriptApache-2.0Updated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/22/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/cyanheads/coingecko-mcp-server
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "coingecko": {
      "command": "node",
      "args": ["/path/to/coingecko-mcp-server/dist/index.js"],
      "env": {
        "COINGECKO_API_KEY": "<coingecko_api_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/cyanheads/coingecko-mcp-server and follow its README for install instructions.
Detected environment variables
COINGECKO_API_KEY
Use cases

MCP Servers overview

<div align="center">
  <h1>@cyanheads/coingecko-mcp-server</h1>
  <p><b>Market data for 15,000+ cryptocurrencies — prices, history, trends, and deep coin metadata via CoinGecko.</b>
  <div>8 Tools • 2 Resources • 1 Prompt</div>
  </p>
</div>

<div align="center">

[![Version](https://img.shields.io/badge/Version-0.1.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/coingecko-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/%40cyanheads%2Fcoingecko-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/coingecko-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)

</div>

<div align="center">

[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/coingecko-mcp-server/releases/latest/download/coingecko-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=coingecko-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvY29pbmdlY2tvLW1jcC1zZXJ2ZXIiXX0=) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22coingecko-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fcoingecko-mcp-server%22%5D%7D)

[![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)

</div>

<div align="center">

**Keyless by default · runs locally.** No API key required — an optional CoinGecko Demo key raises the rate ceiling. Runs as a local stdio/HTTP server; there is no public hosted instance, since CoinGecko's terms do not permit redistributing their data. Data provided by [CoinGecko](https://www.coingecko.com/).

</div>

---

## Tools

Eight tools covering the crypto market-data spine — slug resolution first, then prices, ranked markets, deep coin profiles, historical series, trending, and global macro stats. CoinGecko keys all data by **slug** (`bitcoin`, `ethereum`), not ticker (`BTC`, `ETH`), so `coingecko_search_coins` is the entry point that feeds every ID-keyed tool.

| Tool | Description |
|:---|:---|
| `coingecko_search_coins` | Resolve a coin name or ticker symbol to a CoinGecko ID (slug). The required first step before any ID-keyed tool. |
| `coingecko_get_prices` | Current price and core market stats for one or more coins in one or more currencies. Batch up to 250 slugs; reports unresolved ids in a `missing` field. |
| `coingecko_list_markets` | Ranked market table — top coins by market cap, volume, or 24h change, optionally filtered to a category. |
| `coingecko_get_coin` | Deep single-coin profile — description, links, market data, developer activity, community, sentiment. `sections` trims the large record. |
| `coingecko_get_market_chart` | Historical price, market cap, and volume series. `recent` (last N days, auto-granularity) or `range` (explicit Unix-second window) mode. |
| `coingecko_get_trending` | Coins trending on CoinGecko in the last 24 hours, by search volume. |
| `coingecko_get_global` | Global crypto market snapshot — total market cap and volume, BTC/ETH dominance, active counts, ongoing ICOs, 24h change. |
| `coingecko_list_categories` | Coin categories (`category_id` + display name) — the valid slugs for `coingecko_list_markets`'s `category` filter. |

### `coingecko_search_coins`

Resolve a name or ticker to the CoinGecko slug every other tool keys on.

- Tickers are not unique (many coins share `ETH`/`USDC`) — returns ranked candidates with `id`, `symbol`, `name`, and `market_cap_rank` to disambiguate
- Returns the top 25 matches by relevance; discloses truncation when the list is capped
- An empty result is a normal outcome (not an error), with guidance to broaden the query

---

### `coingecko_get_prices`

Current price and core market stats (market cap, 24h volume, 24h change) for a batch of coins in a batch of currencies.

- Batch-friendly — pass a whole portfolio of up to 250 slugs in one call
- One row per `(id, currency)` that returned a price
- A wrong/unknown slug returns an empty `200` upstream rather than an error; this tool diffs requested-vs-returned ids and lists the gaps in a `missing` field, so a typo reads as "unresolved", not "nonexistent"
- Unsupported currency codes are silently dropped upstream and surfaced as a notice
- Throws `all_missing` only when **no** requested id resolved

---

### `coingecko_list_markets`

The entry point for "top 20 DeFi coins" or "biggest gainers today".

- Sort by market cap, volume, or 24h price change (ascending or descending)
- Optional category filter — pass a `category_id` from `coingecko_list_categories`
- Pagination via `page` and `per_page` (up to 250 rows); discloses when a page is full
- Per-coin market fields: price, cap, volume, 1h/24h/7d change, supply, ATH/ATL
- Detects an unrecognized category (CoinGecko returns empty rather than erroring) and maps it to `unknown_category`

---

### `coingecko_get_coin`

The full picture for "tell me everything about Ethereum".

- Six sections — `profile`, `market`, `links`, `developer`, `community`, `sentiment`; pass `sections` to fetch only what you need (the full record is large)
- Market figures denominated in a chosen `vs_currency`
- `categories` here are display names (e.g. `"Layer 1 (L1)"`), distinct from the `category_id` slugs returned by `coingecko_list_categories`
- Upstream is sparse — absent fields are omitted rather than fabricated

---

### `coingecko_get_market_chart`

Historical series for trend and charting questions (use `coingecko_get_prices` for the current snapshot).

- `recent` mode: last N days, with granularity auto-scaling by span (≤1 day → ~5-min, 2–90 → hourly, >90 → daily); pass `days` (or `"max"`)
- `range` mode: an explicit window via `from`/`to` as Unix **seconds**
- Returns timestamped point arrays for price, market cap, and volume
- Chart timestamps are Unix **milliseconds** (note: `coingecko_get_prices` last-updated is in seconds)

---

### `coingecko_get_trending`

A heartbeat for "what's hot in crypto right now". No parameters.

- Coins trending by 24-hour search volume, with rank, USD price, and 24h USD change
- Upstream reports market cap and volume as pre-formatted display strings, not numbers — those are omitted rather than presented as numeric data

## Resources and prompts

| Type | Name | Description |
|:---|:---|:---|
| Resource | `coingecko://coin/{id}` | Deep coin record by slug — same data as `coingecko_get_coin` (full record, USD market figures). |
| Resource | `coingecko://global` | Global crypto market snapshot — same data as `coingecko_get_global`. |
| Prompt | `coingecko_coin_research` | Guides a full single-coin research pass through the search → get_coin → get_market_chart → get_global chain. |

All resource data is also reachable via tools — the resources mirror `coingecko_get_coin` and `coingecko_get_global` exactly, so tool-only clients lose nothing. Large collections (markets, categories) are not exposed as resources; use `coingecko_list_markets` and `coingecko_list_categories` instead.

## Features

Built on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):

- Declarative tool, resource, and prompt definitions — single file per primitive, framework handles registration and validation
- Unified error handling — handlers throw, framework catches, classifies, and formats
- Pluggable auth: `none`, `jwt`, `oauth`
- Swappable storage backends: `in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`
- Structured logging with optional OpenTelemetry tracing
- STDIO and Streamable HTTP transports

CoinGecko-specific:

- Type-safe client for the CoinGecko v3 REST API, with one service method per endpoint
- Runs keyless on the public tier; an optional Demo API key (`x-cg-demo-api-key`) raises the rate ceiling with no other config change
- Calibrated retry/backoff on the rate-limited public tier — 429s, 5xx, and timeouts retry; `Retry-After` is honored
- Three distinct upstream error shapes mapped to typed reasons (404 → `coin_not_found`, 429 → `rate_limited`, the `/simple/price` silent miss handled as a `missing` field, not an error)

Agent-friendly output:

- Search-before-query enforced through descriptions — every ID-keyed tool states slugs-not-tickers and points back to `coingecko_search_coins`
- Provenance and graceful degradation — `coingecko_get_prices` reports unresolved ids and dropped currencies instead of failing; truncation and applied filters are disclosed via enrichment
- Units made explicit — timestamp fields document seconds vs. milliseconds so callers don't misread them
- Required CoinGecko attribution carried on every tool, resource, and prompt output

## Getting started

Add the following to your MCP client configuration file. No API key is required — set `COINGECKO_API_KEY` only to attach the higher CoinGecko Demo tier (see [Configuration](#configuration)).

```json
{
  "mcpServers": {
    "coingecko-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/coingecko-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_L
ai-agentsbitcoincoingeckocryptocryptocurrencycyanheadsdefiethereummarket-datamcpmcp-servermodel-context-protocoltypescript

What people ask about coingecko-mcp-server

What is cyanheads/coingecko-mcp-server?

+

cyanheads/coingecko-mcp-server is mcp servers for the Claude AI ecosystem. Market data for 15,000+ cryptocurrencies — prices, history, trends, and deep coin metadata via CoinGecko. It has 1 GitHub stars and its last recorded update is dated 2026-08-21.

How do I install coingecko-mcp-server?

+

You can install coingecko-mcp-server by cloning the repository (https://github.com/cyanheads/coingecko-mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is cyanheads/coingecko-mcp-server safe to use?

+

Our security agent has analyzed cyanheads/coingecko-mcp-server and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains cyanheads/coingecko-mcp-server?

+

cyanheads/coingecko-mcp-server is maintained by cyanheads. The last recorded GitHub activity is dated 2026-08-21, with 1 open issues.

Are there alternatives to coingecko-mcp-server?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy coingecko-mcp-server to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: cyanheads/coingecko-mcp-server
[![Featured on ClaudeWave](https://claudewave.com/api/badge/cyanheads-coingecko-mcp-server)](https://claudewave.com/repo/cyanheads-coingecko-mcp-server)
<a href="https://claudewave.com/repo/cyanheads-coingecko-mcp-server"><img src="https://claudewave.com/api/badge/cyanheads-coingecko-mcp-server" alt="Featured on ClaudeWave: cyanheads/coingecko-mcp-server" width="320" height="64" /></a>

More MCP Servers

coingecko-mcp-server alternatives