基于 akshare-one 的 MCP 服务器,提供全面的中国股市数据接口。它提供了一套强大的工具来检索包括历史股票数据、实时数据、新闻数据和财务报表在内的金融信息。
<a href="https://glama.ai/mcp/servers/@zwldarren/akshare-one-mcp"> <img width="380" height="200" src="https://gips0.baidu.com/it/u=2577567523,1817408817&fm=3081&app=3081&f=PNG?w=760&h=400" alt="akshare-one-mcp MCP 服务器" /> </a>get_hist_data获取支持多种时间段和调整方法的历史股票市场数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码(例如 '000001')interval (字符串,可选):时间间隔 ('minute','hour','day','week','month','year') (默认值: 'day')interval_multiplier (数字,可选):间隔倍数 (默认值: 1)start_date (字符串,可选):开始日期,格式为 YYYY-MM-DD (默认值: '1970-01-01')end_date (字符串,可选):结束日期,格式为 YYYY-MM-DD (默认值: '2030-12-31')adjust (字符串,可选):调整类型 ('none', 'qfq', 'hfq') (默认值: 'none')source (字符串,可选):数据来源 ('eastmoney', 'eastmoney_direct', 'sina') (默认值: 'eastmoney')indicators_list (列表,可选):要添加的技术指标recent_n (数字,可选):返回最近的记录数量 (默认值: 100)get_realtime_data获取实时股票市场数据。
<details> <summary>参数</summary>symbol (字符串,可选):股票代码source (字符串,可选):数据来源 ('xueqiu', 'eastmoney', 'eastmoney_direct') (默认值: 'eastmoney_direct')get_news_data获取与股票相关的新闻数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码recent_n (数字,可选):返回最近的记录数量 (默认值: 10)get_balance_sheet获取公司资产负债表数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码recent_n (数字,可选):返回最近的记录数量 (默认值: 10)get_income_statement获取公司利润表数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码recent_n (数字,可选):返回最近的记录数量 (默认值: 10)get_cash_flow获取公司现金流量表数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码source (字符串,可选):数据来源 (默认值: 'sina')recent_n (数字,可选):返回最近的记录数量 (默认值: 10)get_inner_trade_data获取公司内部交易数据。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码get_financial_metrics从三大财务报表中获取关键财务指标。
<details> <summary>参数</summary>symbol (字符串,必需):股票代码recent_n (数字,可选):返回最近的记录数量 (默认值: 10)get_time_info获取当前时间(ISO 格式)、时间戳以及最后一个交易日。
该服务器支持两种模式:stdio 和 streamable-http
命令行参数:
--streamable-http:启用 HTTP 模式(默认为 stdio 模式)--host:HTTP 模式下绑定的主机(默认为 0.0.0.0)--port:HTTP 模式下监听的端口(默认为 8081)注意: 当使用 streamable-http 模式时,MCP 服务器将在
http://{host}:{port}/mcp可用。对于默认配置,这将是http://0.0.0.0:8081/mcp。
通过 Smithery 自动安装 akshare-one-mcp 到 Claude Desktop:
npx -y @smithery/cli install @zwldarren/akshare-one-mcp --client claude
uv如果尚未安装,请先安装 uv。
在您的 MCP 客户端设置中添加以下配置:
{
"mcpServers": {
"akshare-one-mcp": {
"command": "uvx",
"args": ["akshare-one-mcp"]
}
}
}
克隆此仓库:
git clone https://github.com/zwldarren/akshare-one-mcp.git
cd akshare-one-mcp
安装依赖项:
uv sync
在您的 MCP 客户端设置中添加以下配置:
{
"mcpServers": {
"akshare-one-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/akshare-one-mcp",
"run",
"akshare-one-mcp"
]
}
}
}
get_hist_data 工具支持以下技术指标: