Crypto Tracker MCP Server

Crypto Tracker MCP Server

Connects AI agents to real-time cryptocurrency market data from CoinGecko API, enabling price lookups, coin details, market rankings, search, and trending crypto queries through natural language.

Category
Visit Server

README

🪙 Crypto Tracker MCP Server Example

A Model Context Protocol (MCP) server that connects AI agents (like Claude Desktop or other MCP clients) to real-time cryptocurrency market data using the CoinGecko API.

This project demonstrates how to build and run a complete MCP server in Node.js, featuring:

  • 🧰 Tools for interacting with crypto data
  • 📚 (Optional) Resources for reusable info sets
  • 💬 (Optional) Prompt Templates for AI-assisted responses

🚀 Features

Get Real-Time Prices — Fetch live prices, market cap, and 24h change for any cryptocurrency
Detailed Coin Info — Retrieve full metadata for a specific coin
Market Data — Paginated list of coins ranked by market cap
Search Coins — Find coins by name or symbol
Trending Coins — Get currently trending cryptocurrencies on CoinGecko


🧠 What Is MCP?

MCP (Model Context Protocol) is a new open standard that connects Large Language Models (LLMs) to external tools, APIs, and data sources through a single unified interface.

Each MCP Server can expose:

Category Description
🧰 Tools Functions or APIs that an LLM can call (like get_price)
📚 Resources Static or dynamic data references (like coin lists, config files)
💬 Prompt Templates Predefined prompts or instruction templates

Your LLM can then access and execute these capabilities safely and consistently.


🧩 Project Structure


crypto-mcp-server/
├── server.js          # Main MCP server implementation
├── package.json       # Dependencies and module config
└── README.md          # Documentation (this file)


⚙️ Setup

1️⃣ Clone the repository

git clone https://github.com/<your-username>/crypto-mcp-server.git
cd crypto-mcp-server

2️⃣ Install dependencies

npm install

Make sure your package.json includes "type": "module"

3️⃣ Run the server manually

node server.js

You should see:

CoinGecko MCP Server running on stdio

🧩 Integration with Claude Desktop

To connect this MCP server with Claude Desktop, edit your configuration file:

nano ~/Library/Application\ Support/Claude/claude_desktop_config.json

Add the following entry under mcpServers:

{
  "mcpServers": {
    "coingecko": {
      "command": "/Users/<your-username>/.nvm/versions/node/v22.17.1/bin/node",
      "args": ["/Users/<your-username>/work/crypto-mcp-server/server.js"]
    }
  }
}

Then restart Claude Desktop. You’ll now be able to call this server using /mcp commands like:

/mcp coingecko get_price { "ids": "bitcoin", "vs_currencies": "usd" }

🧰 Available Tools

Tool Description Example
get_price Get current price, market cap, and 24h change { "ids": "bitcoin", "vs_currencies": "usd" }
get_coin_details Get metadata about a specific coin { "id": "ethereum" }
get_market_data Paginated market cap data { "vs_currency": "usd", "per_page": 10, "page": 1 }
search_coins Search for cryptocurrencies { "query": "solana" }
get_trending Get trending cryptocurrencies {}

🛠️ Tech Stack

  • Node.js 22+
  • @modelcontextprotocol/sdk
  • CoinGecko REST API
  • ES Modules (import/export syntax)

💡 Future Enhancements

  • Add Resources to store coin metadata or cached lookups
  • Add Prompt Templates for summarizing market trends
  • Add Persistent local caching for performance optimization
  • Integrate with other APIs (Binance, CoinMarketCap, etc.)

🧑‍💻 Author

Saqib Hussain 🚀 Software Engineer | DevOps | AI Integrations 🔗 LinkedIn 🏢 Founder — DevInspect

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured