
anjor/coinmarket-mcp-server 是从 https://github.com/anjor/coinmarket-mcp-server. 导入的 MCP 服务器候选
概览
anjor/coinmarket-mcp-server 是从 https://github.com/anjor/coinmarket-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
Coinmarket MCP 服务器
组成部分
资源
服务器实现了部分Coinmarket API端点
- 自定义 coinmarket:// URI 方案,用于访问单个音符
- 每个音符资源都有名称、描述和文本/普通模仿类型
工具
服务器实现了两个工具:
get-currency-listings:获取最新的货币列表get-quotes:获取标记的报价- 将“slug”(例如:比特币)或“symbol”(例如:BTC)作为可选字符串参数
配置
需要Coinmarket的API密钥。
快速开始
先决条件
- Python 3.12 或更高版本
- UV包管理器
安装
如果你还没安装UV,建议安装:
克劳德桌面
在 MacOS 上:~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows版:%APPDATA%/Claude/claude_desktop_config.json
开发/未发布服务器配置
Docker
你也可以用Docker来运行服务器:
关于Claude桌面配置和Docker:
故障排除
“生成 uv ENOENT” 错误
如果你看到这个错误,说明uv未安装或未在你的PATH中:
- 按照上述说明安装uv
本页由 AI 翻译,技术细节请以原文为准。
README
Coinmarket MCP server
Coinmarket MCP Server
Components
Resources
The server implements a few of the Coinmarket API endpoints
- Custom coinmarket:// URI scheme for accessing individual notes
- Each note resource has a name, description and text/plain mimetype
Tools
The server implements two tools:
get-currency-listings: Get the latest currency listingsget-quotes: Get quotes for tokens- Takes “slug” (example: bitcoin) or “symbol” (example: BTC) as optional string argument
Configuration
Requires coinmarket API key.
Quickstart
Prerequisites
- Python 3.12 or higher
- uv package manager
Install
Install uv if you haven’t already:
# macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Docker
You can also run the server using Docker:
# Build the image
docker build -t coinmarket-service .
# Run the container
docker run -e COINMARKET_API_KEY=your_api_key_here coinmarket-service
For Claude Desktop configuration with Docker:
"mcpServers": {
"coinmarket_service": {
"command": "docker",
"args": [
"run",
"--rm",
"-e",
"COINMARKET_API_KEY=",
"coinmarket-service"
]
}
}
Troubleshooting
“spawn uv ENOENT” Error
If you see this error, it means uv is not installed or not in your PATH:
- Install uv following the instructions above
- Restart your terminal/Claude Desktop after installation
- Verify installation: Run
uv --versionin terminal - Update PATH: Make sure uv is in your system PATH
Configuration Issues
- Replace
/path/to/coinmarket_servicewith the actual path to your cloned repository - Ensure your
COINMARKET_API_KEYis valid - The path should point to the root directory containing
pyproject.toml
安装
docker run --rm -e COINMARKET_API_KEY=<insert api key> coinmarket-service配置
"mcpServers": {
"coinmarket_service": {
"command": "docker",
"args": [
"run",
"--rm",
"-e",
"COINMARKET_API_KEY=<insert api key>",
"coinmarket-service"
]
}
}