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:
- Macroeconomic data queries
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
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:
- Macroeconomic data queries
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