洋葱财报OnionData-MCP is an MCP server published by com.onionreport, hosted at api.onionreport.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 6 tools, including search_companies, list_report_periods, list_indicators, company_records, get_dimensions.
洋葱财报OnionData-MCP 提供 A 股上市公司多口径财报数据,覆盖利润表、资产负债表、现金流量表,支持单季同比/环比、逐季度 TTM、年度与最新报告期近 10 期查询。
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
搜索 A 股上市公司(China A-share company search):按 6 位证券代码(ticker)、公司简称或拼音首字母匹配,返回最多 10 条 {scode, sname},供后续取数确定证券代码。truncated=true 表示结果已截断,请细化关键词。本工具不计积分。需要 API Token。
| Parameter | Type | Description |
|---|---|---|
| query * | string | 证券代码、简称或拼音首字母 |
{
"name": "search_companies",
"title": "搜索公司",
"description": "搜索 A 股上市公司(China A-share company search):按 6 位证券代码(ticker)、公司简称或拼音首字母匹配,返回最多 10 条 {scode, sname},供后续取数确定证券代码。truncated=true 表示结果已截断,请细化关键词。本工具不计积分。需要 API Token。",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "证券代码、简称或拼音首字母"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"query",
"results",
"truncated"
],
"properties": {
"note": {
"type": "string"
},
"query": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"scode",
"sname"
],
"properties": {
"scode": {
"type": "string"
},
"sname": {
"type": "string"
}
}
}
},
"truncated": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}None yet. Changes appear after a server's second daily check.
查询 A 股股票可用报告期(A-share report periods):先确认时间范围再取数。repoterm 决定口径——new 最新报告期(latest,默认)、quarter_t 单季度同比(single-quarter YoY)、quarter_h 单季度环比(single-quarter QoQ)、ttm 逐季度滚动四季合计(TTM)、year 年度(annual)。本工具不计积分。需要 API Token。
| Parameter | Type | Description |
|---|---|---|
| scode * | string | A 股 6 位证券代码 |
| repoterm | string | 报告期口径:new 最新报告期(latest,默认)、quarter_t 单季度同比(YoY)、quarter_h 单季度环比(QoQ)、ttm 逐季度 TTM、year 年度(annual) |
{
"name": "list_report_periods",
"title": "查询报告期",
"description": "查询 A 股股票可用报告期(A-share report periods):先确认时间范围再取数。repoterm 决定口径——new 最新报告期(latest,默认)、quarter_t 单季度同比(single-quarter YoY)、quarter_h 单季度环比(single-quarter QoQ)、ttm 逐季度滚动四季合计(TTM)、year 年度(annual)。本工具不计积分。需要 API Token。",
"inputSchema": {
"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 最新报告期(latest,默认)、quarter_t 单季度同比(YoY)、quarter_h 单季度环比(QoQ)、ttm 逐季度 TTM、year 年度(annual)"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"scode",
"repoterm",
"periods"
],
"properties": {
"scode": {
"type": "string"
},
"periods": {
"type": "array",
"items": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
}
}
}
},
"repoterm": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}获取财务指标字典(China A-share financial indicators dictionary):指标 key 到中文名与单位的映射,全市场统一口径,与公司无关。取数前用它确认 repoitem_key 与金额单位(元)。本工具不计积分。需要 API Token。
No parameters.
{
"name": "list_indicators",
"title": "查询指标字典",
"description": "获取财务指标字典(China A-share financial indicators dictionary):指标 key 到中文名与单位的映射,全市场统一口径,与公司无关。取数前用它确认 repoitem_key 与金额单位(元)。本工具不计积分。需要 API Token。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"indicators",
"units"
],
"properties": {
"note": {
"type": "string"
},
"units": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"indicators": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}读取 A 股上市公司财报明细(China A-share financial statements):唯一取数入口,覆盖利润表 income、资产负债表 balance、现金流量表 cashflow、业绩预告 predict。 支持单季度同比、单季度环比、逐季度 TTM、年度与最新报告期五种口径,由 repoterm 指定(各取值与释义见 inputSchema)。 scode 传 1 个为单公司多期(periods 1–10,默认 1);传 2–10 个为多公司单期横切,省略 report_date 时取所选公司该口径的最近报告期。多公司不支持 periods,periods 与 report_date 互斥(同时传返回 dimension_conflict);业绩预告 predict 仅支持 format=long。 结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔),超出返回 result_too_large,不截断。 数值为原始值(元),增幅以百分点表示(12.3 即 12.3%)。notice_date_to 为时点快照(重述会移动公告日),notice_date_from 为增量(含重述)。 按实际返回数据量加权计积分,空结果不计;单公司与多公司横切均不要求 VIP。
| Parameter | Type | Description |
|---|---|---|
| scode * | array | A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组 |
| format | string | long 一行一指标;wide 一行一(公司, 报告期) |
| periods | integer | 报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict) |
| reponame * | string | 报表名:income 利润表(income statement)/ balance 资产负债表(balance sheet)/ cashflow 现金流量表(cash flow statement)/ predict 业绩预告;多张报表用逗号分隔(最多 4 个),如 income,balance |
| repoterm * | string | 单一口径:new 最新报告期 latest / quarter_t 单季度同比 YoY / quarter_h 单季度环比 QoQ / ttm 逐季度 TTM / year 年度 annual |
| 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 可作下次水位线 |
{
"name": "company_records",
"title": "财务取数(单公司多期 / 多公司单期)",
"description": "读取 A 股上市公司财报明细(China A-share financial statements):唯一取数入口,覆盖利润表 income、资产负债表 balance、现金流量表 cashflow、业绩预告 predict。\n\n支持单季度同比、单季度环比、逐季度 TTM、年度与最新报告期五种口径,由 repoterm 指定(各取值与释义见 inputSchema)。\n\nscode 传 1 个为单公司多期(periods 1–10,默认 1);传 2–10 个为多公司单期横切,省略 report_date 时取所选公司该口径的最近报告期。多公司不支持 periods,periods 与 report_date 互斥(同时传返回 dimension_conflict);业绩预告 predict 仅支持 format=long。\n\n结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔),超出返回 result_too_large,不截断。\n\n数值为原始值(元),增幅以百分点表示(12.3 即 12.3%)。notice_date_to 为时点快照(重述会移动公告日),notice_date_from 为增量(含重述)。\n\n按实际返回数据量加权计积分,空结果不计;单公司与多公司横切均不要求 VIP。",
"inputSchema": {
"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 利润表(income statement)/ balance 资产负债表(balance sheet)/ cashflow 现金流量表(cash flow statement)/ predict 业绩预告;多张报表用逗号分隔(最多 4 个),如 income,balance"
},
"repoterm": {
"enum": [
"new",
"quarter_h",
"quarter_t",
"ttm",
"year"
],
"type": "string",
"description": "单一口径:new 最新报告期 latest / quarter_t 单季度同比 YoY / quarter_h 单季度环比 QoQ / ttm 逐季度 TTM / year 年度 annual"
},
"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
},
"outputSchema": {
"type": "object",
"required": [
"object",
"format",
"data",
"page",
"meta",
"quota"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"meta": {
"type": "object",
"additionalProperties": true
},
"page": {
"type": "object",
"required": [
"companies",
"periods",
"returned",
"has_more",
"truncated"
],
"properties": {
"periods": {
"type": "integer"
},
"has_more": {
"type": "boolean"
},
"returned": {
"type": "integer"
},
"companies": {
"type": "integer"
},
"truncated": {
"type": "boolean"
},
"next_cursor": {
"type": [
"string",
"null"
]
}
}
},
"quota": {
"type": "object",
"additionalProperties": true
},
"format": {
"type": "string"
},
"object": {
"type": "string"
},
"dataset": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}获取报表与指标目录(financial statement catalog):可用报表 income 利润表、balance 资产负债表、cashflow 现金流量表、predict 业绩预告,以及各指标中文名、单位、是否比率与 repotype(basic 基础指标 / operation 运营指标)。是调用 company_records 前的机器可读字典。本工具不计积分。需要 API Token。
| Parameter | Type | Description |
|---|---|---|
| reponame | string | 只返回指定报表下的指标 |
| repotype | string | basic / operation |
{
"name": "get_dimensions",
"title": "查询维度与指标字典",
"description": "获取报表与指标目录(financial statement catalog):可用报表 income 利润表、balance 资产负债表、cashflow 现金流量表、predict 业绩预告,以及各指标中文名、单位、是否比率与 repotype(basic 基础指标 / operation 运营指标)。是调用 company_records 前的机器可读字典。本工具不计积分。需要 API Token。",
"inputSchema": {
"type": "object",
"properties": {
"reponame": {
"enum": [
"income",
"balance",
"cashflow",
"predict"
],
"type": "string",
"description": "只返回指定报表下的指标"
},
"repotype": {
"enum": [
"basic",
"operation"
],
"type": "string",
"description": "basic / operation"
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"reports",
"repoterms",
"metrics"
],
"properties": {
"metrics": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"reports": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"repoterms": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}查询本账号额度(quota / usage):当前档位 free / VIP / SVIP、日调用护栏与积分余额的上限、已用、剩余与重置时间,以及最近到期的积分包。本工具不计积分,积分耗尽后仍可用;仍受账号维度的每分钟限流约束。
No parameters.
{
"name": "get_usage",
"title": "查询额度",
"description": "查询本账号额度(quota / usage):当前档位 free / VIP / SVIP、日调用护栏与积分余额的上限、已用、剩余与重置时间,以及最近到期的积分包。本工具不计积分,积分耗尽后仍可用;仍受账号维度的每分钟限流约束。",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"required": [
"tier",
"date",
"daily_call_limit",
"daily_call_used",
"daily_call_remaining",
"credits_total",
"credits_free",
"credits_paid"
],
"properties": {
"date": {
"type": "string"
},
"tier": {
"type": "string"
},
"credit_packs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"credits_free": {
"type": "integer"
},
"credits_paid": {
"type": "integer"
},
"token_prefix": {
"type": [
"string",
"null"
]
},
"credits_total": {
"type": "integer"
},
"subscribe_hint": {
"type": "string"
},
"daily_call_used": {
"type": "integer"
},
"daily_call_limit": {
"type": "integer"
},
"daily_call_reset_at": {
"type": "integer"
},
"daily_call_remaining": {
"type": "integer"
},
"max_credits_per_call": {
"type": "integer"
},
"credits_nearest_expiry_at": {
"type": [
"string",
"null"
]
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}洋葱财报OnionData-Financial-MCP 服务,提供 A 股财报数据与指标查询。除发现类方法外,所有工具调用都需要 API Token(Authorization: Bearer oda_...)。所有已开通用户每自然月获赠 1000 积分;会员另按 30 天周期获得积分包(VIP 2000、SVIP 8000),最近到期优先扣减。1 积分的基准是 1 家公司 × 1 个指标 × 1 个报告期 × 1 个口径下的一个取值,按数据类型价值权重计量(权重可能调整,以实际扣减为准);非空结果单次最低 10 积分;空结果不计,单次上限免费档 100、会员 200。搜索、报告期、指标字典、维度字典与额度自查不计积分;company_records 计积分。数据支持多口径:quarter_h 单季度环比、quarter_t 单季度同比、ttm 逐季度 TTM、year 年度、new 最新报告期;增幅列随口径裁剪(ttm/quarter_h 只有环比、new/year/quarter_t 只有同比)。company_records 统一入口:scode 传 1 个为单公司多期(periods 1–10),传 2–10 个为多公司单期横切(不支持 periods,可传 report_date);多公司也不需要 VIP。每张报表最多 250 行(wide 每张 10 行),最多 4 张报表;超出返回 result_too_large,不截断。金额单位为元,具体见返回体 units/field_units。
Names, descriptions and schemas were written by the server and are shown as data.