Datavidence Financials

ai.datavidence由 datavidence.ai 发布v0.1.5更新于 Oct 25, 2026

Normalized US-GAAP financial statements & fundamentals from SEC EDGAR, as MCP tools for LLM agents.

已验证STDIO仅桌面数据库金融数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,让助手通过商业 API 获取任意 SEC XBRL 申报公司的标准化美国 GAAP 财务报表和申报数据。

可以做什么
按股票代码或公司名称查找公司,取得 CIK 等标识,并按表格类型列出公司近期 SEC 申报,以确认可用的财年。获取单个公司某一财年的标准化利润表、资产负债表和现金流量表,可选按当时原始披露的口径(point-in-time),并附带来源溯源和比率;也可一次批量查询最多 25 家公司。追溯某财年数据在各次申报间的变化,包括重述及幅度。查询 API 密钥的月度配额和剩余调用次数。
适用场景
当助手需要美国上市公司可靠且口径一致的财务数据、而不想自行解析原始 EDGAR XBRL 时适用,例如基本面分析、公司对比,或需要无前视偏差的时点数据的回测。
运行要求
需要本地 Python 运行环境,通过 uvx 运行或用 pipx 安装。需要在 FL_API_KEY 中提供 API 密钥(sandbox_demo_key 仅返回示例数据)。可选设置 FL_API_BASE_URL、FL_API_KEY_HEADER 和 FL_API_TIMEOUT。需要能访问 Datavidence API 或 RapidAPI 等市场网关的网络。
安装前请注意
实时 SEC 数据需要 RapidAPI 密钥(有免费额度或付费套餐),调用按套餐计量。密钥会放在请求头中发送给 Datavidence API 或你配置的网关,服务方会记录与密钥哈希关联的请求元数据并保留 12 个月。连接器本身只读,不在本地存储数据。示例密钥返回的是样本数据,不是真实申报。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Datavidence Financials,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Datavidence Financials — MCP Server

Normalized US-GAAP financial statements for every SEC XBRL filer — point-in-time, as originally reported — as MCP tools for your AI agent (or a plain REST API).

[PyPI] [Python versions] [License: MIT] [MCP registry] [smithery badge] [M8ven Score]

Language models are good at reasoning about financial statements and bad at getting them. SEC EDGAR has the data, but its XBRL is a thicket of inconsistent tags, renamed concepts, and per-filer quirks — so agents either hallucinate the numbers or you spend weeks building a normalization layer. This is that layer: your agent asks for a company's financials and gets a clean, consistent answer — over the Model Context Protocol, or as a plain REST API.

⭐ If this is useful, please star the repo. It's a solo, early project, and stars are how other developers find it.

[Claude calls the Datavidence Financials get_revisions tool: Pfizer's FY2019 revenue as filed ($51.75B) and as it reads today ($40.9B), with links to the SEC filings]

This is the open-source, AI-native layer for the Datavidence Financials API — a standalone stdio server that forwards over HTTPS to the REST API (bring your own key). The connector is MIT-licensed; the underlying API is a commercial service.

Try it in 30 seconds (no signup)

Run it with no clone using uv — it installs into a throwaway environment:

bash
FL_API_KEY=sandbox_demo_key uvx datavidence-financials

sandbox_demo_key returns sample data with no signup — good for a first run. Set FL_API_KEY to your real key for live SEC data. The server speaks MCP over stdio, so an MCP client (e.g. Claude Desktop, below) launches it.

Or install it as a persistent tool with pipx:

bash
pipx install datavidence-financialsFL_API_KEY=sandbox_demo_key datavidence-financials

Connect by URL (no install)

Clients that support remote MCP servers (streamable HTTP) can connect without installing anything:

URLKeyData
https://mcp.financials.datavidence.ai/mcpnonesample (AAPL FY2023)
https://mcp.financials.datavidence.ai/rapidapi/mcpyour RapidAPI key, as X-API-Key or Authorization: Bearerlive SEC data, metered by RapidAPI against your plan

Claude Code:

bash
claude mcp add --transport http datavidence-financials \  https://mcp.financials.datavidence.ai/rapidapi/mcp \  --header "X-API-Key: YOUR_RAPIDAPI_KEY"

For the sample data, use the /mcp URL and leave out the header.

claude.ai: add https://mcp.financials.datavidence.ai/mcp as a custom connector with no sign-in. claude.ai can't send an API key for most accounts yet, so it gets the sample data for now.

Why it's different

  • Point-in-time, as originally reported. Pass an as_of date and you get the figures as they stood then — no look-ahead bias from later restatements. The thing backtests quietly get burned without.
  • Normalized to one schema. EDGAR's XBRL tags drift between filers and change over the years. We map them to a single US-GAAP income statement, balance sheet, and cash flow — including the awkward cases (noncontrolling interest, mezzanine/temporary equity, non-calendar fiscal years) — so you never parse a filing.
  • Every SEC XBRL filer. Coverage is the whole SEC XBRL universe (~2009 to present), fetched and normalized on demand — any CIK with XBRL facts, not a curated subset.
  • Source-linked, too. Turn on provenance and every value carries its SEC accession, filed date, and a direct EDGAR URL — so the model cites the filing instead of inventing a number.

Honest scope: US-GAAP only (IFRS filers return a clear "unsupported" signal rather than wrong numbers); XBRL-era history (~2009 onward). And when a company reorganizes under a new holding entity, SEC's ticker map points only at the successor CIK — the earlier years stay under the predecessor, so the error tells you and you pass cik= directly.

Tools

  • get_financials — normalized income statement + balance sheet + cash flow for one company and fiscal year, from SEC EDGAR XBRL. Supports as_of (point-in-time, as originally reported), include_provenance (per-value SEC accession, filed date, and direct EDGAR source URL), and include_ratios (margins, ROA/ROE, leverage).
  • get_financials_batch — the same, for up to 25 companies in one call (comma-separated tickers/CIKs). Per-symbol results; counts as a single quota unit, so one bad symbol never fails the batch.
  • list_filings — a company's recent SEC filings (newest first) from the EDGAR submissions index; filter by form (e.g. 10-K). Use it to discover which fiscal years are available before calling get_financials.
  • get_revisions — how a fiscal year's figures CHANGED across filings: every reported value with its filing date, form, SEC accession and EDGAR link, plus whether it was restated and by how much. Pfizer's FY2019 revenue was filed at $51.75B in 2020 and restated to $40.9B by 2022 — this is how you see that.
  • search_companies — find a ticker and CIK by ticker or company name, for when you have "Berkshire" and need BRK-B. Use it before the tools above, which all require an identifier.
  • get_usage — the key's monthly quota (tier, used, remaining, reset). Free to call; consumes no quota.

Errors surface the API's recovery_action hint, so agents self-correct.

Claude Desktop

Add to claude_desktop_config.json, then fully quit (Cmd+Q) and reopen Claude Desktop — the tools appear:

json
{  "mcpServers": {    "datavidence-financials": {      "command": "uvx",      "args": ["datavidence-financials"],      "env": { "FL_API_KEY": "sandbox_demo_key" }    }  }}

Then ask, e.g., "Get AAPL's FY2023 income statement, balance sheet, and cash flow with ratios." Swap in your real key for live data.

Codex

Add to ~/.codex/config.toml, then start codex — the tools appear:

toml
[mcp_servers.datavidence-financials]command = "uvx"args = ["datavidence-financials"]env = { FL_API_KEY = "sandbox_demo_key" }# uvx downloads the package on first run; allow more than Codex's 10 s default.startup_timeout_sec = 30

Swap in your real key for live data.

Or connect by URL instead (nothing to install; set DATAVIDENCE_API_KEY to your RapidAPI key):

toml
[mcp_servers.datavidence-financials]url = "https://mcp.financials.datavidence.ai/rapidapi/mcp"bearer_token_env_var = "DATAVIDENCE_API_KEY"

Leave out bearer_token_env_var and use https://mcp.financials.datavidence.ai/mcp for the sample data.

Configuration (environment variables)

VariableDefaultNotes
FL_API_KEY(none)Your API key. sandbox_demo_key = no-signup trial (sample data).
FL_API_BASE_URLhttps://api.financials.datavidence.aiPoint at a marketplace gateway for metered BYOK access.
FL_API_KEY_HEADERX-API-KeyHeader to send the key in (e.g. X-RapidAPI-Key for the RapidAPI gateway).
FL_API_TIMEOUT30Per-request timeout, in seconds.

Getting live data

The demo key returns sample data. For live figures, grab a key on RapidAPI: Free (1,500 calls/mo), Pro ($29 / 50k), Business ($99 / 300k). Full feature parity across tiers — they differ only by monthly call volume.

To use your RapidAPI key, set these three variables (in the env block of the Claude Desktop config, or the env table in Codex's config.toml):

FL_API_BASE_URL=https://datavidence-financials-api.p.rapidapi.comFL_API_KEY_HEADER=X-RapidAPI-KeyFL_API_KEY=<your RapidAPI key>

Your key is on RapidAPI under your app's Authorization page, or in any code snippet on the API's page. Calls are metered by RapidAPI against your plan. With a RapidAPI key, get_usage shows your RapidAPI plan and its monthly limit; RapidAPI meters your calls, so check how many you've used in your RapidAPI dashboard.

Run from source

bash
pip install -e .FL_API_KEY=sandbox_demo_key python -m mcp_server.server   # stdio transport

Tests

bash
pip install -e ".[dev]"pytest

29 tests, no network and no API key needed. They call every tool through the MCP SDK with the HTTP layer stubbed, check that an API error reaches the model with its recovery hint, and check that each tool declares all four behaviour hints (read-only, non-destructive, idempotent, open-world).

Privacy Policy

The connector runs on your machine, has no telemetry and stores nothing. When a tool is called it sends two things to the Datavidence Financials API: the tool's arguments (for example a ticker, a CIK, a fiscal year or a company-name search) and your API key, in a request header. It does not see your files or the rest of your conversation.

  • Where it goes: https://api.financials.datavidence.ai by default. If you set FL_API_BASE_URL to the RapidAPI gateway, requests go through RapidAPI, under its own privacy policy.
  • What the API records: for each request, the endpoint, HTTP status, response time, timestamp and IP address, tied to a hash of the API key (never the key itself).
  • Retention: usage logs are kept for 12 months.
  • Sharing: not sold; shared only with the marketplace gateway you subscribed through and the infrastructure provider that hosts the service.
  • Contact: [email protected]

Full policy: https://financials.datavidence.ai/privacy

Feedback

Found a company where the numbers come back wrong, or a field/tool you need? Open an issue — the normalization edge cases are exactly the feedback that makes this better, and I read every one.

Links

License

MIT © 2026 Datavidence LLC — see LICENSE. The connector is open-source; the underlying Datavidence Financials API is a commercial service.

来源:README.md,提交 e048ff1

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v0.1.5最新Sep 24, 2026
  2. v0.1.4Sep 23, 2026
  3. v0.1.3Sep 22, 2026
  4. v0.1.2Sep 17, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分