Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.
PopNx MCPMCP servers for people who use AI · explained in plain words

Mercury402: Treasury/FRED financial data over x402

by dudman1version 0.1.4i★ 1iComputer or cloud
Registry nameio.github.dudman1/mercury402-mcp

How to install

What it does

Treasury/FRED financial data over x402: pay-per-call US yields, macro and forex in USDC on Base

  • Connects Computer or cloud
  • Account or key Cloud: No key needed · Local: Needs MERCURY402_PAYER_PRIVATE_KEY
  • Category Accounting, finance & tax

Install

Pick the AI app you use, then copy the settings.

Passed 5/5 checks · What you ask goes through the maker’s server (mcp.mercury402.com)

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  2. Click “+ Add” → “Add custom connector” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameMercury402: Treasury/FRED financial data over x402
    Remote MCP server URL · Addresshttps://mcp.mercury402.com/mcp

    Leave Authentication as Claude detected it, then click Add

  3. Turn it on in a chat

    +ConnectorsMercury402: Treasury/FRED financial data over x402

  4. Try it

    Use Mercury402: Treasury/FRED financial data over x402 and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Mercury402: Treasury/FRED financial data over x402 or shows a Mercury402: Treasury/FRED financial data over x402 tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT on business plans only

ChatGPT Business, Enterprise or Edu on the web, added by a workspace admin or owner · On Free, Plus or Pro: your ChatGPT plan cannot connect MCP yet

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameMercury402: Treasury/FRED financial data over x402
    Connection · Addresshttps://mcp.mercury402.com/mcp
  3. Pick Mercury402: Treasury/FRED financial data over x402 in a chat

    Start a new chat and pick Mercury402: Treasury/FRED financial data over x402 from your plugins before typing

  4. Try it

    Use Mercury402: Treasury/FRED financial data over x402 and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using Mercury402: Treasury/FRED financial data over x402 or shows a Mercury402: Treasury/FRED financial data over x402 tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http mercury402 https://mcp.mercury402.com/mcp
  3. Type /mcp in Claude Code

    You should see Mercury402: Treasury/FRED financial data over x402 listed as connected

  4. Try it

    Use Mercury402: Treasury/FRED financial data over x402 and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Mercury402: Treasury/FRED financial data over x402 or shows a Mercury402: Treasury/FRED financial data over x402 tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Mercury402: Treasury/FRED financial data over x402 and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Mercury402: Treasury/FRED financial data over x402 or shows a Mercury402: Treasury/FRED financial data over x402 tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Mercury402: Treasury/FRED financial data over x402 and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Mercury402: Treasury/FRED financial data over x402 or shows a Mercury402: Treasury/FRED financial data over x402 tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://mcp.mercury402.com/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Mercury402: Treasury/FRED financial data over x402💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http mercury402 https://mcp.mercury402.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "mercury402": {
      "url": "https://mcp.mercury402.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "mercury402": {
      "type": "http",
      "url": "https://mcp.mercury402.com/mcp"
    }
  }
}

Installed on your computer

Claude Code

claude mcp add mercury402 --env MERCURY402_PAYER_PRIVATE_KEY=your-value --env MERCURY402_MAX_PRICE_USD=your-value -- npx -y mercury402-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "mercury402": {
      "command": "npx",
      "args": [
        "-y",
        "mercury402-mcp"
      ],
      "env": {
        "MERCURY402_PAYER_PRIVATE_KEY": "your-value",
        "MERCURY402_MAX_PRICE_USD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "mercury402": {
      "command": "npx",
      "args": [
        "-y",
        "mercury402-mcp"
      ],
      "env": {
        "MERCURY402_PAYER_PRIVATE_KEY": "your-value",
        "MERCURY402_MAX_PRICE_USD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "mercury402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mercury402-mcp"
      ],
      "env": {
        "MERCURY402_PAYER_PRIVATE_KEY": "your-value",
        "MERCURY402_MAX_PRICE_USD": "your-value"
      }
    }
  }
}

Values you fill in

  • MERCURY402_PAYER_PRIVATE_KEY secret env
    Opt-in paid mode: private key of a dedicated low-balance wallet holding USDC on Base. Leave unset for free discovery mode.
  • MERCURY402_MAX_PRICE_USD env
    Per-call spending cap in USD for paid mode.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
53/wk
Connection
Computer or cloud
Transport
stdio, streamable-http
Latest versioni
0.1.4
Published to registryi
Oct 26, 2026
Code last changedi
Oct 30, 2026
Maker
dudman1
Packages
npm: mercury402-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

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

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 7, 2026. The maker wrote them, not us; we show them as plain text.

  • list_endpoints

    List Mercury402 financial data endpoints (78 total) with path, method, category, description, price in USD (paid per call in USDC on Base via x402) and accepted parameters. Free; makes no network calls.

  • get_endpoint_data

    Call a Mercury402 endpoint on the live API. This hosted endpoint is discovery-only: endpoints return HTTP 402 and this tool returns the price and x402 payment instructions instead of data. Pay with your own x402 client, or run mercury402-mcp locally (npx -y mercury402-mcp) with y

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account dudman1, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 13 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • ✓ Pass

    Endpoint responds

    Responded in 659 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 2 tool descriptions and found no hidden instructions to the AI

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Accounting, finance & taxi

  • More stars than 87% of the other 3149 servers in this category
  • Published to the registry more recently than 63% of the other 3149 servers in this category
  • Basic checks equal to or better than 100% of the other 3149 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Mercury402: Treasury/FRED financial data over x402 safe?

It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: MERCURY402_PAYER_PRIVATE_KEY

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed 13 days ago, and the latest version (0.1.4) reached the registry 17 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT Business and above.

What can I use instead?

In the same category: CCXT, Finance Toolkit, AKQuant

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

CCXT

Official CCXT MCP server - Market data and trading across 100+ exchanges and prediction markets

by ccxtWidely used↓ 667/wk★ 44.9KUpdated 2 months ago

Runs on your computer

Finance Toolkit

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

by JerBoumaWidely used↓ 15.6K/wk★ 5.5KUpdated 2 days ago

Computer or cloud

AKQuant

Write and backtest trading strategies with AKQuant: API lookup, strategy checks, backtest runs

by akfamilyWidely used↓ 3.3K/wk★ 2.6KUpdated yesterday

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Mercury402 MCP Server

An MCP server that lets Claude and other MCP clients discover and call Mercury402's pay-per-call financial data API: Treasury yields, FRED series, forex, yield spreads, breakeven inflation, macro bundles, composites and AI briefings.

Mercury402 is paid per call with x402: an unpaid request returns HTTP 402 with a payment descriptor; the client pays USDC on Base and gets JSON back.

  • Default (free) mode: browse all endpoints and prices; calling an endpoint returns the price and payment instructions from the 402. No wallet, no spending.
  • Paid mode (opt-in): set MERCURY402_PAYER_PRIVATE_KEY and the server pays the 402 (USDC on Base, capped per call) and returns the data.

Tools

ToolWhat it doesNetworkSpends money
list_endpointsLists all 78 endpoints: path, method, category, description, price (USD), parameters. Optional category and search filters.NoNo
get_endpoint_dataCalls an endpoint on the live API. Returns the data, or the 402 quote + how to pay.YesOnly in paid mode
get_endpoint_data arguments
ArgTypeNotes
pathstringCatalog path. Path params inline (/v1/fred/UNRATE) or as a template (/v1/fred/{series_id})
paramsobjectPath params, plus query params (GET) or JSON body fields (POST)
paybooleanPaid mode only. false = return the quote without paying. Default true

Only paths in the catalog can be called; anything else is rejected before a request is made.

Install

Requires Node.js 20.10+. The package is mercury402-mcp on npm; MCP clients can launch it with npx, so there is nothing to install by hand.

npx -y mercury402-mcp        # starts the server on stdio (what MCP clients do for you)
Claude Code
claude mcp add mercury402 -- npx -y mercury402-mcp
Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop:

{

"mcpServers": { "mercury402": { "command": "npx", "args": ["-y", "mercury402-mcp"] } } }

Paid mode (optional)

By default the server never spends money: it lists endpoints and returns price quotes. To have it pay per call, give it a payer wallet:

Warning: the private key is stored in plaintext in your MCP client config

(claude_desktop_config.json, or ~/.claude.json for Claude Code). Use a **dedicated wallet holding only

a small USDC balance on Base**, never your main wallet, and keep MERCURY402_MAX_PRICE_USD low. With

Claude Code, don't add the key with --scope project: that writes it to .mcp.json, which is usually

committed to git.

Claude Code:

claude mcp add mercury402 \

-e MERCURY402_PAYER_PRIVATE_KEY= \ -e MERCURY402_MAX_PRICE_USD=0.50 \ -- npx -y mercury402-mcp

Claude Desktop:

{

"mcpServers": { "mercury402": { "command": "npx", "args": ["-y", "mercury402-mcp"], "env": { "MERCURY402_PAYER_PRIVATE_KEY": " ", "MERCURY402_MAX_PRICE_USD": "0.50" } } } }

Alternative: run from a local checkout
git clone https://github.com/dudman1/mercury402.git

cd mercury402/mcp-server npm install npm run build

Then point your client at the built file instead of npx:

claude mcp add mercury402 -- node /absolute/path/to/mercury402/mcp-server/dist/index.js
{

"mcpServers": { "mercury402": { "command": "node", "args": ["/absolute/path/to/mercury402/mcp-server/dist/index.js"] } } }

Streamable HTTP (optional)
npx -y mercury402-mcp --http   # http://127.0.0.1:3402/mcp (stateless, JSON responses)

Stateless streamable HTTP: POST /mcp speaks MCP, GET / describes the server, and GET /healthz is a local health check. The HTTP endpoint has no authentication. It binds to 127.0.0.1 by default, checks the Host header against an allowlist (loopback names plus MCP_HTTP_ALLOWED_HOSTS), rate-limits per client IP and globally, and caps request bodies.

Paid mode over HTTP is loopback-only. The server refuses to start with MERCURY402_PAYER_PRIVATE_KEY set together with a non-loopback MCP_HTTP_HOST, a public MCP_HTTP_ALLOWED_HOSTS entry, MCP_HTTP_TRUST_PROXY, or MCP_PUBLIC_URL. In paid mode it also rejects browser requests (any Origin header). To serve it publicly behind a reverse proxy in free mode, see deploy/HOSTED.md.

Environment variables

VariableDefaultDescription
MERCURY402_PAYER_PRIVATE_KEYunset (paid mode off)EVM private key (hex, 0x optional) of the wallet that pays, in USDC on Base. Setting it turns on paid mode. It ends up in plaintext in your client config, so use a dedicated low-balance wallet. The server only uses it in-process to sign payments; it is never logged or returned by any tool or error
MERCURY402_MAX_PRICE_USD0.50Per-call spending cap in USD. A 402 quote above this is returned to the agent instead of being paid. Current prices are $0.05–$0.50 per call; range FRED queries cost 2×
MERCURY402_API_URLhttps://api.mercury402.comAPI base URL (https://mercury402.uk also works)
MERCURY402_TIMEOUT_MS60000Per-request timeout (paid calls wait for on-chain settlement)
MCP_HTTP_HOST / MCP_HTTP_PORT127.0.0.1 / 3402HTTP transport bind address (only with --http)
MCP_HTTP_ALLOWED_HOSTSunsetComma-separated extra Host header names to accept (e.g. mcp.example.com behind a proxy). Loopback names are always accepted; anything else gets 403
MCP_HTTP_TRUST_PROXYfalseRate-limit on Cloudflare's CF-Connecting-IP instead of the socket address. Enable only behind cloudflared/Cloudflare: the header is spoofable otherwise. X-Forwarded-For is never used
MCP_HTTP_RATE_LIMIT_PER_MIN60POST /mcp requests per client IP per minute (0 disables)
MCP_HTTP_GLOBAL_RATE_LIMIT_PER_MIN600POST /mcp requests per minute across all clients (0 disables)
MCP_HTTP_MAX_BODY_BYTES65536Largest accepted request body; larger gets 413
MCP_PUBLIC_URLunsetPublic /mcp URL that GET / advertises. Setting it marks the server as public, so paid mode refuses to start

Example tool calls

List the Treasury endpoints:

{ "name": "list_endpoints", "arguments": { "category": "treasury" } }

Categories: ai, breakeven-inflation, composite, forex, fred, macro, treasury, yield-spread.

Get a FRED series (free mode returns a quote):

{ "name": "get_endpoint_data", "arguments": { "path": "/v1/fred/UNRATE", "params": { "limit": 12 } } }
PAYMENT REQUIRED (HTTP 402) for https://api.mercury402.com/v1/fred/UNRATE?limit=12: $0.05 (50000 USDC atomic units on base, pay to 0x…). Payment required. Paid mode is disabled (MERCURY402_PAYER_PRIVATE_KEY not set).

{ "status": "payment_required", "quote": { "price_usd": 0.05, "amount_usdc_atomic": "50000", "network": "base", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "pay_to": "0x…", "scheme": "exact", "x402_version": 1 }, "how_to_pay": ["…"], ... }

Historical yield curve (POST, params become the JSON body):

{

"name": "get_endpoint_data", "arguments": { "path": "/v1/treasury/yield-curve/historical", "params": { "start_date": "2026-07-01", "end_date": "2026-09-30" } } }

Ask the data (AI, POST):

{

"name": "get_endpoint_data", "arguments": { "path": "/v1/ai/ask", "params": { "question": "Is inflation cooling?", "series": ["/v1/fred/cpi", "/v1/fred/pce-core"] } } }

Quote only, even in paid mode:

{ "name": "get_endpoint_data", "arguments": { "path": "/v1/composite/economic-dashboard", "pay": false } }

In paid mode a successful call returns status: "ok", the endpoint's JSON under data, and a payment block with the price, payer address and decoded PAYMENT-RESPONSE settlement (transaction hash).

How paid mode works

  1. Request the endpoint; Mercury402 answers 402 with x402 payment requirements. The v1 JSON body (x402Version: 1, network base) is used; the v2 Payment-Required header is a fallback.
  2. The server picks the exact / USDC-on-Base option and checks it: network base (or eip155:8453), asset = Base USDC (0x8335…2913), price ≤ MERCURY402_MAX_PRICE_USD. Otherwise it returns the quote and does not pay.
  3. It signs an EIP-3009 transferWithAuthorization for exactly the quoted amount (locally, with a fresh random nonce) and resends the request with a PAYMENT-SIGNATURE header containing base64 JSON { x402Version: 2, accepted: , payload: { authorization, signature } }, the same shape that Mercury402's server verifies (require402Payment()). Mercury402 settles on-chain and returns the data.
  4. Paid requests are never retried automatically, so one tool call can't be charged twice.

Security notes: use a dedicated hot wallet with a small balance, because the key sits in plaintext in your client config. The server only reads it from the environment, uses it in-process for signing, and never logs, echoes, or includes it in tool output or errors.

Pricing notes

  • Most endpoints are $0.05; macro bundle/recession probability $0.10; AI briefing $0.10, AI ask $0.15; composites $0.40–$0.50.
  • /v1/fred/{series_id} costs 2× when both observation_start and observation_end are supplied.
  • Invalid FRED series ids and malformed historical date ranges get a free 400 before any 402.

Development

From a checkout of dudman1/mercury402:

npm test                    # vitest; HTTP and payments are mocked, no network, no real transactions

test/server-contract.test.ts also boots ../src/server.js (needs npm ci at the

repo root; skipped otherwise) with on-chain settlement stubbed

npm run typecheck npm run generate:catalog # regenerate src/catalog.json after changing ../src/pricing.js or routes npm pack --dry-run # inspect the publish tarball

The endpoint catalog (src/catalog.json) is generated from ../src/catalog.js, the same module that builds the API's JSON manifest and /llms.txt (it reads src/pricing.js, src/new-routes.js and src/ai-routes.js). Tests in both packages fail if it drifts from src/pricing.js. tsc bakes the catalog into dist/catalog.json, so the published package never reads the repo at runtime; prepublishOnly regenerates the catalog, rebuilds, and runs the tests.