← Back to Skills Marketplace
Ifind Mcp
by
XingjianLiu0417
· GitHub ↗
· v1.3.0
· MIT-0
466
Downloads
1
Stars
1
Active Installs
4
Versions
Install in OpenClaw
/install ifind-mcp
Description
同花顺iFinD金融数据MCP工具。用于查询A股股票、公募基金、宏观经济和新闻资讯数据。当用户需要查询股票、基金、宏观经济指标或新闻资讯时使用。
README (SKILL.md)
iFind MCP Skill
同花顺 iFinD MCP 服务,提供专业金融数据查询。
首次使用指引
1. 安装 mcporter
# 安装 Node.js (如果没有)
# macOS: brew install node
# Linux: sudo apt install nodejs
# 安装 mcporter
npm install -g mcporter
2. 配置密钥
将密钥配置到 ~/.openclaw/mcporter.json(推荐,跨平台兼容):
mkdir -p ~/.openclaw
cat > ~/.openclaw/mcporter.json \x3C\x3C 'EOF'
{
"mcpServers": {
"hexin-ifind-stock": {
"url": "https://api-mcp.51ifind.com:8643/ds-mcp-servers/hexin-ifind-ds-stock-mcp",
"headers": {
"Authorization": "Bearer \x3C你的密钥>"
}
},
"hexin-ifind-fund": {
"url": "https://api-mcp.51ifind.com:8643/ds-mcp-servers/hexin-ifind-ds-fund-mcp",
"headers": {
"Authorization": "Bearer \x3C你的密钥>"
}
},
"hexin-ifind-edb": {
"url": "https://api-mcp.51ifind.com:8643/ds-mcp-servers/hexin-ifind-ds-edb-mcp",
"headers": {
"Authorization": "Bearer \x3C你的密钥>"
}
},
"hexin-ifind-news": {
"url": "https://api-mcp.51ifind.com:8643/ds-mcp-servers/hexin-ifind-ds-news-mcp",
"headers": {
"Authorization": "Bearer \x3C你的密钥>"
}
}
}
}
密钥获取:在 iFinD 终端下载 MCP 配置文件(tonghuashun_token.rtf),提取 JSON 中的 Authorization 字段值。
3. 验证配置
mcporter --config ~/.openclaw/mcporter.json list
# 应显示 4 个健康的服务器
调用方式
# 使用配置文件的路径
mcporter --config ~/.openclaw/mcporter.json call \x3Cserver>.\x3Ctool>
便捷脚本
# 修改脚本中的配置路径
sed -i 's|~/.config|~/.openclaw|' scripts/query.sh
./scripts/query.sh stock "贵州茅台"
MCP 服务器
| 服务器 | 用途 |
|---|---|
| hexin-ifind-stock | A股股票数据 |
| hexin-ifind-fund | 公募基金数据 |
| hexin-ifind-edb | 宏观经济数据 |
| hexin-ifind-news | 公告资讯 |
股票工具 (hexin-ifind-stock)
| 工具 | 说明 |
|---|---|
| get_stock_summary | 股票信息摘要 |
| search_stocks | 智能选股 |
| get_stock_perfomance | 历史行情与技术指标 |
| get_stock_info | 基本资料查询 |
| get_stock_shareholders | 股本结构与股东数据 |
| get_stock_financials | 财务数据与指标 |
| get_risk_indicators | 风险指标 |
| get_stock_events | 公开披露事件 |
| get_esg_data | ESG评级 |
使用示例
# 查询股票概况
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-stock.get_stock_summary query:"贵州茅台"
# 智能选股
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-stock.search_stocks query:"新能源汽车行业市值大于1000亿"
# 历史行情
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-stock.get_stock_perfomance query:"宁德时代最近5日涨跌幅"
# 财务数据
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-stock.get_stock_financials query:"比亚迪2025年ROE"
基金工具 (hexin-ifind-fund)
| 工具 | 说明 |
|---|---|
| search_funds | 模糊基金名称匹配 |
| get_fund_profile | 基金基本资料 |
| get_fund_market_performance | 行情与业绩 |
| get_fund_ownership | 份额与持有人结构 |
| get_fund_portfolio | 投资标的与资产配置 |
| get_fund_financials | 基金财务指标 |
| get_fund_company_info | 基金公司信息 |
使用示例
# 查询基金
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-fund.search_funds query:"易方达科技ETF"
# 基金业绩
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-fund.get_fund_market_performance query:"富国天惠近一年收益率"
# 持仓明细
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-fund.get_fund_portfolio query:"中欧医疗健康混合A2025Q2持仓"
宏观/新闻工具
使用示例
# 宏观经济
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-edb.get_macro_data query:"中国GDP增速"
# 新闻资讯
mcporter --config ~/.openclaw/mcporter.json call hexin-ifind-news.get_company_news query:"华为最新公告"
API 文档
详细 API 说明见 references/API.md
Usage Guidance
This skill appears to do what it says: call iFinD MCP services via the mcporter client. Before installing or using it: 1) verify the authenticity of the mcporter npm package (publisher, repository, download counts, and source code) because the SKILL.md tells you to install it globally; 2) keep the ~/.openclaw/mcporter.json file private (it contains bearer tokens) and do not paste it in public places; 3) note the helper script expects mcporter at ~/.npm-global/bin/mcporter which may differ from your npm global bin—adjust PATH or the script accordingly; and 4) be aware the script suppresses errors (stderr) so if calls fail you may need to run mcporter manually to see diagnostics.
Capability Analysis
Type: OpenClaw Skill
Name: ifind-mcp
Version: 1.3.0
The skill bundle provides a legitimate integration for the Tonghuashun iFinD financial data service using the Model Context Protocol (MCP). It includes instructions for configuring API keys in a local config file and a helper script (scripts/query.sh) to query stock, fund, and economic data via the 'mcporter' utility. All network endpoints (e.g., api-mcp.51ifind.com) are consistent with the official service provider, and no malicious behaviors such as data exfiltration or unauthorized execution were found.
Capability Assessment
Purpose & Capability
Name/description match the included materials: SKILL.md, API reference, and a helper script all describe calling iFinD MCP endpoints (stock, fund, edb, news). The required credential (Bearer token) is only described as a value to put into a local JSON config; no unrelated credentials or system access are requested.
Instruction Scope
Runtime instructions are limited to installing the mcporter client, placing an Authorization Bearer token in ~/.openclaw/mcporter.json, and invoking mcporter to call iFinD MCP endpoints. The provided script reads only the config file and calls mcporter; it does not read or transmit other system files. Minor note: the script suppresses stderr (2>/dev/null) which hides mcporter errors and may make troubleshooting harder but is not evidence of exfiltration.
Install Mechanism
This is an instruction-only skill (no packaged installer), which is low surface risk. However, it instructs the user to run `npm install -g mcporter` — installing a global npm package from the public registry carries typical supply-chain risk and requires trusting the mcporter package/maintainer. The skill does not vendor or pin a trusted source (no GitHub release link), so users should verify the mcporter package before installing.
Credentials
No environment variables or unrelated credentials are requested. The only secret the workflow needs is an iFinD MCP Authorization token, which the SKILL.md instructs the user to store in a local JSON config (~/.openclaw/mcporter.json). This is proportionate to querying a paid/secured API. Users should treat that file as sensitive.
Persistence & Privilege
The skill does not request permanent 'always' inclusion and does not modify other skills or system-wide settings. It only reads a config file in the user's home directory and invokes the mcporter binary; it does not install background services or persist additional credentials.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ifind-mcp - After installation, invoke the skill by name or use
/ifind-mcp - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.3.0
- Added practical usage examples for key stock, fund, macroeconomic, and news query tools.
- Improved documentation structure by including "使用示例" sections for each main toolset.
- No changes to functional code; SKILL.md documentation only.
v1.2.0
**Major configuration changes and improved usage guidance**
- Added step-by-step instructions for first-time setup, including how to install `mcporter` and configure authentication keys.
- Changed the default configuration file path from `~/.config/mcporter.json` to `~/.openclaw/mcporter.json` for better cross-platform compatibility.
- Updated guidance and examples to explicitly use the new config path with the `--config` option.
- Provided clear hints on extracting API keys and validating server connections.
- Updated the command-line script documentation and recommended modifying scripts to match the new config location.
- No core tool/server/API changes; documentation and usage improvements only.
v1.1.0
Version 1.1.0
- Added detailed API documentation at references/API.md.
- Introduced convenient query script (scripts/query.sh) for streamlined command line queries.
- Improved SKILL.md with more concise descriptions, usage examples, and information about the new script/API doc.
- Removed obsolete _meta.json file.
v1.0.0
Initial release of ifind-mcp:
- Provides iFinD MCP financial data tools for A-shares, public funds, macroeconomics, and news.
- Includes stock, fund, macro, and news query tools with natural language support.
- Details for each tool and usage examples are provided.
- Configuration guidance and server health check instructions included.
Metadata
Frequently Asked Questions
What is Ifind Mcp?
同花顺iFinD金融数据MCP工具。用于查询A股股票、公募基金、宏观经济和新闻资讯数据。当用户需要查询股票、基金、宏观经济指标或新闻资讯时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 466 downloads so far.
How do I install Ifind Mcp?
Run "/install ifind-mcp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Ifind Mcp free?
Yes, Ifind Mcp is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ifind Mcp support?
Ifind Mcp is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ifind Mcp?
It is built and maintained by XingjianLiu0417 (@xingjianliu0417); the current version is v1.3.0.
More Skills