CoinStats logo

CoinStats

Organization
CoinStatsHQ

Hosted Model Context Protocol server for the CoinStats API. Lets AI agents (Claude, Cursor, Codex, ChatGPT — anything that speaks MCP) read and act on the same crypto data the CoinStats apps use,…

PublisherCoinStatsHQ
Repositorycoinstats-mcp
LanguageTypeScript
Forks
9
Stars
16
Available tools
30
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    CoinStats exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 30 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    16 stars and 9 forks from the linked repository.

CoinStats MCP Server

Hosted Model Context Protocol server for the CoinStats API. Lets AI agents (Claude, Cursor, Codex, ChatGPT — anything that speaks MCP) read and act on the same crypto data the CoinStats apps use, over a single OAuth-protected HTTPS URL.

There's no API key to copy and no env var to manage: each user authorises the agent against their own CoinStats account in the browser, and the agent gets a per-user token from then on.

Server URL

https://mcp.coinstats.app/mcp

Installation

Claude.ai / Claude Desktop

Settings → Connectors → Add custom connector. Paste the server URL and click Add:

https://mcp.coinstats.app/mcp

A browser window opens at coinstats.app/openapi/consent. Sign in (or recognise your existing session), review the requested access, click Approve.

Cursor

Install MCP Server

Or add to ~/.cursor/mcp.json manually:

json
{
  "mcpServers": {
    "coinstats": {
      "url": "https://mcp.coinstats.app/mcp"
    }
  }
}

Restart Cursor; on first call it opens a browser window for the OAuth flow.

Claude Code

bash
claude mcp add coinstats --transport http https://mcp.coinstats.app/mcp

Claude Code opens a browser to authorise. Verify with:

bash
claude mcp list

Codex

codex mcp add only registers the URL; it does not open a browser. Run codex mcp login separately:

bash
codex mcp add coinstats --url https://mcp.coinstats.app/mcp
codex mcp login coinstats

After the login step codex mcp list should show Auth: OAuth for coinstats.

Other MCP clients

Any client that speaks the Streamable HTTP transport with OAuth 2.1 authorization will work. Point it at https://mcp.coinstats.app/mcp — Dynamic Client Registration (RFC 7591) is supported, so no pre-shared client_id is needed.

What you can do

After authorising, your agent can:

  • Look up real-time prices, charts and market data for 100,000+ coins
  • Read your CoinStats portfolio coins, P/L and performance over time
  • Query wallet balances and transactions across 120+ blockchains
  • Retrieve cash-flow-adjusted historical P/L for wallets, exchanges, and portfolios over preset or custom calendar ranges
  • Compare ticker pricing across 200+ exchanges
  • Pull crypto news (latest, trending, filtered by source or topic)

Full tool catalog: https://coinstats.app/api-docs/mcp/tools.

Authentication

Discovery + OAuth flow follows the standard MCP / RFC pattern:

EndpointSpecPurpose
GET /.well-known/oauth-protected-resourceRFC 9728Points at the authorization server (https://api.coin-stats.com)
GET /.well-known/oauth-authorization-serverRFC 8414AS metadata (also mirrored on the MCP host so older clients can find it without the indirection)
POST /v1/oauth/register (on AS)RFC 7591Dynamic Client Registration
GET /v1/oauth/authorize → consent UIOAuth 2.1 §4.1User approves access
POST /v1/oauth/token (on AS)OAuth 2.1 §4.1PKCE code exchange
POST /v1/oauth/revoke (on AS)RFC 7009Per-client disconnect

Token transport: Authorization: Bearer <token>. Single coinstats scope today; granular scopes are on the roadmap.

Self-host / stdio fallback (developer mode)

If you want to run the MCP server yourself (no per-user OAuth, just a developer API key), the legacy stdio entry point is published on npm:

bash
npx @coinstats/coinstats-mcp

with COINSTATS_API_KEY set in the env. Wire into a client like this:

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

Or via Docker:

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

This path is the right choice for headless / unattended integrations where there's no human to click "Approve". Get a key from the CoinStats API Dashboard.

Architecture

The hosted server is a stateless Cloudflare Worker (~225 KiB / ~41 KiB gzipped) that:

  1. Exposes the RFC 9728 + RFC 8414 discovery endpoints.
  2. Gates POST /mcp on a Authorization: Bearer … token.
  3. Dispatches MCP JSON-RPC (initialize / tools/list / tools/call / ping) without session state.
  4. Forwards each tool call to https://openapiv1.coinstats.app carrying the same bearer.

Source: src/worker.ts. Config: wrangler.jsonc.

Local development

The repo ships two entry points:

  • src/worker.ts — Cloudflare Worker. Run with wrangler dev (port 8787 by default).
  • src/index.ts — stdio server. Run with node dist/index.js after building, or via the published npm package.
bash
# Build the stdio CLI
npm run build

# Run the Worker locally (requires `wrangler login` first)
npm run dev

# Deploy the Worker — needs CLOUDFLARE_ACCOUNT_ID exported in the env
# (the account ID isn't committed to wrangler.jsonc; pull it from the
# Cloudflare dashboard sidebar or the CI deploy job's secrets).
export CLOUDFLARE_ACCOUNT_ID=<your-cf-account-id>
npm run deploy

# Tail production logs
npm run tail

For local Worker development you can override env vars:

bash
wrangler dev --var OAUTH_ISSUER:http://localhost:1337 \
             --var COINSTATS_API_BASE_URL:http://localhost:9999

Related

License

MIT — see LICENSE.

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Available Tools

  • get-coins

    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

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

  • get-coin-chart-by-id

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

  • get-coin-avg-price

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

  • get-coin-exchange-price

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

  • get-ticker-exchanges

    Get a list of supported exchanges.

  • get-ticker-markets

    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

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

  • get-wallet-balances

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

  • get-wallet-sync-status

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

  • get-wallet-transactions

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

  • transactions-sync

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

  • get-exchanges

    Get a list of supported exchange portfolio connections by CoinStats.

  • get-exchange-balance

    Get the balance data for a provided Exchange.

  • get-exchange-sync-status

    Get the syncing status of the exchange portfolio.

  • get-exchange-transactions

    Get transaction data for a specific exchange.

  • get-fiat-currencies

    Get a list of fiat currencies supported by CoinStats.

  • get-news-sources

    Get news sources.

  • get-news

    Get news articles with pagination.

  • get-news-by-type

    Get news articles based on a type.

  • get-news-by-id

    Get news by id.

  • get-market-cap

    Get global market data.

  • get-portfolio-coins

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

  • get-portfolio-chart

    Get portfolio performance chart data.

  • get-portfolio-transactions

    Get a list of portfolio transactions.

  • add-portfolio-transaction

    Add a transaction to a manual portfolio.

  • get-currencies

    Get a list of fiat currencies supported by CoinStats.

  • save-share-token

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

  • get-share-token

    Retrieves the saved portfolio share token from local cache.

Use CoinStats MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CoinStats is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CoinStats as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CoinStats MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "coinstats": {
      "command": "npx",
      "args": [
        "-y",
        "@coinstats/coinstats-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CoinStats MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CoinStats MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CoinStats to help me with this task?
CoinStats
Sure. I read it.
Here is what I found using CoinStats.

Frequently asked questions

What is the CoinStats MCP server used for?

CoinStats is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CoinStats MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CoinStats with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CoinStats MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CoinStats connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CoinStats MCP to TypingMind?

CoinStats runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CoinStats MCP provide in TypingMind?

CoinStats exposes 30 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CoinStats MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CoinStats requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇