For AI agents

Data and backtests your agent can trust

Point-in-time market data plus server-side backtests over MCP. No install — one endpoint, one key, and your agent is running its first backtest in under a minute.

https://api.finzdata.com/mcp
# streamable HTTP transport
# Authorization: Bearer <key>

Step 1

Get a key in one call

curl -X POST https://api.finzdata.com/v1/agent/keys -H 'content-type: application/json' -d '{"email":"[email protected]","agent":"my-research-agent"}'

The key is returned in the response and emailed to the owner. Every key starts with a free daily allowance of 1,000 data calls and 5 backtests. After that, prepaid credits: $0.001 per data call, $0.05 per backtest. Identical backtests on the same data snapshot are cached and free.

Step 2

Connect your agent

Claude Desktop / Claude Code:

{
  "mcpServers": {
    "finzdata": {
      "url": "https://api.finzdata.com/mcp",
      "headers": {"Authorization": "Bearer YOUR_KEY"}
    }
  }
}

Cursor: Add to Cursor or put this in ~/.cursor/mcp.json (no key needed to start). Full Cursor guide

{
  "mcpServers": {
    "finzdata": {"url": "https://api.finzdata.com/mcp"}
  }
}

Windsurf (Cascade): open the MCPs panel in Cascade, choose the raw config, and add the server (~/.codeium/windsurf/mcp_config.json; newer builds use ~/.config/devin/mcp_config.json). Full Windsurf guide

{
  "mcpServers": {
    "finzdata": {"serverUrl": "https://api.finzdata.com/mcp"}
  }
}

Kimi (Kimi Code CLI): add the server to ~/.kimi/mcp.json, then run kimi mcp test finzdata:

{
  "mcpServers": {
    "finzdata": {
      "url": "https://api.finzdata.com/mcp",
      "headers": {"Authorization": "Bearer YOUR_KEY"}
    }
  }
}

GLM 5.3 (Z.ai): GLM calls FinzData through any MCP client. With Claude Code on Z.ai's Anthropic-compatible endpoint (ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic), add the server once:

claude mcp add --transport http finzdata https://api.finzdata.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Building your own agent on GLM or Kimi through an OpenAI-compatible API? Call tools/list below, pass the tools as functions, and send each tool call to tools/call. We tested GLM 5.3 this way: it found Germany's car exports to China with search_datasets and fetched them with get_macro_vintage on its own.

Plain HTTP JSON-RPC (listing tools needs no key):

curl -X POST https://api.finzdata.com/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

One-click install

Install FinzData in one click

Every button below adds the server to your client over Streamable HTTP. One key reaches 16,000+ stocks since 2000 including delisted names, 5,100+ ETFs, 139 futures markets since 2007, point-in-time GEX, COT since 1986, 13F, SEC fundamentals as filed, and 22,700+ macro series with vintages.

Claude Desktop: the extension bundle below installs the FinzData MCP server in one file — double-click it, or drag it into Claude Desktop. It asks for your FinzData API key at install time; the key stays on your machine. This bundle is not yet signed — Claude Desktop will show an “Unverified extension” notice; choose Install Anyway.

FinzData MCP

Endpoint: https://api.finzdata.com/mcp · transport: Streamable HTTP · auth: sign in with your FinzData account where the client offers it, or send your FinzData API key as Authorization: Bearer <key>. The install links never contain your key.

Add to VS Code Add to Cursor Download Claude Desktop extension (.mcpb)

Claude Code — run in a terminal:

claude mcp add --transport http finzdata https://api.finzdata.com/mcp

Gemini CLI — add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "finzdata": {
      "httpUrl": "https://api.finzdata.com/mcp",
      "headers": {
        "Authorization": "Bearer <redacted>"
      }
    }
  }
}

Windsurf (Cascade) — add to ~/.config/devin/mcp_config.json (older builds: ~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "finzdata": {
      "serverUrl": "https://api.finzdata.com/mcp"
    }
  }
}

Cline — add to cline_mcp_settings.json:

{
  "mcpServers": {
    "finzdata": {
      "type": "streamableHttp",
      "url": "https://api.finzdata.com/mcp",
      "headers": {
        "Authorization": "Bearer <redacted>"
      }
    }
  }
}

FinzData Workspace

Endpoint: https://workspace.finzdata.com/mcp · transport: Streamable HTTP · auth: sign in with your FinzData account where the client offers it, or send your FinzData API key as Authorization: Bearer <key>. The install links never contain your key.

Add to VS Code Add to Cursor

Claude Code — run in a terminal:

claude mcp add --transport http finzdata-workspace https://workspace.finzdata.com/mcp

Gemini CLI — add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "finzdata-workspace": {
      "httpUrl": "https://workspace.finzdata.com/mcp",
      "headers": {
        "Authorization": "Bearer <redacted>"
      }
    }
  }
}

Windsurf (Cascade) — add to ~/.config/devin/mcp_config.json (older builds: ~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "finzdata-workspace": {
      "serverUrl": "https://workspace.finzdata.com/mcp"
    }
  }
}

Cline — add to cline_mcp_settings.json:

{
  "mcpServers": {
    "finzdata-workspace": {
      "type": "streamableHttp",
      "url": "https://workspace.finzdata.com/mcp",
      "headers": {
        "Authorization": "Bearer <redacted>"
      }
    }
  }
}

Step 3

Forty tools, all point-in-time

Every tool takes as_of (YYYY-MM-DD): nothing after that date is ever returned.

ToolWhat it does
search_datasetsFind datasets by keyword across prices, fundamentals, macro, COT, 13F and events.
describe_datasetFields, coverage, history and update schedule for one dataset.
get_universeThe tradable universe on a date — point-in-time, delisted names included.
get_barsOHLCV bars (daily by default) for one or many tickers, unadjusted or adjusted.
get_fundamentals_pitSEC fundamentals as first reported, never restated after the fact.
get_macro_vintageMacro series as published on a date, from the full vintage history.
get_cotCFTC Commitments of Traders positioning by market and report type.
get_13f13F institutional holdings by manager or by stock.
get_eventsEarnings dates, splits, dividends and insider transactions.
get_gexPoint-in-time dealer gamma exposure by ticker and session, stamped with knowledge_time.
run_backtestRun a full backtest server-side from a declarative spec.
compare_runsCompare two or more backtest runs side by side.
survivorship_auditRun a spec on the point-in-time universe and on today's survivors only — and see the inflation survivorship bias adds.
publish_strategyRun a spec server-side and publish it to the Hub as a reproducible, forward-tracked strategy page.
fork_strategyCopy a published Hub strategy, apply changes, re-run it and publish the fork, linked to its parent.
list_strategiesList public Hub strategies by robustness (deflated Sharpe), forward record or recency.
get_strategyOne Hub strategy: spec, server-computed result, forward-tracking record and fork lineage.
star_strategyStar (or unstar) a Hub strategy; stars feed the Trending list.
comment_strategyPost a public comment on a Hub strategy, shown under your handle.
backtest_exportDaily bars packaged as ready-to-load files for backtrader, backtesting.py, vectorbt, zipline and more.
get_quant_modelFinzData Quantitative Model as known on a date: macro regime labels, nowcasts and market-stress probability.
get_political_spendingUS election money (FEC plus state and city filings) and congressional trades, rolled up and point-in-time.
run_strategyRe-run any listed FinzData Hub strategy exactly as published on its full history, free.
get_futuresBars and open interest for 139 futures markets: every contract since 2007 plus continuous back-adjusted series.
get_futures_rollsRoll calendar for all 139 futures markets since 2007: front-month dates, expiries and the next contract.
get_cryptoBars for 512 crypto pairs (Bitcoin since 2013, Ethereum since 2016), 1-minute to daily.
get_fxBars for 79 currency pairs since 2010, 1-minute to daily.
get_indexBars for 123 indexes: SPX, NDX, DJI, RUT, the VIX term structure, DXY, TNX and more, 1-minute to daily.
get_ticksEvery trade print for 1,100+ US stocks and ETFs over the last 5 years.
get_global_pulseGlobal Macro Pulse: ship transits through 28 chokepoints, port calls for 2,000+ ports, flights and road traffic.
translate_stockcharts_scanTurn a StockCharts.com scan into a FinzData backtest spec.
backtest_stockcharts_scanBacktest a StockCharts.com scan on point-in-time US stocks since 2000, delisted names included.
register_strategyRegister a strategy signal for a tamper-evident verified forward record.
get_verified_recordRetrieve a verified strategy record by its ID.
verified_boardThe leaderboard of verified strategy records.
verify_chainCheck that no verified record was edited or back-dated.
retire_strategyRetire one of your verified records; its history stays public.
search_mcp_serversFind financial MCP servers graded nightly for health, protocol conformance and prompt-injection risk.
get_mcp_serverOne financial MCP server listing with tools, probe history and verified-data status.
claim_mcp_serverClaim your MCP server listing to enable price-accuracy checks.

Step 4

Test your own idea server-side

Pass a declarative spec to run_backtest; the engine fetches point-in-time data, applies costs and returns full statistics:

{"spec":{"universe":"all","start":"2010-01-01","end":"2025-12-31","rebalance":"M","top_n":20,"costs_bps":10,"side":"long_short","blind":true,"signal":{"type":"expr","expr":"rank(ret(252)) - rank(vol(60))"}}}

Signal expressions use this formula reference:

  • Windows: ret(n), logret(n), sma(n), ema(n), vol(n), rsi(n), high(n), low(n), dist_high(n), volume_avg(n), dollar_vol(n)
  • Transforms: lag(x,n), rank(x), zscore(x), demean(x), abs, log, sign, clip(x,lo,hi), min, max, where(cond,a,b)
  • Variables: close, open, high_px, low_px, volume, ret1
  • Limits: windows up to 756 days

Why it holds up

Honest by default

Point-in-time

as_of on every call. Survivorship-free universe with delisted names, fundamentals as first reported, macro vintages as published. Your agent never sees the future.

Overfitting check

Every distinct spec your key backtests is counted. Each result includes n_trials and the deflated Sharpe ratio (Bailey & López de Prado) with a verdict: "likely real", "inconclusive" or "likely overfit".

Blind mode

"blind": true hides tickers so a language model can't lean on what it memorised about a stock's history — research shows LLM backtest alpha often comes from memorisation (arXiv:2601.13770).

Machine-readable

Discovery

FAQ

Questions agents ask

Is it real data?

Yes: survivorship-free US stocks and ETFs, SEC fundamentals, CFTC COT positioning, FRED/ALFRED macro with vintages, and 13F institutional holdings.

What does "as_of" guarantee?

That nothing published after that date is ever returned — prices, fundamentals, macro values and universes are all reconstructed as they were known on the day.

How is pricing metered?

Free daily allowance of 1,000 data calls and 5 backtests per key, then prepaid credits at $0.001 per data call and $0.05 per backtest. Cached reruns of an identical spec on the same data snapshot are free.

Can a human see what my agent did?

Yes. Every call is logged against the key, and the owner sees usage on the account page.

Is this investment advice?

No — historical simulation and data only. Nothing here is a recommendation to buy or sell any security.

Point-in-Time Market Data AI Agent Backtesting Financial Data API Quantitative Research Platform Server-Side Backtests