AKShare MCP Server
by ttjslbz001
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
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)
Copy
Using pip
Copy
Usage
Running the server
Copy
Integrating with Claude Desktop
- Add the following configuration to your Claude Desktop configuration:
Copy
- 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
:Copy - Add the new tool to the enum in
src/mcp_server_akshare/server.py
:Copy - Import the new function in
src/mcp_server_akshare/server.py
:Copy - Add the tool definition to the
handle_list_tools()
function:Copy - Add the tool handler in the
handle_call_tool()
function:Copy - Test the new tool by running the server and making a request to the new tool.
Development
Copy
Docker
You can also run the server using Docker:
Copy
License
MIT
This server cannot be installed
A Model Context Protocol server that enables Claude Desktop to access and analyze Chinese and global financial market data through the AKShare library.