findata: SEC fundamentals, paid per call (x402)

v0.2.0
io.github.Findata-x402/mcp Checked 1 day ago Published 2 days ago

SEC fundamentals of the S&P 500: verdicts, financials, signals, events.

MCP server for SEC EDGAR fundamentals of the S&P 500 — one-line verdicts, financials (annual, quarterly, TTM), health score, Piotroski / Altman Z'' / accruals signals, peers, anomalies, classified SEC events, screening — from the findata API. Paid tools pay per call in USDC on Base via x402, from a wallet you configure, with your approval and within spending caps. Free tools need no wallet. Use a dedicated wallet that only ever holds a few USDC on Base — never your main wallet.

Summary extracted from the README.

findata-x402-mcp

MCP server for SEC EDGAR fundamentals of the S&P 500 — one-line verdicts, financials (annual, quarterly, TTM), health score, Piotroski / Altman Z'' / accruals signals, peers, anomalies, classified SEC events, screening — from the findata API. Paid tools pay per call in USDC on Base via x402, from a wallet you configure, with your approval and within spending caps. Free tools need no wallet.

Use a dedicated wallet that only ever holds a few USDC on Base — never your main wallet. Its key is the only secret; the blocks below keep it out of the configuration file wherever the client allows it.

Configure

Claude Code

Keep the key in your shell environment, and let Claude Code expand it from a project .mcp.json (${VAR} is expanded in command, args and env):

{
  "mcpServers": {
    "findata": {
      "command": "npx",
      "args": ["-y", "findata-x402-mcp"],
      "env": { "FINDATA_WALLET_PRIVATE_KEY": "${FINDATA_WALLET_PRIVATE_KEY}" }
    }
  }
}

Or for all your projects (the key is then written in ~/.claude.json; read -rs keeps it out of your shell history):

read -rs FINDATA_WALLET_PRIVATE_KEY
claude mcp add --scope user --env FINDATA_WALLET_PRIVATE_KEY="$FINDATA_WALLET_PRIVATE_KEY" --transport stdio findata -- npx -y findata-x402-mcp

Cursor

~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project); ${env:NAME} reads your environment:

{
  "mcpServers": {
    "findata": {
      "command": "npx",
      "args": ["-y", "findata-x402-mcp"],
      "env": { "FINDATA_WALLET_PRIVATE_KEY": "${env:FINDATA_WALLET_PRIVATE_KEY}" }
    }
  }
}

VS Code (GitHub Copilot)

.mcp.json at the workspace root, or ~/.copilot/mcp-config.json; ${NAME} reads your environment:

{
  "mcpServers": {
    "findata": {
      "command": "npx",
      "args": ["-y", "findata-x402-mcp"],
      "env": { "FINDATA_WALLET_PRIVATE_KEY": "${FINDATA_WALLET_PRIVATE_KEY}" }
    }
  }
}

(The older .vscode/mcp.json format, deprecated, can instead prompt for the key: an inputs entry of type promptString with "password": true, referenced as ${input:<id>}.)

Windsurf

~/.codeium/windsurf/mcp_config.json; ${env:NAME} reads your environment:

{
  "mcpServers": {
    "findata": {
      "command": "npx",
      "args": ["-y", "findata-x402-mcp"],
      "env": { "FINDATA_WALLET_PRIVATE_KEY": "${env:FINDATA_WALLET_PRIVATE_KEY}" }
    }
  }
}

Claude Desktop

claude_desktop_config.json (Settings → Developer → Edit Config; macOS ~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\). Claude Desktop documents no variable expansion: the key is written in clear in this file — treat the file as a secret.

{
  "mcpServers": {
    "findata": {
      "command": "npx",
      "args": ["-y", "findata-x402-mcp"],
      "env": { "FINDATA_WALLET_PRIVATE_KEY": "0x… (dedicated wallet)" }
    }
  }
}

Approval prompts

Each payment waits for your approval in the client, through MCP elicitation. Claude Code, VS Code (Copilot) and Cursor document it; we could not confirm it for Claude Desktop and Windsurf. A client that cannot show the prompt gets a refusal explaining this — never a silent payment. Then use a client that can, or set FINDATA_PAYMENT_APPROVAL=auto in env: the server pays within your caps without asking.

Variable Default
FINDATA_WALLET_PRIVATE_KEY unset (free tools only) payer key; a dedicated wallet with a small balance
FINDATA_PAYMENT_APPROVAL ask ask: each payment waits for your approval; auto: pays within the caps without asking (autonomous agents)
FINDATA_MAX_USD_PER_CALL 0.05 no payment above this
FINDATA_MAX_USD_PER_SESSION 1.00 total paid since the server started
FINDATA_MAX_USD_PER_DAY 2.00 total paid per UTC day, across restarts and all findata servers of this computer
FINDATA_MAX_BRIEFS_PER_10_MIN 5 distinct companies detail=brief is bought for within 10 minutes
FINDATA_STATE_DIR ~/.findata-x402-mcp where the daily spending record (spending.json) is kept
FINDATA_BASE_RPC_URL https://mainnet.base.org Base node the wallet balance is read from (findata_wallet_status only)
FINDATA_API_URL https://api.findata-x402.com https only (http for localhost)
FINDATA_NETWORK eip155:8453 (Base) eip155:84532 for Base Sepolia tests
FINDATA_EXPECTED_PAYTO findata's receiving address (mainnet) payments to any other address are refused

Tools

Tool Price
findata_resolve_company free ticker / CIK → canonical id, name, country, sector, data available: check before paying
findata_catalog free every option with its price and HTTP route, coverage, data freshness
findata_company_report $0.001 – $0.025 one company; detail = verdict (start here), snapshot, financials (period_type), health, anomalies, signals, brief (everything)
findata_compare from $0.008 mode = compare (2 to 10 companies), peers, sector_ranking
findata_screen $0.02 companies matching financial criteria, in one call
findata_events $0.005 / $0.01 classified SEC events of one company (id) or of all covered companies
findata_wallet_status free, local wallet address, USDC balance, what was paid, caps and what remains

The tools and their prices come from the API's /openapi.json at startup (a bundled copy is used if the API is unreachable): new options appear without updating this package. Each description starts with its prices; paid tools are annotated destructiveHint (they spend your money).

Safety

  • Your approval for each payment (see above): amount, receiving address and request shown before anything is signed.
  • Caps the model cannot raise: per call, per session, per UTC day. They are read from the environment only; no tool argument touches them. The day's total is kept on disk, so restarting the server does not reset it.
  • Pinned destination. Before signing: exact scheme, Circle's USDC on the configured network, receiving address = findata's. A 402 naming another address, network or token is refused, nothing is signed. What was signed is checked again before it is sent. The API URL must be https.
  • Never paid twice for the same data: the same call within the hour is answered from the session cache.
  • Protection against your own agent: detail=brief for more than 5 companies within 10 minutes is refused with a suggestion to use findata_screen or findata_compare, far cheaper than one brief per company.
  • Auditable answers: every paid answer ends with the request made, the amount paid, the transaction, and the session and day totals. An unknown company or a bad argument is answered for free by the API, before any payment.
  • The key is read from the environment only: never a tool argument, never logged, never returned.

Already have an x402 wallet tool?

Start the server with --no-wallet ("args": ["-y", "findata-x402-mcp", "--no-wallet"]): it does not pay, and does not even read a key. A paid tool then answers with the exact request to make, its price and the address it must pay, for your wallet tool to execute. The free tools work as usual.

What is sent where

  • To the findata API: your tool calls, with the User-Agent findata-x402-mcp/<version> and an x-findata-session header — a random id drawn at each start of the server and never stored, so findata can count sessions (how many go from a free call to a paid one) without knowing who you are. The API keeps no IP address.
  • To a Base node, only when you call findata_wallet_status: your wallet address, to read its USDC balance. The node sees that address and your IP; set FINDATA_BASE_RPC_URL to use your own.

Source & license

Source: https://github.com/Findata-x402/mcp · License: MIT (this server's code; the findata API itself is a paid service). API documentation: https://api.findata-x402.com/llms.txt.