洋葱财报OnionData-MCP 提供 A 股上市公司多口径财报数据,覆盖利润表、资产负债表、现金流量表,支持单季同比/环比、逐季度 TTM、年度与最新报告期近 10 期查询。
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Bearer 加 oda_ 开头的 API 令牌;在小程序「程序化服务 → 用量管理」开通服务后于「访问令牌」页创建,仅展示一次;留空则由客户端走 OAuth 授权
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
唯一取数入口:scode 传 1 个 → 单公司多期(periods 1–10,默认 1);传 2–10 个 → 多公司单期横切(省略 report_date 时取所选公司该口径的最近报告期)。多公司不支持 periods,periods 与 report_date 互斥(dimension_conflict)。repotype=basic/operation 可按指标配置把该报表细分为基础指标 / 运营指标,省略返回该报表全部指标。format=long 一行一指标;format=wide 一行一(公司, 报告期, 报表)的指标对象。结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔);超出返回 result_too_large,不截断。notice_date_to 按当前公告日过滤(重述会移动公告日),notice_date_from 做增量(含重述)。单公司与多公司横切均不要求 VIP;按实际返回与数据价值权重计积分。业绩预告(predict)仅支持 format=long。
A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组
报表名:income/balance/cashflow/predict;多张报表用逗号分隔(最多 4 个),如 income,balance
单一口径:new/quarter_h/quarter_t/ttm/year
long 一行一指标;wide 一行一(公司, 报告期)
报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict)
指标类别:basic 基础指标 / operation 运营指标;省略=该报表全部指标
报告期 YYYY-MM-DD;与 periods 互斥,多公司不传则取最近报告期
指标 key 列表;省略=该报表全部指标
公告日上界(含)YYYY-MM-DD,用于时点快照
公告日下界(含)YYYY-MM-DD;响应 meta.notice_date_max 可作下次水位线
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http oniondata-mcp https://api.onionreport.com/mcp
Headers
Authorization (optional, not in the config above): Bearer 加 oda_ 开头的 API 令牌;在小程序「程序化服务 → 用量管理」开通服务后于「访问令牌」页创建,仅展示一次;留空则由客户端走 OAuth 授权唯一取数入口:scode 传 1 个 → 单公司多期(periods 1–10,默认 1);传 2–10 个 → 多公司单期横切(省略 report_date 时取所选公司该口径的最近报告期)。多公司不支持 periods,periods 与 report_date 互斥(dimension_conflict)。repotype=basic/operation 可按指标配置把该报表细分为基础指标 / 运营指标,省略返回该报表全部指标。format=long 一行一指标;format=wide 一行一(公司, 报告期, 报表)的指标对象。结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔);超出返回 result_too_large,不截断。notice_date_to 按当前公告日过滤(重述会移动公告日),notice_date_from 做增量(含重述)。单公司与多公司横切均不要求 VIP;按实际返回与数据价值权重计积分。业绩预告(predict)仅支持 format=long。
| Argument | Type | Description |
|---|---|---|
| scode* | array | A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组 |
| format | string | long 一行一指标;wide 一行一(公司, 报告期) |
| periods | integer | 报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict) |
| reponame* | string | 报表名:income/balance/cashflow/predict;多张报表用逗号分隔(最多 4 个),如 income,balance |
| repoterm* | string | 单一口径:new/quarter_h/quarter_t/ttm/year |
| repotype | string | 指标类别:basic 基础指标 / operation 运营指标;省略=该报表全部指标 |
| report_date | string | 报告期 YYYY-MM-DD;与 periods 互斥,多公司不传则取最近报告期 |
| repoitem_key | array | 指标 key 列表;省略=该报表全部指标 |
| notice_date_to | string | 公告日上界(含)YYYY-MM-DD,用于时点快照 |
| notice_date_from | string | 公告日下界(含)YYYY-MM-DD;响应 meta.notice_date_max 可作下次水位线 |
{
"type": "object",
"required": [
"scode",
"reponame",
"repoterm"
],
"properties": {
"scode": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{6}$"
},
"maxItems": 10,
"minItems": 1,
"description": "A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组"
},
"format": {
"enum": [
"long",
"wide"
],
"type": "string",
"default": "long",
"description": "long 一行一指标;wide 一行一(公司, 报告期)"
},
"periods": {
"type": "integer",
"maximum": 10,
"minimum": 1,
"description": "报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict)"
},
"reponame": {
"type": "string",
"description": "报表名:income/balance/cashflow/predict;多张报表用逗号分隔(最多 4 个),如 income,balance"
},
"repoterm": {
"enum": [
"new",
"quarter_h",
"quarter_t",
"ttm",
"year"
],
"type": "string",
"description": "单一口径:new/quarter_h/quarter_t/ttm/year"
},
"repotype": {
"enum": [
"basic",
"operation"
],
"type": "string",
"description": "指标类别:basic 基础指标 / operation 运营指标;省略=该报表全部指标"
},
"report_date": {
"type": "string",
"description": "报告期 YYYY-MM-DD;与 periods 互斥,多公司不传则取最近报告期"
},
"repoitem_key": {
"type": "array",
"items": {
"type": "string"
},
"description": "指标 key 列表;省略=该报表全部指标"
},
"notice_date_to": {
"type": "string",
"description": "公告日上界(含)YYYY-MM-DD,用于时点快照"
},
"notice_date_from": {
"type": "string",
"description": "公告日下界(含)YYYY-MM-DD;响应 meta.notice_date_max 可作下次水位线"
}
},
"additionalProperties": false
}返回可用报表(reponame)、报告期口径(repoterm)与指标目录(含中文名、单位、是否比率),是调用 company_records 前的机器可读字典。本工具不计月度调用次数。需要 API Token。
| Argument | Type | Description |
|---|---|---|
| reponame | string | 只返回指定报表下的指标 |
| repotype | string | basic / operation |
{
"type": "object",
"properties": {
"reponame": {
"enum": [
"income",
"balance",
"cashflow",
"predict"
],
"type": "string",
"description": "只返回指定报表下的指标"
},
"repotype": {
"enum": [
"basic",
"operation"
],
"type": "string",
"description": "basic / operation"
}
},
"additionalProperties": false
}查询当前账号的档位与全部额度:日调用护栏与积分余额,含上限与重置时间。本工具不计调用次数。
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}返回指标 key 到中文名与单位的映射,字典为全市场统一口径。本工具不计月度调用次数。需要 API Token。
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}返回指定公司可用的报告期列表。本工具不计月度调用次数。需要 API Token。
| Argument | Type | Description |
|---|---|---|
| scode* | string | A 股 6 位证券代码 |
| repoterm | string | 报告期口径:new 最新报告期(默认)、quarter_h 单季度环比、quarter_t 单季度同比、ttm 逐季度 TTM、year 年度 |
{
"type": "object",
"required": [
"scode"
],
"properties": {
"scode": {
"type": "string",
"pattern": "^\\d{6}$",
"description": "A 股 6 位证券代码"
},
"repoterm": {
"enum": [
"new",
"quarter_h",
"quarter_t",
"ttm",
"year"
],
"type": "string",
"default": "new",
"description": "报告期口径:new 最新报告期(默认)、quarter_h 单季度环比、quarter_t 单季度同比、ttm 逐季度 TTM、year 年度"
}
},
"additionalProperties": false
}按证券代码、简称或拼音首字母搜索 A 股公司,返回最多 10 条 {scode, sname}。结果可能被截断,truncated=true 时请细化关键词。本工具不计月度调用次数。需要 API Token。
| Argument | Type | Description |
|---|---|---|
| query* | string | 证券代码、简称或拼音首字母 |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "证券代码、简称或拼音首字母"
}
},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 17, 2026.