Ashare-MCP
About
A stock market data service for querying A-share market data from Sina and Tencent Finance.
Details
- Author
- rusianhu
- Categories
- Database, Finance, Other, API
Jump to
Setup
Install Ashare-MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/rusianhu/Ashare-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Ashare-MCP 是一个基于mpquant/Ashare的股票行情数据服务,通过 MCP (Model Context Protocol) 提供 A 股市场的行情数据查询功能。
- 支持多种周期的行情数据:分钟线(1m, 5m, 15m, 30m, 60m)、日线(1d)、周线(1w)、月线(1M)
- 支持多种股票代码格式:通达信格式(sh000001)、聚宽格式(000001.XSHG)
- 双核心数据源:新浪财经和腾讯财经,提高数据获取的稳定性
- 异步处理,提高性能
- 简单易用的 API 接口
# 通过 GitHub 安装 pip install git+https://github.com/RusianHu/Ashare-mcp.git # 如果需要使用代理 pip install git+https://github.com/RusianHu/Ashare-mcp.git --proxy socks5://127.0.0.1:10808 # 通过本地安装(开发模式) git clone https://github.com/RusianHu/Ashare-mcp.git cd Ashare-mcp pip install -e .
{ "mcpServers": { "ashare-mcp": { "command": "python", "args": [ "-m", "ashare_mcp" ], "alwaysAllow": [ "get_price" ], "disabled": false } } }
# 使用标准输入输出模式 ashare-mcp # 使用 HTTP 模式 fastmcp serve ashare_mcp
# 获取上证指数最近5天的日线数据 result = await get_price_ashare_mcp(code="sh000001", count=5, frequency="1d") # 获取贵州茅台指定日期的历史数据 result = await get_price_ashare_mcp(code="sh600519", end_date="2023-01-01", count=10, frequency="1d") # 获取分钟线数据 result = await get_price_ashare_mcp(code="sh600519", count=5, frequency="15m")
Provides real-time financial market data using the Alpha Vantage API.
Perform financial analysis using the DART API and Claude.
Funding rounds, acquisitions & exec moves — deduped, enriched, typed. Query over REST, stream over webhooks, or hand to your agent over MCP. 50 free credits.
Access financial datasets from the Federal Reserve Economic Data (FRED) API.
Provides real-time financial data using the Tushare API.
Provides real-time financial data from Yahoo Finance.
Access US Treasury data via the Fiscal Data API to fetch statements, historical data, and generate reports.
Real-time forex macroeconomic API for all major currency pairs sourced from central bank announcements.
Retrieve and process economic data from the International Monetary Fund (IMF) API, including datasets, time series, indicators, and countries.
62 real-time data tools for AI agents via MCP. Finance, crypto, FMCSA, sanctions, courts, weather, vehicles, cybersecurity. One bearer token, one bill. Free tier available.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





