Coinmarket Mcp 服务器
概览
什么是 CoinMarket MCP 服务器?
CoinMarket MCP 服务器是一个开源项目,旨在提供一个强大的加密货币市场数据后端解决方案。它允许开发者访问来自各种加密货币交易所的实时和历史数据,使其成为任何希望构建需要加密货币市场洞察的应用程序的必备工具。
CoinMarket MCP 服务器的特点
- 实时数据访问:服务器提供关于加密货币价格、交易量和市场资本化的实时更新。
- 历史数据:用户可以访问历史市场数据,这对于分析和回测交易策略至关重要。
- 多交易所支持:CoinMarket MCP 服务器支持多个加密货币交易所,允许用户从各种来源聚合数据。
- API 集成:服务器提供了良好文档的 API,使开发者能够轻松将其集成到他们的应用程序中。
- 开源:作为一个开源项目,它允许社区贡献和增强,确保持续改进和创新。
如何使用 CoinMarket MCP 服务器
- 安装:从 GitHub 克隆代码库,并按照 README 文件中提供的安装说明进行操作。
- 配置:配置服务器设置以连接到您所需的加密货币交易所。
- API 访问:使用提供的 API 端点获取市场数据。您可以检索实时价格、历史数据等。
- 集成:将服务器与您的应用程序集成,以显示加密货币数据或执行交易操作。
常见问题解答
我可以使用哪些编程语言与 CoinMarket MCP 服务器一起使用?
您可以使用任何支持 HTTP 请求的编程语言与 CoinMarket MCP 服务器 API 进行交互。流行的选择包括 Python、JavaScript 和 Java。
CoinMarket MCP 服务器是免费使用的吗?
是的,CoinMarket MCP 服务器是一个开源项目,按照 MIT 许可证免费使用和修改。
我可以为该项目贡献吗?
当然可以!欢迎贡献。您可以在 GitHub 代码库上提交问题、功能请求或拉取请求。
数据更新的频率是多少?
服务器提供实时数据更新,但频率可能会根据交易所的 API 限制和服务器的配置而有所不同。
我在哪里可以找到文档?
文档可在 GitHub 代码库中找到,包括设置说明、API 使用和示例。
详情
Coinmarket MCP server
Coinmarket MCP Server
<a href="https://glama.ai/mcp/servers/6ag7ms62ns"><img width="380" height="200" src="https://glama.ai/mcp/servers/6ag7ms62ns/badge" alt="Coinmarket MCP server" /></a>
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=<insert 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 --version
in terminal - Update PATH: Make sure uv is in your system PATH
Configuration Issues
- Replace
/path/to/coinmarket_service
with the actual path to your cloned repository - Ensure your
COINMARKET_API_KEY
is valid - The path should point to the root directory containing
pyproject.toml
Server配置
{
"mcpServers": {
"coinmarket-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--anjor--coinmarket-mcp-server--coinmarket-mcp-server",
"coinmarket_service"
],
"env": {
"COINMARKET_API_KEY": "coinmarket-api-key"
}
}
}
}