洋葱财报OnionData-MCP
v1.0.1洋葱财报OnionData-MCP 提供 A 股上市公司多口径财报数据,覆盖利润表、资产负债表、现金流量表,支持单季同比/环比、逐季度 TTM、年度与最新报告期近 10 期查询。
Endpoint health
online- Last checked
- 11/20/2026, 9:17:59 AM
- Latency
- 851 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:com.onionreport%2Foniondata-mcp
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"com.onionreport/oniondata-mcp": {
"url": "https://api.onionreport.com/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
6 shown · authentication unknown
财务取数(单公司多期 / 多公司单期)
company_records
读取 A 股上市公司财报明细(China A-share financial statements):唯一取数入口,覆盖利润表 income、资产负债表 balance、现金流量表 cashflow、业绩预告 predict。五种口径——new 最新报告期(latest)、quarter_t 单季度同比(single-quarter YoY)、quarter_h 单季度环比(single-quarter QoQ)、ttm 逐季度滚动四季合计(trailing twelve months)、year 年度(annual)。scode 传 1 个 → 单公司多期(periods 1–10,默认 1);传 2–10 个 → 多公司单期横切(省略 report_date 时取所选公司该口径的最近报告期)。多公司不支持 periods,periods 与 report_date 互斥(dimension_conflict)。repotype=basic/operation 可按指标配置把该报表细分为基础指标 / 运营指标,省略返回该报表全部指标。format=long 一行一指标;format=wide 一行一(公司, 报告期, 报表)的指标对象;业绩预告(predict)仅支持 format=long。结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔);超出返回 result_too_large,不截断。notice_date_to 按当前公告日过滤(重述会移动公告日),notice_date_from 做增量(含重述)。数值为原始值(元),增幅以百分点表示(12.3 即 12.3%)。单公司与多公司横切均不要求 VIP;按实际返回与数据价值权重计积分,空结果不计。
Schema valid · SHA-256 db5a0adeda37…
View input schema
{ "type": "object", "properties": { "scode": { "type": "array", "items": { "type": "string", "pattern": "^\\d{6}$" }, "minItems": 1, "maxItems": 10, "description": "A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组" }, "reponame": { "type": "string", "description": "报表名:income 利润表(income statement)/ balance 资产负债表(balance sheet)/ cashflow 现金流量表(cash flow statement)/ predict 业绩预告;多张报表用逗号分隔(最多 4 个),如 income,balance" }, "repoterm": { "type": "string", "enum": [ "new", "quarter_h", "quarter_t", "ttm", "year" ], "description": "单一口径:new 最新报告期 latest / quarter_t 单季度同比 YoY / quarter_h 单季度环比 QoQ / ttm 逐季度 TTM / year 年度 annual" }, "repotype": { "type": "string", "enum": [ "basic", "operation" ], "description": "指标类别:basic 基础指标 / operation 运营指标;省略=该报表全部指标" }, "periods": { "type": "integer", "minimum": 1, "maximum": 10, "description": "报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict)" }, "report_date": { "type": "string", "description": "报告期 YYYY-MM-DD;与 periods 互斥,多公司不传则取最近报告期" }, "repoitem_key": { "type": "array", "items": { "type": "string" }, "description": "指标 key 列表;省略=该报表全部指标" }, "format": { "type": "string", "enum": [ "long", "wide" ], "default": "long", "description": "long 一行一指标;wide 一行一(公司, 报告期)" }, "notice_date_from": { "type": "string", "description": "公告日下界(含)YYYY-MM-DD;响应 meta.notice_date_max 可作下次水位线" }, "notice_date_to": { "type": "string", "description": "公告日上界(含)YYYY-MM-DD,用于时点快照" } }, "required": [ "scode", "reponame", "repoterm" ], "additionalProperties": false }
Connections
streamable-http
https://api.onionreport.com/mcp