Yiyan
FreeNot checkedThis service provides an MCP server for comprehensive A-share financial data, covering 18 standardized tool interfaces including real-time and historical market data, financial statements, technical indicators, fund valuations, trading calendars, and announcement queries. With authoritative and stable data, it suits developers for financial data analysis, quantitative investment research, and intelligent stock selection strategy development. Core capabilities include: real-time/historical/high-frequency market data, 300+ financial derivative indicators, 75 technical analysis indicators, and intelligent natural language stock selection.
About
This service provides an MCP server for comprehensive A-share financial data, covering 18 standardized tool interfaces including real-time and historical market data, financial statements, technical indicators, fund valuations, trading calendars, and announcement queries. With authoritative and stable data, it is suitable for developers conducting financial data analysis, quantitative investment research, and intelligent stock selection strategy development. Core capabilities include: real-time/historical/high-frequency market data, 300+ financial derivative indicators, 75 technical analysis indicators, and intelligent natural language stock selection.
README
一、服务基本信息
| 项目 | 说明 |
|---|---|
| 服务名称 | 一言选股 MCP 服务 |
| 核心定位 | 基于 FastMCP 框架开发的标准化股票信息查询服务,提供金融数据接口与智能分析能力 |
| 服务提供方 | 上海万行道和人工智能科技有限公司 |
| 股票数据 | 股票市场数据存储在云端,通过mcp插件从云端获取股票市场数据 |
| 服务官方地址 | 万行一言开放平台 ,申请key后使用本MCP服务 |
| 核心价值 | 帮助开发者快速集成股票代码查询、行情查询、金融数据分析功能至自有应用 |
二、服务概览
一言选股 MCP是万行一言开放平台推出的金融引擎服务,服务聚焦金融领域股票数据需求,通过封装标准化工具函数,为开发者提供低门槛、高可靠的股票信息接口。无需关注底层数据采集与处理逻辑,仅需调用对应工具函数(接口均基于 万行一言开放平台 域名提供),即可获取股票名称-代码映射、实时行情、历史行情等核心数据,适用于股票类 APP、金融分析工具、智能投顾辅助系统等场景。
本服务提供A股全链路金融数据服务,涵盖实时与历史行情、财务三表、技术指标、基金估值、交易日历、公告查询等 18 项标准化工具接口。数据权威稳定,适合开发者进行金融数据分析、量化投资研究、智能选股策略开发等场景。核心能力包括:实时/历史/高频行情、300+ 项财务衍生指标、75 项技术分析指标、智能自然语言选股等。
MCP 服务器配置
| 配置项 | 值 |
|---|---|
| 服务器名称 | yiyanxuangu |
| URL | https://mcp.wanxingai.com/sse |
| 请求头 (Headers) | |
Authorization |
Bearer sk-****************** |
Content-Type |
application/json |
🛠️ Quick Start
{
"mcpServers": {
"yiyanxuangu": {
"headers": {
"Authorization": "Bearer sk-******************",
"Content-Type": "application/json"
},
"url": "https://mcp.wanxingai.com/sse"
}
}
}
三、核心工具函数
3.1 工具函数概览
| 工具函数名 | 功能描述 |
|---|---|
get_stock_code |
根据股票名称查询对应股票代码,返回名称校正结果与标准代码 |
search_securities_code |
通过行情代码或证券简称查询同花顺标准代码,支持多条件筛选 |
get_stock_real_time_quotation |
根据股票代码查询实时行情数据,支持指定需返回的行情指标(如最新价、涨跌幅) |
get_stock_history_quotation |
根据股票代码与时间区间查询历史行情数据,支持自定义行情指标 |
get_high_frequency_quotes |
获取高频行情数据 |
get_intraday_snapshot |
获取日内快照数据 |
get_date_sequence |
日期序列查询 |
get_fund_realtime_valuation |
基金实时估值 |
get_fund_daily_valuation |
基金日度估值 |
query_trading_dates |
交易日查询 |
offset_trading_date |
交易日偏移 |
get_stock_basic_info |
股票基本信息 |
get_listed_company_info |
上市公司信息 |
get_stock_equity_shareholder |
股权股东信息 |
get_stock_financial_data |
财务数据查询 |
smart_stock_picking |
智能选股 |
query_announcement |
公告查询 |
get_stock_daily_quotes_tech |
日行情与技术指标 |
3.2 工具函数详情
3.2.1 get_stock_code(股票名称转代码)
功能:输入股票名称,返回校正后的标准名称与对应股票代码(支持名称自动纠错)。
| 参数名 | 类型 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
stock_name |
string | ✅ | 待查询的股票名称(支持模糊输入) | "花大基因" |
返回示例:
{
"name": "花大基因",
"corrected_name": "华大基因",
"stock_code": "300676.SZ"
}
3.2.2 search_securities_code(证券代码搜索)
功能:通过行情代码或证券简称查询同花顺标准代码,支持多条件筛选。
| 参数名 | 类型 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
query |
string | ✅ | 查询内容:行情代码或证券简称 | "000001" 或 "平安银行" |
mode |
string | ❌ | seccode-按代码查(默认),secname-按名称查 | "seccode" |
sectype |
string | ❌ | 001-股票,002-基金,003-债券等 | "001" |
market |
string | ❌ | 212001-上交所,212100-深交所,212200-港交所 | "212100" |
tradestatus |
string | ❌ | 0-全部(默认),1-正常交易,2-已停牌 | "1" |
isexact |
string | ❌ | 0-模糊匹配(默认),1-精确匹配 | "0" |
返回示例:
[
{
"thscode": "000001.SZ",
"secname": "平安银行",
"market": "212100"
}
]
3.2.3 get_stock_real_time_quotation(实时行情查询)
功能:根据股票代码,查询指定维度的实时行情数据(数据单位:价格为"元",成交量为"手")。
| 参数名 | 类型 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
stock_code |
string | ✅ | 标准股票代码(需包含市场后缀,如 SZ/SH) | "300676.SZ" |
indicators |
string | ✅ | 需查询的行情指标(多指标用英文逗号分隔,支持选项见下方) | "latest,changeRatio,volume" |
支持的行情指标:
preClose:前收盘价open:开盘价high:最高价low:最低价latest:最新价(当日实时价,非收盘后则为当前价)amount:成交额(单位:元)volume:成交量(单位:手)changeRatio:涨跌幅(单位:%)turnoverRatio:换手率(单位:%)
返回示例:
{
"marketCategory": "SH",
"thscode": "600519.SH",
"table": {
"preClose": 1800.00,
"open": 1810.00,
"high": 1825.00,
"low": 1805.00,
"latest": 1820.00,
"amount": 1500000000,
"volume": 825000,
"changeRatio": 1.11,
"turnoverRatio": 0.65
}
}
3.2.4 get_stock_history_quotation(历史行情查询)
功能:根据股票代码与时间区间,查询指定维度的历史行情数据(数据单位同实时行情)。
| 参数名 | 类型 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
stock_code |
string | ✅ | 标准股票代码(需包含市场后缀,如 SZ/SH) | "300676.SZ" |
indicators |
string | ✅ | 需查询的行情指标(多指标用英文逗号分隔,支持选项同实时行情) | "open,high,low,latest,volume" |
startdate |
string | ✅ | 开始日期(格式:YYYY-MM-DD,需早于 enddate) | "2024-01-01" |
enddate |
string | ✅ | 结束日期(格式:YYYY-MM-DD,需晚于 startdate) | "2024-01-31" |
返回示例:
{
"thscode": "600519.SH",
"time": ["2024-01-02", "2024-01-03", "2024-01-04"],
"table": {
"open": [1810.00, 1820.00, 1830.00],
"high": [1825.00, 1835.00, 1845.00],
"low": [1805.00, 1815.00, 1825.00],
"latest": [1820.00, 1830.00, 1840.00],
"volume": [825000, 835000, 845000]
}
}
四、计费说明
- 本 MCP 服务为第三方付费服务,具体计费标准(如按调用次数、流量等)可访问服务官方地址 万行一言开放平台 查询,或联系服务提供方获取定制化报价。
- 新用户可咨询提供方是否有试用额度或优惠活动,避免超额产生额外费用。
五、外部调用配置示例
5.1 客户端配置(以支持 FastMCP 协议的客户端为例)
需在万行一言开放平台注册开发者账号,获取 API Key。
5.2 调用注意事项
- 调用凭证(如 API Key、Token)需联系上海万行道和人工智能科技有限公司申请,确保权限有效;
- 所有工具函数均需通过 POST 方法调用,请求体参数需严格匹配字段类型(如
stock_code必须为字符串,不可传整数); - 若调用失败,可先检查请求 URL 是否为 万行一言开放平台 对应的工具路径,或通过服务官方地址反馈问题。
六、联系与支持
- 服务提供方:上海万行道和人工智能科技有限公司
- 官方服务入口:万行一言开放平台(可在此获取技术文档、计费详情)
- 支持场景:技术集成问题、接口异常排查、计费咨询、凭证申请
- 建议优先通过服务官方地址的"联系我们"模块获取支持,确保问题高效解决。
七、数据特点
- 实时性:行情数据实时更新,确保数据时效性
- 准确性:数据经过严格校验,保证数据质量
- 全面性:覆盖A股、基金、公司信息等多维度数据
- 易用性:标准化接口设计,简化开发流程
八、文档版本
- 文档版本: v1.0
- 最后更新: 2026-04-14
- 数据更新频率: 实时/每日更新(根据具体接口)
Installing Yiyan
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/wanxingai/yiyan-mcp-serverFAQ
Is Yiyan MCP free?
Yes, Yiyan MCP is free — one-click install via Unyly at no cost.
Does Yiyan need an API key?
No, Yiyan runs without API keys or environment variables.
Is Yiyan hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Yiyan in Claude Desktop, Claude Code or Cursor?
Open Yiyan on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Yiyan with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
