iwencai-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@iwencai-mcp 筛选出市盈率低于20倍且总市值超过100亿的A股"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
iwencai-mcp
问财 (Iwencai / 同花顺) MCP server —— 聚合同花顺问财 SkillHub 的 25 个官方技能为一个 MCP 服务,不含任何第三方技能。
底层只有两种 HTTP 操作,全部技能收敛其上:
POST /v1/query2data→ 22 个工具(查询 + 筛选)POST /v1/comprehensive/search→ 3 个工具(新闻 / 公告 / 研报,channel区分)
工具一览 (25)
类别 | 工具 |
查询 (12) |
|
筛选 (10) |
|
搜索 (3) |
|
数据来源: 同花顺问财 https://www.iwencai.com/unifiedwap/chat
Related MCP server: Stock SDK MCP Server
环境变量
变量 | 必填 | 说明 |
| ✅ | API Key,从同花顺问财 SkillHub 获取 |
| 否 | 默认 |
启动
stdio MCP(开发 / 本地)
npx -y tsx src/server.ts通过 npm 安装后运行
npx iwencai-mcp注册到 Claude Code(user scope)
claude mcp add iwencai \
--env IWENCAI_API_KEY=xxx \
--env IWENCAI_BASE_URL=https://openapi.iwencai.com \
-- npx -y iwencai-mcp本地开发 / 未发布改动时,可改用
npx -y tsx /path/to/iwencai-mcp/src/server.ts。
Skill (iwencai)
仓库附带一个 iwencai 技能,把 Claude Code 与上面的 MCP 串起来:它不直接调 API,而是指引调用 iwencai MCP 的 25 个工具,负责意图识别、问句改写、结果解析与来源标注。技能就是一个独立文件 skills/iwencai/SKILL.md,安装时把它软链(或复制)到 ~/.claude/skills/iwencai/:
意图 → 工具映射
用户问什么 | 工具 |
股票/ETF/指数 价格、涨跌幅、成交量、主力资金、技术指标 |
|
行业估值、财务、盈利、板块排名 |
|
个股营收、净利润、ROE、负债率、现金流 |
|
GDP、CPI、PPI、利率、汇率、社融、M2 |
|
指数行情(上证/沪深300/创业板/恒生/纳指) |
|
基金业绩、持仓、风险、评级、基金经理 |
|
期货期权行情、波动率、产销、会员持仓、行权 |
|
研报评级、业绩预测、ESG、信用评级、券商金股 |
|
业绩预告、增发、质押、解禁、调研、监管函 |
|
主营业务、主要客户/供应商、参控股公司、重大合同 |
|
股本结构、股东户数、前十大股东、实控人 |
|
全品类标的基础信息、发行主体、上市地/日期 |
|
按条件筛选 A股 / ETF / 可转债 / 基金 / 基金公司 / 基金经理 / 期货期权 / 板块 / 港股 / 美股 |
|
财经新闻 / 公司公告 / 券商研报 |
|
使用流程
识别意图 → 查上表选工具。
改写问句为标准金融问句(如
同花顺今天多少钱→同花顺最新价格)。调用工具,传
{query, page?, limit?}(查询/筛选)或{query, size?}(搜索)。解析结果:查询/筛选响应含
datas/code_count,条数多时用page翻页;搜索响应含data(title/url/summary)。空数据/错误:放宽条件重试 ≤2 次;网关错误(如额度不足)如实转述;MCP 未配置或缺 key 时引导去 https://www.iwencai.com/skillhub 获取。
回答规范:清晰展示 + 表格解析正确 + 必须注明数据来源于同花顺问财。
License
MIT
Available Tools
25 toolsquery_basicinfo_data基本资料查询(同花顺问财)A
查询全品类标的(股票、指数、基金、期货、期权、转债、债券、理财、保险等)基础信息、发行主体、机构资料、费率、上市地点/日期等静态信息。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_business_data公司经营数据查询(同花顺问财)A
查询主营业务构成、主要客户、供应商、参控股公司、股权投资、重大合同等经营数据。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_event_data事件数据查询(同花顺问财)A
查询个股业绩预告、增发、质押、解禁、调研、监管函等事件数据。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_finance_data财务数据查询(同花顺问财)A
查询全市场个股营业收入、净利润、ROE、负债率、现金流等财务指标。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_fund_data基金理财查询(同花顺问财)C
对基金做业绩、持仓、风险、评级、获奖、基金经理、基金公司综合分析。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_futures_data期货期权数据查询(同花顺问财)B
查询期货期权行情、波动率、产销、会员持仓、会员榜单、行权等数据。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_index_data指数数据查询(同花顺问财)A
查询上证指数、沪深300、创业板指、恒生指数、纳斯达克指数等指数行情(涨跌幅/成交量/点位)。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_industry_data行业数据查询(同花顺问财)A
查询行业估值、财务、盈利、行情、板块排名等数据。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_insresearch_data机构研究与评级查询(同花顺问财)C
查询研报评级、业绩预测、ESG、信用评级、主体评级、基金评级、券商金股等机构观点数据。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_macro_data宏观数据查询(同花顺问财)A
查询 GDP、CPI、PPI、利率、汇率、社融、M2 等宏观经济指标。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_management_data公司股东股本查询(同花顺问财)A
查询股本结构、股权结构、股东户数、前十大股东/流通股东、主要持有人、实控人等股权信息。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
query_market_data行情数据查询(股票/ETF/指数)(同花顺问财)B
获取股票、ETF、指数等实时行情:最新价、涨跌幅、涨跌额、成交量、换手率、主力资金流向、大小单、技术指标(MACD/KDJ/RSI/布林线)等。输入自然语言问句。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
search_announcements公告搜索(同花顺问财)A
查询 A股、港股、基金、ETF 等金融标的公告,类型含定期财务报告、分红派息、回购增持、资产重组等。返回标题、链接、摘要、公告日期。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), size.
search_news财经资讯搜索(同花顺问财)A
财经为主的资讯搜索引擎,覆盖官媒、主流财经媒体、垂直行业网站、知名上市公司/非上市公司官网。返回标题、URL、摘要、来源、发布时间。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), size.
search_reports研报搜索(同花顺问财)B
收录主流投研机构发布的研究报告,返回分析逻辑、投资评级、目标价等投研决策信息。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), size.
select_astock问财选A股(同花顺问财)A
通过自然语言查询进行 A 股筛选,支持行情指标、技术形态、财务指标、行业概念等多条件组合筛选。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_cb问财选可转债(同花顺问财)A
通过转股溢价率、正股表现、评级、剩余期限等多条件组合筛选可转债。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_etf问财选ETF(同花顺问财)B
根据行情、跟踪指数基本面、规模、风格类型等条件筛选 ETF。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_fund问财选基金(同花顺问财)B
根据基金类型、业绩、基金经理、风险、持仓、资产配置等维度筛选公募基金。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_fundcompany问财选基金公司(同花顺问财)A
根据管理规模、旗下产品业绩、投研实力、风险评级等维度筛选公募基金公司。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_fundmanager问财选基金经理(同花顺问财)A
根据历史业绩、管理规模、投资风格、风险控制等维度筛选公募基金经理。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_futures问财选期货期权(同花顺问财)C
通过行情、波动率、产销、会员持仓、会员榜单、行权等多条件组合筛选期货期权。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_hkstock问财选港股(同花顺问财)A
通过自然语言查询进行港股筛选,支持行情指标、财务指标、行业概念、陆港通等多条件组合筛选。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_sector问财选板块(同花顺问财)A
通过行业估值、资金流向、涨跌幅、板块类型等多条件组合筛选市场板块。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
select_usstock问财选美股(同花顺问财)A
通过自然语言查询进行美股筛选,支持行情指标、财务指标、行业概念、业绩预测、研报评级等多条件组合筛选。 数据来源于同花顺问财 (https://www.iwencai.com/unifiedwap/chat)
Inputs: query (required), page, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools are clearly separated by asset class or action, but there is notable overlap: query_market_data explicitly includes indices alongside query_index_data, and query_insresearch_data overlaps with search_reports around research coverage. The consistent query/select/search prefixes help, but a few boundaries remain fuzzy.
All tool names follow a clear, consistent lowercase snake_case pattern: query_*_data for data lookups, select_* for screening, and search_* for searching. The naming makes the intended action and domain immediately recognizable, with no style mixing or vague verbs.
25 tools is at the heavy end of the acceptable range for a broad financial data platform. The count is justified by the wide scope covering market data, fundamentals, screening, and search, but it still feels like a large surface for an agent to navigate.
The tool set covers an impressively broad range: market, industry, macro, fund, futures, research, event, and basic data, plus screeners and searches. Minor gaps exist, such as no dedicated bond market data tool beyond basics and convertible bonds, but core workflows for Chinese financial data querying and screening are well supported.
Maintenance
Related MCP Connectors
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
China A-share data for AI agents: 57 read-only tools plus 6 tools for your own watchlist.
China A-share market data over MCP: 22 tools for quotes, K-line, financials, money flow, top-trader boards, sectors, macro, convertible bonds and factor screening. Five tools need no API key, so you can connect and try it immediately.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to fetch real-time quotes, K-line data, and technical indicators for A-share, Hong Kong, US stocks, funds, futures, and options, plus composite stock analysis, market scanning, and sector breakdowns. It also ships preset prompts and skills for technical analysis, stock screening, market overviews, and portfolio monitoring.153 npmISC
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query real-time and historical market data for A-shares, Hong Kong and US stocks, funds, futures, and options, including K-lines, technical indicators, sector data, and capital flows. It also supports composite workflows such as full-stock analysis, multi-stock comparison, conditional screening, and market overviews through tools, prompts, resources, and prebuilt skills.153 npmISC
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query real-time quotes, K-line data, technical indicators, sector and fund flows, plus composite analysis across A-share, Hong Kong, US, fund, futures, and options markets. It also bundles ready-made prompts and skills for stock analysis, screening, market overviews, and portfolio monitoring.153 npmISC
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query real-time and historical market data across A-share, Hong Kong, US, and fund markets, including quotes, K-line data, technical indicators, sector and futures/options data. It also supports batch market scans, composite stock analysis, condition-based screening, and built-in analyst prompts and skills for financial workflows.153 npmISC