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
伺服器配置
{
"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"
}
}
}
}