AKShare MCP Server
A Model Context Protocol (MCP) server that provides financial data analysis capabilities using the AKShare library.
Features
- Access to Chinese and global financial market data through AKShare
- Integration with Claude Desktop via MCP protocol
- Support for various financial data queries and analysis
Installation
Using uv (recommended)
Using pip
Usage
Running the server
Integrating with Claude Desktop
- Add the following configuration to your Claude Desktop configuration:
- Restart Claude Desktop
- Select the AKShare MCP server from the available tools
Available Tools
The AKShare MCP server provides the following tools:
- Stock data queries
- Fund data queries
- Bond data queries
- Futures data queries
- Forex data queries
- Macroeconomic data queries
- And more...
Adding a New Tool
To add a new tool to the MCP server, follow these steps:
- Add a new API function in
src/mcp_server_akshare/api.py
: - Add the new tool to the enum in
src/mcp_server_akshare/server.py
: - Import the new function in
src/mcp_server_akshare/server.py
: - Add the tool definition to the
handle_list_tools()
function: - Add the tool handler in the
handle_call_tool()
function: - Test the new tool by running the server and making a request to the new tool.
Development
Docker
You can also run the server using Docker:
License
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that enables Claude Desktop to access and analyze Chinese and global financial market data through the AKShare library.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA collection of Model Context Protocol servers that enable Claude Desktop to provide development assistance capabilities with filesystem, Git, shell command, and web search functionality without incurring API usage costs.Last updated -219TypeScriptMIT License
- -securityFlicense-qualityA modular, extensible Model Context Protocol server framework designed for Claude Desktop that uses convention-based automatic module discovery to easily extend AI application functionality without modifying core code.Last updated -3Python
- AsecurityAlicenseAqualityA Model Context Protocol server focused on China's A-share stock market that provides data on stocks, financials, market indices, and macroeconomic indicators.Last updated -27323PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with Polymarket prediction markets through Claude Desktop.Last updated -3PythonMIT License