akshare (chinese financial data).com
akshare (chinese financial data).com logo

AKShare (Chinese Financial Data)

Integrates with AKShare to provide real-time financial data and analysis tools for Chinese and global markets, enabling...

Created byApr 22, 2025

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

  1. Add the following configuration to your Claude Desktop configuration:
  1. Restart Claude Desktop
  1. 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:
  1. Add a new API function in `src/mcp_server_akshare/api.py`:
  1. Add the new tool to the enum in `src/mcp_server_akshare/server.py`:
  1. Import the new function in `src/mcp_server_akshare/server.py`:
  1. Add the tool definition to the `handle_list_tools()` function:
  1. Add the tool handler in the `handle_call_tool()` function:
  1. 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

  1. Add the following configuration to your Claude Desktop configuration:
  1. Restart Claude Desktop
  1. 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:
  1. Add a new API function in `src/mcp_server_akshare/api.py`:
  1. Add the new tool to the enum in `src/mcp_server_akshare/server.py`:
  1. Import the new function in `src/mcp_server_akshare/server.py`:
  1. Add the tool definition to the `handle_list_tools()` function:
  1. Add the tool handler in the `handle_call_tool()` function:
  1. 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