finance
CoinGecko MCP, CLI, and Lua Integration for AI Agents
CoinGecko integration docs for AI agents: MCP gateway setup, CoinGecko CLI commands, Lua API reference, credentials, and function schemas.
8 functions 8 read 0 write API key auth
CoinGecko for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
coingecko- route_slug
coingecko- package
coingecko- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. CoinGecko CLIHeadless setup and direct function calls. CoinGecko MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
CoinGecko MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for CoinGecko.
Claude Code CoinGecko MCP setup for Claude Code. Cursor CoinGecko MCP setup for Cursor. Codex CoinGecko MCP setup for Codex. OpenAI Agents CoinGecko MCP setup for OpenAI Agents SDK. Claude Agent SDK CoinGecko MCP setup for Claude Agent SDK. Vercel AI SDK CoinGecko MCP setup for Vercel AI SDK. LangChain CoinGecko MCP setup for LangChain. LangGraph CoinGecko MCP setup for LangGraph. CrewAI CoinGecko MCP setup for CrewAI. MCP clients CoinGecko MCP setup for Generic MCP Clients.
CoinGecko CLI Matrix
Use these pages for direct CoinGecko CLI workflows in scripts, CI, cron, and agent wrappers.
CI CoinGecko CLI for CI. Cron Jobs CoinGecko CLI for cron jobs. Shell Scripts CoinGecko CLI for shell scripts. Headless Automation CoinGecko CLI for headless automation. Coding Agents CoinGecko CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
coingecko.coingecko_global | Read read | 0 | Get overall crypto market statistics — total market cap, BTC dominance, active cryptocurrencies, trading volume, and more. |
coingecko.coingecko_history | Read read | 3 | Get historical price, volume, and market cap chart data for a cryptocurrency over a time period. Returns timestamped data points with summary statistics. |
coingecko.coingecko_info | Read read | 1 | Get a full coin profile — description, categories, links (website, whitepaper, social), and current market data snapshot. Use `coingecko_search_coins` first to find the coin ID. |
coingecko.coingecko_markets | Read read | 6 | Get top cryptocurrencies ranked by market cap with full market data (price, volume, ATH, supply, price changes). Supports filtering by category or specific coin IDs. |
coingecko.coingecko_ohlc | Read read | 3 | Get OHLC (Open/High/Low/Close) candlestick data for a cryptocurrency for technical analysis. |
coingecko.coingecko_price | Read read | 2 | Get current price for one or more cryptocurrencies (by CoinGecko ID). Includes 24h change, volume, and market cap. Use `coingecko_search_coins` first to find coin IDs. |
coingecko.coingecko_search_coins | Read read | 1 | Find cryptocurrencies by name or ticker symbol (e.g. "bitcoin", "ETH", "solana"). Returns matching coin IDs which are needed for other CoinGecko tools. |
coingecko.coingecko_trending | Read read | 0 | Get the top trending cryptocurrencies in the last 24 hours based on search activity on CoinGecko. |