What is akshare_mcp?
akshare_mcp is an MCP (Model Context Protocol) server wrapper that exposes all data interfaces from the AKShare financial data library as tools for MCP clients. It is built for users who need access to AKShare's full dataset without manually limiting to a small subset.
How to use akshare_mcp?
Install via pip install akshare_mcp or uv pip install akshare_mcp, then run python -m akshare_mcp -h to verify installation and note the configuration file path. In your MCP client’s JSON configuration, set the command to your Python interpreter and args to ["-m", "akshare_mcp", "--format", "markdown"]. To avoid excessive token usage, edit the config.py file (found via -h) to list only the interfaces you need, or use --config <path> to point to a custom config file. After editing, reconnect the MCP client.
Key features of akshare_mcp
- Exposes all 1,000+ AKShare data interfaces as MCP tools
- Supports custom selection of interfaces via configuration files
- Outputs data in markdown format for readability
- Allows external configuration file path via
--config parameter
- Compatible with any MCP client that supports tool invocation
Use cases of akshare_mcp
- Retrieve financial market data (e.g., stock prices, fundamentals) through an AI assistant
- Integrate AKShare’s extensive dataset into chatbot or agent workflows
- Selectively activate only relevant data interfaces to control token consumption
- Use with MCP clients that enforce a limit on the number of tools (e.g., Trae’s 40-tool cap)
评论