Crypto Price MCP Server
A Model Context Protocol server that provides real-time cryptocurrency price fetching capabilities using the CoinGecko API. It enables LLMs to retrieve and process the latest price for any coin by its name or symbol.
README
MCP Server
A Model Context Protocol server that provides crypto price fetching capabilities. This server enables LLMs to retrieve and process the latest price for any coin by its name or symbol. This server was created for demo and practice purposes only and has limited capabilities.
Rate Limits: This server utilizes CoinGecko's free Demo API plan which has a rate limit of approximately 30 calls per minute.
Available Tools
get_crypto_price_by_name- Fetches the current price for a coin by coin name.coin_name(string, required): The name of the coin (e.g. Bitcoin)
get_crypto_price_by_symbol- Fetches the current price for a coin by coin symbol.coin_symbol(string, required): The symbol of the coin (e.g. BTC)
Setup
Prerequisites
- Python 3.8+
- uv package manager
Installation
- Clone the repository:
git clone <your-repo-url>
cd <your-repo-name>
- Install dependencies with uv:
uv sync
Testing with MCP Inspector
The MCP Inspector allows you to test your server locally before integrating with Claude.
- Install the MCP Inspector:
npm install -g @modelcontextprotocol/inspector
- Run your server with the inspector:
npx @modelcontextprotocol/inspector uv run server.py
-
Open the web interface that appears (usually
http://localhost:5173) -
Test the tools:
- Try
get_crypto_price_by_namewithcoin_name: "Bitcoin" - Try
get_crypto_price_by_symbolwithcoin_symbol: "BTC"
- Try
Claude Desktop Integration
1. Find Your Config File
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
2. Add Server Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"crypto-price-server": {
"command": "uv",
"args": ["run", "/absolute/path/to/your/server.py"],
"cwd": "/absolute/path/to/your/project/directory"
}
}
}
Replace the paths with your actual project paths.
3. Restart Claude Desktop
Close and reopen Claude Desktop completely.
4. Test in Claude
Ask Claude something like:
- "What's the current price of Bitcoin?"
- "Can you get the price of ETH using the crypto tools?"
- "Use the crypto price tool to check the price of Solana"
Troubleshooting
Server won't start:
- Make sure you're in the project directory
- Try
uv run server.pydirectly to see error messages
Claude can't find the server:
- Double-check the absolute paths in your config
- Make sure there are no typos in the JSON
- Restart Claude Desktop after making changes
Tools return errors:
- Check your internet connection
- You may have hit the CoinGecko rate limit (wait a minute and try again)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。