Logo di CoinStats

CoinStats

Organizzazione
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,…

AutoreCoinStatsHQ
Repositorycoinstats-mcp
LinguaTypeScript
Fork
9
Stelle
16
Strumenti disponibili
30
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    CoinStats mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 30 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    16 stelle e 9 fork nel repository collegato.

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.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

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

Strumenti disponibili

  • 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.

Usa MCP CoinStats con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso CoinStats, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi CoinStats come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di CoinStats.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "coinstats": {
      "command": "npx",
      "args": [
        "-y",
        "@coinstats/coinstats-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di CoinStats, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di CoinStats.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare CoinStats per aiutarmi con questa attività?
CoinStats
Certo. Ho letto.
Ecco cosa ho trovato con CoinStats.

Domande frequenti

A cosa serve il server MCP CoinStats?

CoinStats è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare CoinStats MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare CoinStats con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP CoinStats con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando CoinStats, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego CoinStats MCP a TypingMind?

CoinStats funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre CoinStats MCP in TypingMind?

CoinStats mette a disposizione 30 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare CoinStats MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se CoinStats richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇