coinstats-mcp

caixinfeng/coinstats-mcp
Hosted
0 Stars 280 次浏览 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "coinstats-mcp": {
      "args": [
        "-y",
        "@coinstats/coinstats-mcp"
      ],
      "command": "npx",
      "env": {
        "COINSTATS_API_KEY": "\u003cYOUR_API_KEY\u003e"
      }
    }
  }
}

该服务需要配置环境变量:COINSTATS_API_KEY

可用工具 (30 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

get-coins 43 个参数

Get comprehensive data about all cryptocurrencies: Price, market cap, and volume. Price changes (1h, 24h, 7d). Supply information. Trading metrics. Social links and metadata.

该工具无需必填参数,直接调用即可

get-coin-by-id 2 个参数 需填 1 项

Get detailed information about a specific cryptocurrency based on its unique identifier.

必填参数:coinId

get-coin-chart-by-id 2 个参数 需填 2 项

Get chart data for a specific cryptocurrency based on its unique identifier, specifying different time ranges.

必填参数:coinId、period

get-coin-avg-price 2 个参数 需填 2 项

Get the historical average price for a specific cryptocurrency based on its unique identifier and a specific date.

必填参数:coinId、timestamp

get-coin-exchange-price 4 个参数 需填 4 项

Get the historical price data for a specific cryptocurrency on a particular exchange.

必填参数:exchange、from、to、timestamp

get-ticker-exchanges

Get a list of supported exchanges.

该工具无需必填参数,直接调用即可

get-ticker-markets 7 个参数

Get a list of tickers for a specific cryptocurrency across different exchanges.

该工具无需必填参数,直接调用即可

get-blockchains

Get a list of supported blockchains by CoinStats.

该工具无需必填参数,直接调用即可

get-wallet-balance 2 个参数 需填 2 项

Get the balance data for a provided wallet address on a specific blockchain network.

必填参数:address、connectionId

get-wallet-balances 2 个参数 需填 1 项

Get the balance data for a provided wallet address on all CoinStats supported networks.

必填参数:address

get-wallet-sync-status 2 个参数 需填 2 项

Get the syncing status of the wallet with the blockchain network.

必填参数:address、connectionId

get-wallet-transactions 9 个参数 需填 2 项

Get transaction data for a specific wallet. Ensure transactions are synced by calling PATCH /transactions first.

必填参数:address、connectionId

transactions-sync 2 个参数 需填 2 项

Initiate the syncing process to update transaction data for a specific wallet.

必填参数:address、connectionId

get-exchanges

Get a list of supported exchange portfolio connections by CoinStats.

该工具无需必填参数,直接调用即可

get-exchange-balance 2 个参数 需填 2 项

Get the balance data for a provided Exchange.

必填参数:connectionFields、connectionId

get-exchange-sync-status 1 个参数 需填 1 项

Get the syncing status of the exchange portfolio.

必填参数:portfolioId

get-exchange-transactions 7 个参数 需填 1 项

Get transaction data for a specific exchange.

必填参数:portfolioId

get-fiat-currencies

Get a list of fiat currencies supported by CoinStats.

该工具无需必填参数,直接调用即可

get-news-sources

Get news sources.

该工具无需必填参数,直接调用即可

get-news 4 个参数

Get news articles with pagination.

该工具无需必填参数,直接调用即可

get-news-by-type 3 个参数 需填 1 项

Get news articles based on a type.

必填参数:type

get-news-by-id 1 个参数 需填 1 项

Get news by id.

必填参数:id

get-market-cap

Get global market data.

该工具无需必填参数,直接调用即可

get-portfolio-coins 4 个参数

Get a list of portfolio coins with P/L and other data displayed on CoinStats web.

该工具无需必填参数,直接调用即可

get-portfolio-chart 2 个参数 需填 1 项

Get portfolio performance chart data.

必填参数:type

get-portfolio-transactions 5 个参数 需填 1 项

Get a list of portfolio transactions.

必填参数:currency

add-portfolio-transaction 8 个参数 需填 5 项

Add a transaction to a manual portfolio.

必填参数:coinId、type、date、amount、price

get-currencies

Get a list of fiat currencies supported by CoinStats.

该工具无需必填参数,直接调用即可

save-share-token 1 个参数 需填 1 项

Saves the provided portfolio share token to a local cache for future use across sessions.

必填参数:shareToken

get-share-token

Retrieves the saved portfolio share token from local cache.

该工具无需必填参数,直接调用即可

服务介绍

CoinStats MCP Server

MCP Server for the CoinStats API. Provides access to cryptocurrency market data, portfolio tracking, and news.

Setup

API Key

You need a CoinStats API key. Obtain one from the CoinStats API Dashboard.
Read API docs.

Usage with MCP clients

Add the following to your client configuration:

Cursor

Install MCP Server

NPX

{
  "mcpServers": {
    "coinstats-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@coinstats/coinstats-mcp"
      ],
      "env": {
        "COINSTATS_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Replace <YOUR_API_KEY> with your actual CoinStats API key.

Docker

{
  "mcpServers": {
    "coinstats-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "COINSTATS_API_KEY",
        "coinstats/coinstats-mcp"
      ],
      "env": {
        "COINSTATS_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Replace <YOUR_API_KEY> with your actual CoinStats API key.

Build

To build the project locally:

npm run build

This command installs dependencies, compiles TypeScript to JavaScript, and sets execute permissions.

License

This MCP server is licensed under the MIT License. See the standard MIT License text for details.

相关 MCP 服务