Frequently Asked Questions about Ashare-MCP
Q: What is Ashare-MCP?
A: Ashare-MCP is an MCP (Model Context Protocol) server that provides access to real-time A-share market data, enabling AI models and agents to perform financial analysis and automate trading strategies.
Q: What kind of data does Ashare-MCP provide?
A: Ashare-MCP supports various timeframes, including minute-level (1m, 5m, 15m, 30m, 60m), daily (1d), weekly (1w), and monthly (1M) data for A-share stocks.
Q: What stock code formats are supported?
A: Ashare-MCP accepts both Tongdaxin (e.g., sh000001) and JoinQuant (e.g., 000001.XSHG) stock code formats.
Q: What are the data sources for Ashare-MCP?
A: Ashare-MCP uses Sina Finance and Tencent Finance as its data sources, ensuring data reliability and stability.
Q: How do I install Ashare-MCP?
A: You can install Ashare-MCP using pip with the command: pip install git+https://github.com/RusianHu/Ashare-mcp.git
Q: How do I use Ashare-MCP as an MCP service in UBOS?
A: Add the provided configuration to your MCP configuration file, specifying the command, arguments, and allowed functions.
Q: Can I run Ashare-MCP as a standalone service?
A: Yes, you can run Ashare-MCP as a standalone service using either standard input/output mode or HTTP mode via fastmcp serve ashare_mcp.
Q: What is the primary function offered by Ashare-MCP?
A: The primary function is get_price, which retrieves stock market data for specified stocks and timeframes.
Q: What parameters does the get_price function accept?
A: The get_price function accepts parameters such as code (stock code), end_date (end date), count (number of data points), frequency (timeframe), and fields (list of fields to return).
Q: What are the dependencies of Ashare-MCP?
A: Ashare-MCP depends on fastmcp>=0.1.0, pandas, and requests.
Q: How can I contribute to Ashare-MCP?
A: You can contribute by submitting issues and pull requests on the Ashare-MCP GitHub repository.
Q: What is the license for Ashare-MCP?
A: Ashare-MCP is licensed under the MIT License.
Q: How does Ashare-MCP integrate with the UBOS platform?
A: Ashare-MCP enhances the UBOS platform by providing real-time A-share market data for AI agents, enabling advanced financial analysis and automated trading strategies.
Ashare Stock Market Data Service – A股数据查询
Project Details
- RusianHu/Ashare-mcp
- MIT License
- Last Updated: 4/27/2025
Recomended MCP Servers
This read-only MCP Server allows you to connect to Kintone data from Claude Desktop through CData JDBC Drivers....
All-in-1 MCP server for developers
A Google Search MCP server that connects with LLMs or any MCP client to enable realtime search.
A Model Context Protocol (MCP) implementation that enables Claude Desktop to interact with Azure services. This integration allows...
Interface for AI agents to use your astrophotography setup using N.I.N.A advanced api
MCP server for pymupdf4llm, best pdf2md for LLM
Model Context Protocol implementation for retrieving codebases using RepoMix
This read-only MCP Server allows you to connect to xBase data from Claude Desktop through CData JDBC Drivers....





