プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Crypto Market

作者:gojisatoshi888バージョン 1.1.0i★ 0iクラウドで動く公式サイト ↗
レジストリ名io.github.gojisatoshi888/crypto-market

インストール方法

What it does

Crypto market tools for agents. Free prices and Fear & Greed; paid tools in USDC on Base via x402.

  • Connects クラウドで動く
  • Account or key Works without a key · add Authorization, X-Client-Id if you have one (often raises limits)
  • Category 暗号資産・ブロックチェーン

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中8/8前回の確認でクラウドのエンドポイントが応答
利用スコア20/100

品質: 基本チェック 5/5 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Crypto Market をインストールして。https://mcp.popnx.com/i/gojisatoshi888-crypto-market.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 5/5 合格 · 質問内容は提供元のサーバー(2-31-102-176.sslip.io)を通ります · ✓ コマンド確認済み 2026年11月15日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげます · 約 2 分

キー不要、インストール不要 · claude.ai かデスクトップアプリで一度設定すれば、チャットで使えます · 無料アカウントは 1 つまで · Team/Enterprise はオーナー(Owner)が追加

  1. Claude の Connectors ページを開く

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. 「Add」→「Custom」→「Web」を押し、この 2 つを入力

    ここからコピーして Claude の同じ名前の欄に貼り付け、Continue を押します

    Name · 名前Crypto Market
    Remote MCP server URL · アドレスhttps://2-31-102-176.sslip.io/mcp

    Claude が検出したサインイン設定の画面で Continue を押す · Authentication は作者の説明どおり(Sign in now・Sign in when needed・No sign in)を選び Add を押します

  3. チャットで有効にする

    +ConnectorsCrypto Market

  4. 試してみる

    Crypto Market を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Crypto Market を使っていると言うか、回答に Crypto Market のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT との接続はプランしだい

フル MCP:Web 版 ChatGPT の Business・Enterprise・Edu · Pro:読み取り/取得の権限で接続、データを変えるツールは使えないことがあります · Plus:公式ドキュメントで未確認。プラグイン画面にカスタム MCP を追加する項目があれば試せます · Web のみ

  1. Web 版 ChatGPT で MCP の追加ページを開く

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. 名前とアドレスを入力

    名前を入れ、Connection にアドレスを貼り付け、注意事項にチェックして Create as a plugin を押します

    Name · 名前Crypto Market
    Connection · アドレスhttps://2-31-102-176.sslip.io/mcp
  3. チャットで Crypto Market を選ぶ

    新しいチャットを開き、入力前にプラグインの一覧から Crypto Market を選びます

  4. 試してみる

    Crypto Market を使って、私に何ができるか教えて、1 つやってみせて

    ✓ ChatGPT が Crypto Market を使っていると言うか、回答に Crypto Market のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に OpenAI のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Claude Code につなげます · 約 2 分

キー不要、インストール不要

  1. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  2. このコマンドを貼り付けて Enter

    claude mcp add --transport http --scope user crypto-market https://2-31-102-176.sslip.io/mcp
  3. Claude Code で /mcp と入力

    Crypto Market が一覧にあり、接続済みと表示されれば OK です

  4. 試してみる

    Crypto Market を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Crypto Market を使っていると言うか、回答に Crypto Market のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげます · 約 2 分

キー不要、インストール不要

  1. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  2. Cursor の AI チャットを Agent モードで開く

  3. 試してみる

    Crypto Market を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Crypto Market を使っていると言うか、回答に Crypto Market のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげます · 約 2 分

キー不要、インストール不要

  1. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  2. VS Code の AI チャットを Agent モードで開く

  3. 試してみる

    Crypto Market を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Crypto Market を使っていると言うか、回答に Crypto Market のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

Web 経由でつなぐアプリ用のアドレス

アドレスhttps://2-31-102-176.sslip.io/mcp

JSON 設定は下の「開発者向け」にあります

つまずいたら?Crypto Market を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

Web 経由

Claude Code

claude mcp add --transport http --scope user crypto-market https://2-31-102-176.sslip.io/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "crypto-market": {
      "url": "https://2-31-102-176.sslip.io/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "crypto-market": {
      "type": "http",
      "url": "https://2-31-102-176.sslip.io/mcp"
    }
  }
}

自分で入力する値

  • Authorization 秘密 HTTP header
    任意。サーバーの FREE_API_KEYS リストにある Bearer トークン。省略すると毎日の無料枠を使用し、その後は x402 で呼び出しごとに支払います。
    英語の原文を見るOptional. Bearer token from the server FREE_API_KEYS list. Omit it to use the daily free allowance, then pay per call with x402.
  • X-Client-Id HTTP header
    任意の安定したクライアントIDで、IPと組み合わせて有料ツールの1日あたりの無料枠を追跡するために使用されます。秘密情報ではありません。
    英語の原文を見るOptional stable client id used with IP to track the daily free paid-tool allowance. Not a secret.

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
接続方法
クラウドで動く
トランスポート
streamable-http
最新バージョンi
1.1.0
レジストリ公開日i
2026年11月15日
コードの最終更新i
2026年11月15日
最終確認
2026年11月15日
作者
gojisatoshi888
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

インターネット経由でつなげるアプリ

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

すべてのアプリと長所・短所 →

できること

ツールの名前と説明は、サーバーが2026年11月15日に返したそのままの内容です。書いたのは作者で、私たちではありません。プレーンテキストとして表示しています。

  • get_price

    Live USD prices and 24-hour changes from CoinGecko. Pass tickers as a comma-separated string, for example BTC,ETH,SOL. CoinGecko ids such as bitcoin also work. Free, no payment.

  • fear_greed

    Current Crypto Fear & Greed Index (0-100) from alternative.me. Free, no payment.

  • top_movers

    Biggest 24-hour gainers and losers from CoinGecko's top 250 by market cap. Coins under min_volume_usd, with a tiny volume-to-market-cap ratio, or with an extreme move on low liquidity are marked suspicious and, by default, listed in filtered_out instead of the headline lists. Dup

  • funding_rates

    Perpetual futures funding rates. Pass tickers such as BTC,ETH,SOL. Tries Binance, then Bybit, then OKX, and reports which source answered. Paid tool: $0.005 USDC per call via x402 on eip155:8453. The first few calls each UTC day are free; after that an unpaid call returns Payment

  • market_brief

    Short plain-English brief from live prices, filtered movers, funding, and Fear & Greed. InferHub writes 5-8 sentences (max_tokens 800). Needs INFERHUB_API_KEY. Returns the brief and the raw data. Paid tool: $0.03 USDC per call via x402 on eip155:8453. The first few calls each UTC

  • rug_risk

    Rug-pull / honeypot score from 0 to 100 using GoPlus, DexScreener, and RugCheck on Solana. chain is ethereum, bsc, base, or solana (eth, bnb, and sol also work). Trusted tokens still list issuer-style flags but those flags do not add points. include_summary adds an InferHub parag

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント gojisatoshi888 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:4 日前

  • ✓ 合格

    ライセンスがある

    MITを使用

  • ✓ 合格

    エンドポイントが応答する

    278ミリ秒で応答(HTTP 200)

  • – 対象外

    OAuthでサインイン

    サインイン不要

  • ✓ 合格

    ツールの説明に隠れた指示がない

    6件のツールの説明を読み、AIへの隠れた指示は見つかりませんでした

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/gojisatoshi888-crypto-market.svg)](https://mcp.popnx.com/en/servers/gojisatoshi888-crypto-market)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

暗号資産・ブロックチェーンのほかのサーバーとの比較i

  • このカテゴリのほかの1754件のうち0%よりスターが多い
  • このカテゴリのほかの1754件のうち92%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1754件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Crypto Marketは安全ですか?

当てはまる基本チェック5項目のうち5項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

作者のクラウドで動きます。インストール不要でインターネット経由でつながりますが、送った内容は作者のサーバーを通ります。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は4 日前、最新バージョン(1.1.0)がレジストリに届いたのは4 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URL で接続するので、リモート MCP を受け付けるアプリでも使えます。例:Web 版 ChatGPT(Business 以上はフル MCP、Pro は読み取りのみ)。

代わりに使えるものは?

同じカテゴリには:DexSQL, PayRam, DexPaprika, Alchemy MCP Server, X402 List MCP

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

DexSQL

SQL for Android APK and DEX files: classes, methods, strings, references and smali.

作者:LSPosed成長中★ 32032 日前更新

パソコンで動く✓ lsposed.org

PayRam

Install, configure, operate and integrate self-hosted PayRam crypto payment gateways.

作者:PayRam成長中★ 15843 日前更新

クラウドで動く✓ 提供元 · payram.com

DexPaprika

DEX and on-chain data: liquidity pools, token prices, swaps, and trading volume.

作者:coinpaprika成長中★ 1206 日前更新

クラウドで動く✓ 提供元 · dexpaprika.com

X402 List MCP

Find and vet x402 payment APIs before your agent pays one: uptime, price, on-chain volume.

作者:mcccsm初期↓ 80/週★ 1840 日前更新

パソコンでもクラウドでも✓ 提供元 · x402-list.com
似たものと比べる
これ
Crypto Market
DexSQLPayRamDexPaprikaAlchemy MCP ServerX402 List MCP
動く場所クラウドで動き、インストール不要パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック5/52/33/44/44/45/5
ライセンスMITNOASSERTION–MITMITMIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Crypto Market MCP

A Model Context Protocol server for crypto market data. It runs over stdio for local clients, and over Streamable HTTP at /mcp when you host it. Paid tools use x402 (USDC on Base). Free tools never ask for payment.

Hosted endpoint (Base mainnet): https://2-31-102-176.sslip.io/mcp

Official registry name: io.github.gojisatoshi888/crypto-market. Each client gets 3 free paid-tool calls per UTC day. After that, paid tools require a USDC payment on Base via x402 (see How an agent pays). get_price and fear_greed stay free.

ToolWhat it returnsDefault price
get_price(symbols="BTC,ETH")CoinGecko USD price, 24h change, and volume (ok, prices)Free
fear_greed()alternative.me index (value, classification, as_of)Free
top_movers(limit, min_volume_usd, include_suspicious)Gainers, losers, filtered_out, and duplicate merges$0.005
funding_rates(symbols="BTC,ETH,SOL")Perpetual funding. Binance, then Bybit, then OKX$0.005
market_brief(symbols="BTC,ETH,SOL")InferHub brief (max_tokens 800) plus the raw snapshot$0.03
rug_risk(token_address, chain, include_summary=False)0–100 score, level, and flags. Chains: ethereum, bsc, base, solana (eth, bnb, sol)$0.02

The tool bodies are the original crypto_data.py and rug_risk.py logic, including the documented weights and trusted-token handling. Score bands are 0–24 low, 25–49 medium, 50–74 high, and 75–100 critical. Trusted tokens still list issuer-style flags, and those flags do not add points. Honeypot, can't-sell, high tax, dead liquidity, and fake-token flags always do. Successful upstream GETs are cached. Each vendor call uses HTTP_TIMEOUT_SECONDS.

Run locally

Python 3.10+.

python -m venv .venv

source .venv/bin/activate pip install -e ".[dev]"

Stdio (no wallet, payments off unless you set PAYMENTS_ENABLED=true):

python -m crypto_mcp

HTTP, with a health check on /health and MCP on /mcp:

export PAY_TO_ADDRESS=0x49Ac893403009239F96a188d55C2FD40f77A8195

export X402_NETWORK=base-sepolia python -m crypto_mcp.http_server

The process listens on HOST and PORT (0.0.0.0 and 8080 by default). Open http://127.0.0.1:8080/health.

Docker Compose publishes the HTTP server on 127.0.0.1:44021. If PAY_TO_ADDRESS is unset, Compose uses a dummy address so the process can boot. Put your real address in .env before you accept payments.

docker compose up --build

How an agent pays

Payment follows the x402 MCP transport. There is no HTTP 402 on /mcp, and no extra endpoint. initialize and tools/list are free. A paid tools/call without payment does not run the tool and does not move funds, unless the caller still has a free daily allowance (see below).

  1. The client calls the tool normally.
  2. The server returns a tool result with isError: true. structuredContent is an x402 PaymentRequired object (x402Version 2). content[0].text is that same object as JSON.
  3. accepts[0] is the exact scheme on the configured network (eip155:84532 for Base Sepolia, eip155:8453 for Base). amount is USDC's atomic units (6 decimals, so $0.02 is "20000"). asset is the USDC contract. payTo is PAY_TO_ADDRESS. extra.name and extra.version are the EIP-712 domain for USDC.
  4. The client signs an EIP-3009 transferWithAuthorization for that amount and recipient, and retries the same tools/call with the payload on params._meta["x402/payment"].
  5. This server asks the facilitator to verify, then to settle (it retries once if settlement fails for a transient reason). Only after settlement succeeds does the tool run. A failed settle returns PaymentRequired and never returns paid tool data. The tool result includes the receipt at _meta["x402/payment-response"] (success, transaction, network, payer).

A client that cannot pay stops at step 2. It is not charged.

The Python package x402.mcp (create_x402_mcp_client) does steps 3–5 for an agent that holds an EVM key. This server uses x402's resource server, scheme, and facilitator client. It does not use x402's FastMCP decorator: that decorator imports mcp.server.fastmcp, which mcp 2.3 removed when FastMCP was renamed MCPServer.

Example challenge (values depend on your env):

{

"isError": true, "structuredContent": { "x402Version": 2, "error": "Payment required to access this resource ($0.02 USDC on eip155:84532)", "resource": {"url": "mcp://tool/rug_risk", "mimeType": "application/json"}, "accepts": [{ "scheme": "exact", "network": "eip155:84532", "amount": "20000", "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", "payTo": "0xYourAddress", "maxTimeoutSeconds": 60, "extra": {"name": "USDC", "version": "2"} }] } }

Retry shape:

{

"method": "tools/call", "params": { "name": "rug_risk", "arguments": {"token_address": "...", "chain": "solana"}, "_meta": {"x402/payment": {"x402Version": 2, "accepted": {}, "payload": {}, "resource": {}}} } }

The public facilitator at https://x402.org/facilitator is the default for Base Sepolia and needs no API key. Coinbase's CDP facilitator (https://api.cdp.coinbase.com/platform/v2/x402) requires CDP_API_KEY_ID and CDP_API_KEY_SECRET. JWT auth is attached only when FACILITATOR_URL points at that CDP host, so you can store the keys now and keep testnet on x402.org. This process never holds a payment signing key and never sends a payment itself.

To go to Base mainnet after a testnet payment works: set X402_NETWORK=base and FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402 in .env.prod, then restart the container. Prices and PAY_TO_ADDRESS can stay the same if that address is the wallet you control on Base.

Daily free allowance

Paid tools (rug_risk, market_brief, top_movers, funding_rates) allow FREE_PAID_CALLS_PER_DAY free calls per client per UTC day (default 3, reset at 00:00 UTC). A client is the request IP plus the optional X-Client-Id header. After the allowance is used, those tools require x402 payment. Remaining calls are returned in _meta.freePaidCallsRemaining (also freePaidCallsLimit and freePaidCallsResetsAt). Set FREE_PAID_CALLS_PER_DAY=0 to require payment on every paid-tool call. The count is stored in FREE_TIER_PATH (default /app/data/free_tier.sqlite) so a restart does not reset the day. Owner keys in FREE_API_KEYS still skip both the charge and the daily allowance.

Owner API key

Set FREE_API_KEYS to a comma-separated list. A request with Authorization: Bearer or X-API-Key: skips the charge and the free-tool rate limit. Anyone without a key still has to pay for paid tools.

Connect a client

Remote URL, Cursor (.cursor/mcp.json):

{

"mcpServers": { "crypto-market": { "url": "https://2-31-102-176.sslip.io/mcp" } } }

Remote URL, Claude Desktop:

{

"mcpServers": { "crypto-market": { "type": "http", "url": "https://2-31-102-176.sslip.io/mcp" } } }

Add the owner header only on clients that should skip payment:

{

"mcpServers": { "crypto-market": { "url": "https://2-31-102-176.sslip.io/mcp", "headers": {"Authorization": "Bearer YOUR_FREE_API_KEY"} } } }

Local stdio:

{

"mcpServers": { "crypto-market": { "command": "python", "args": ["-m", "crypto_mcp"] } } }

Environment

Copy .env.example. Do not commit .env.

VariableRequiredDefaultPurpose
PAY_TO_ADDRESSWhen payments are onemptyEVM address that receives USDC
X402_NETWORKnobase-sepoliabase-sepolia, base, or eip155:
FACILITATOR_URLnohttps://x402.org/facilitatorx402 facilitator. Use the CDP URL for mainnet.
CDP_API_KEY_ID / CDP_API_KEY_SECRETWhen using the CDP facilitatoremptyCoinbase CDP API keys. Never commit them.
PAYMENTS_ENABLEDnoon for HTTP, off for stdioForce the gate on or off
FREE_API_KEYSnoemptyComma-separated owner keys
FREE_PAID_CALLS_PER_DAYno3Free paid-tool calls per client per UTC day. 0 disables the allowance.
FREE_TIER_PATHno/app/data/free_tier.sqlitePersisted free-tier counters
PRICE_RUG_RISKno$0.02Per-tool price override
PRICE_MARKET_BRIEFno$0.03Per-tool price override
PRICE_TOP_MOVERSno$0.005Per-tool price override
PRICE_FUNDING_RATESno$0.005Per-tool price override
X402_MAX_TIMEOUT_SECONDSno60Authorization lifetime advertised to the client
INFERHUB_API_KEYnoemptyBearer token for market_brief
INFERHUB_MODELwith the keyemptyModel name sent to InferHub
INFERHUB_BASE_URLnohttps://api.inferhub.dev/v1OpenAI-compatible base URL
HTTP_TIMEOUT_SECONDSno10Upstream call timeout
CACHE_TTL_SECONDSno30In-memory TTL for upstream GETs
RATE_LIMIT_FREE_PER_MINUTEno60Per-IP limit for free tools on HTTP
HOSTno0.0.0.0Bind address
PORTno8080Bind port. Railway sets this

get_price and fear_greed stay free. There is no price env for them.

Free tools are limited per client IP. Behind Railway the first X-Forwarded-For hop is the client. Upstream GETs are cached for CACHE_TTL_SECONDS. InferHub completions are not cached. Every upstream call uses HTTP_TIMEOUT_SECONDS.

Deploy on Railway

This repo is set up for Railway and is not deployed from here.

  1. Push the project to a Git repository you control.
  2. Create a Railway service from that repo. railway.json selects the Dockerfile, checks GET /health, and restarts on failure.
  3. In the service variables, set PAY_TO_ADDRESS=0x49Ac893403009239F96a188d55C2FD40f77A8195 (the owner's Base wallet; EIP-55 checksum checked) and leave X402_NETWORK=base-sepolia for testing. Set FACILITATOR_URL if you are not using the public facilitator. Set INFERHUB_API_KEY and INFERHUB_MODEL only if you want model-written briefs. Set FREE_API_KEYS if you want an owner bypass.
  4. Generate a public domain. The image listens on Railway's PORT.
  5. Open https:// /health. You should see "status": "ok".
  6. Point Cursor or Claude at https:// /mcp.
  7. For mainnet, after a successful Sepolia paid call, set X402_NETWORK=base and FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402 (CDP keys already in the environment), then restart. Try one paid tool on Sepolia first.

server.json describes the hosted Streamable HTTP server for the official MCP Registry (io.github.gojisatoshi888/crypto-market). smithery.yaml is historical listing metadata only; Smithery's publish API and CLI shut down on 31 October 2026.

Tests

pytest

Payment tests check that an unpaid paid-tool call returns PaymentRequired with the configured amount, network, asset, and payTo; that free tools run; and that FREE_API_KEYS skips the gate. They do not call a facilitator and do not sign a transaction. tests/test_network.py calls CoinGecko and alternative.me and skips itself if those hosts are blocked.

Layout

  • python -m crypto_mcp — stdio
  • python -m crypto_mcp.http_server — Streamable HTTP on /mcp, health on /health
  • crypto_mcp/payments.py — x402 challenge, verify, settle
  • crypto_mcp/market.py — vendor calls
  • crypto_mcp/scoring.py — volume flags and the rug score