本项目是一个基于 Model Context Protocol(MCP)的服务器,专为 Claude AI 提供实时加密货币数据访问服务。它借助 CoinMarketCap API 获取数据,为用户提供准确、及时的加密货币市场信息。
若要将此 MCP 服务器与 Claude Desktop 集成,可按以下步骤操作:
~/Library/Application\ Support/Claude/claude_desktop_config.json。{
"mcpServers": {
"cmc": {
"command": "npx",
"args": ["crypto-mcp"],
"env": {
"COINMARKET_API_KEY": "your-api-key-here"
}
}
}
}
# 使用 npm
npm install
# 使用 bun
bun install
# 使用 npm
npm run build
# 使用 bun
bun run build
此服务器为 Claude 提供了一系列实用工具,具体如下:
完成配置后,您可以向 Claude 发起各种加密货币相关的任务请求,示例如下:
该项目运用 TypeScript 和 Model Context Protocol SDK 构建服务器,用于与 Claude AI 进行通信。若您需要修改可用工具或添加新端点,可编辑 src/index.ts 文件,并重新构建项目。