TL;DR
Use the CoinGecko MCP Server for plug-and-play agent integration, /simple/price for real-time price lookups, /coins/markets for bulk market context, /search/trending for trending signals, and /coins/{id} for deep-dive coin research.AI agents and LLM-powered applications need reliable, structured crypto data to answer user questions, execute workflows, and generate insights - whether you’re building a conversational trading assistant, a market research copilot, or an autonomous agent pipeline that reacts to real-time market signals. This guide walks you through the CoinGecko API endpoints and integration methods that matter most for AI agent workflows, and ties them together into a complete workflow at the end:
- MCP Server to connect live crypto data directly to your agent pipeline
- Trending coins and market data to populate your LLM’s context window with timely signals
- Onchain token and pool data across 250+ networks for DeFi-native agent capabilities
- Structured coin metadata for grounding agent responses with accurate fundamentals
Navigate the API faster with AI
Install the CoinGecko SKILL to give your AI coding agent built-in knowledge of every endpoint, parameter, and workflow. Setup takes less than 3 minutes.
Endpoint Overview
| Endpoint | What It Gives You | Best For |
|---|---|---|
| /simple/price | Real-time prices with optional market cap, volume, and 24h change | Quick price lookups in agent responses |
| /coins/markets | Bulk market data for multiple coins in a single call | Populating LLM context with market overview |
| /coins/{id} | Full coin metadata, supply, ATH, volume, community, and developer data | Deep-dive coin research for agent queries |
| /coins/list | Complete list of all supported coins with IDs and symbols | Resolving coin names to API IDs in agent pipelines |
| /search/trending | Trending coins, NFTs, and categories in the last 24 hours | Answering “what’s trending?” queries |
| /global | Total market cap, BTC dominance, volume, and active coins | Grounding agents with macro market context |
| /onchain/simple/networks/../token_price/.. | Onchain token prices by contract address across any network | Pricing DEX tokens not listed on CoinGecko |
| /onchain/networks/trending_pools | Trending liquidity pools across all networks | Surfacing onchain DeFi momentum for agents |
| /onchain/networks/../tokens/../info | Token metadata, socials, websites, and analytics score | Researching onchain tokens for agent responses |
Replace
Don’t have one yet? Get your API key here.
YOUR_API_KEY in the examples below with your actual CoinGecko API key.Don’t have one yet? Get your API key here.
Connecting via MCP Server
The fastest way to give your AI agent access to CoinGecko data. The MCP (Model Context Protocol) Server lets LLM clients like Claude Desktop, Cursor, and Gemini CLI query CoinGecko directly - no custom API code needed. Public server (keyless) - great for testing and quick prototyping:mcp_config.json and your agent can immediately query prices, trending coins, onchain data, and more - all through natural language.
Real-Time Prices for Agent Responses - /simple/price
🔗 More endpoint details here
The go-to endpoint when your agent needs to answer “What’s the price of X?” - fast, lightweight, and supports batching multiple coins in a single request.
Example request:
| Parameter | Why It Matters |
|---|---|
ids / symbols | Query by CoinGecko ID or ticker symbol - batch multiple coins in one call |
vs_currencies | Return prices in multiple currencies simultaneously (e.g., usd,eur,btc) |
include_market_cap | Add market cap context alongside price |
include_24hr_change | Include 24h change for trend-aware responses |
precision | Control decimal places for cleaner agent output |
Bulk Market Data for LLM Context - /coins/markets
🔗 More endpoint details here
When your agent needs broader market awareness - top coins by market cap, price movers, or a full market snapshot to ground its reasoning.
Example request:
| Parameter | Why It Matters |
|---|---|
order | Sort by market_cap_desc or volume_desc to surface what’s most relevant |
per_page | Up to 250 coins per page - one call can populate an entire context window |
price_change_percentage | Include 1h,24h,7d for multi-timeframe momentum context |
category | Filter by sector (e.g., decentralized-finance-defi, layer-1) for domain-specific agents |
Trending Coins and Discovery
/search/trending
🔗 More endpoint details here
Surfaces the coins, NFTs, and categories trending on CoinGecko in the last 24 hours. Essential for agents that need to answer “What’s hot right now?” or detect emerging market interest.
Example request:
/coins/list
🔗 More endpoint details here
Returns the complete list of all supported coins with their CoinGecko IDs, names, and symbols. This is a critical lookup table for agent pipelines - when a user says “tell me about Solana”, your agent needs to resolve that to the ID solana before calling other endpoints.
Example request:
| Parameter | Why It Matters |
|---|---|
include_platform | Include contract addresses per platform - useful for resolving tokens by address |
Deep-Dive Coin Research - /coins/{id}
🔗 More endpoint details here
The most comprehensive endpoint for when your agent needs to provide a thorough answer about a specific coin - ATH, supply metrics, community data, developer activity, and more in a single call.
Example request:
| Parameter | Why It Matters |
|---|---|
localization | Set to false to reduce response size and token usage |
tickers | Set to false if exchange data isn’t needed - significantly reduces payload |
community_data | Includes Twitter followers, Reddit subscribers, and Telegram members |
developer_data | Includes GitHub commits, stars, forks, and contributors |
Set
tickers=false and localization=false to keep the response under 5KB - important when injecting coin data into LLM context windows with token limits.Global Market Context - /global
🔗 More endpoint details here
Gives your agent the big-picture view - total crypto market cap, BTC dominance, volume, and active coin count. Use this to ground agent responses with macro context before diving into specifics.
Example request:
Onchain Token and Pool Data
For agents that need to work with DeFi protocols, DEX tokens, and onchain analytics across 250+ supported networks./onchain/simple/networks/{network}/token_price/{addresses}
🔗 More endpoint details here
Get real-time prices for any onchain token by contract address - including tokens not yet listed on CoinGecko’s main platform.
Example request:
| Parameter | Why It Matters |
|---|---|
network (path) | The blockchain network (e.g., eth, solana, base, arbitrum) |
addresses (path) | Token contract address(es) to price |
/onchain/networks/trending_pools
🔗 More endpoint details here
Surfaces the hottest liquidity pools across all networks - a powerful signal for agents tracking DeFi momentum and new token activity.
Example request:
| Parameter | Why It Matters |
|---|---|
include | Add base_token, quote_token, dex, network for richer context |
duration | Filter by 1h, 6h, or 24h trending window |
/onchain/networks/{network}/tokens/{address}/info
🔗 More endpoint details here
Get rich metadata for any onchain token - description, socials, websites, and GeckoTerminal analytics score. Perfect for agents that need to provide context about lesser-known tokens.
Example request:
Putting It All Together
Here’s how these endpoints fit into a typical AI agent workflow:- Connect via MCP - Set up the CoinGecko MCP Server for instant, natural-language access to all endpoints
- Build a coin lookup table - Cache
/coins/listto resolve user queries (names, symbols, addresses) to CoinGecko IDs - Set macro context - Query
/globalto ground your agent with overall market conditions - Answer price questions - Use
/simple/pricefor fast, lightweight price lookups in real time - Populate market context - Fetch
/coins/marketsto give your LLM awareness of top coins and movers - Surface trending signals - Pull
/search/trendingto keep your agent up to date on market momentum - Deep-dive on demand - Query
/coins/{id}when users ask for detailed research on a specific coin - Go onchain - Use onchain endpoints for DEX token pricing, trending pools, and token metadata across 250+ networks
Integrate with CoinGecko MCP Server
Connect your AI agent directly to CoinGecko’s API using our MCP server - enabling real-time crypto data queries from tools like Claude Desktop, Cursor, and more.
Have feedback or need help? Reach out to
eason.lim@coingecko[dot]com

