AKShare Stock Data

v1.14.0Analyticsstable

Get historical stock market data Args: symbol: Stock symbol/ticker (e.g. '000001') interval: Time interval ('minute','hour','day','week','month','year') interval_multiplier: Interval mult

aksharemcpmcp-serverstock-data
Share:
178
Stars
0
Downloads
0
Weekly
0/5

What is AKShare Stock Data?

AKShare Stock Data is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to get historical stock market data args: symbol: stock symbol/ticker (e.g. '000001') interval: time interval ('minute','hour','day','week','month','year') interval_multiplier: interval mult

Get historical stock market data Args: symbol: Stock symbol/ticker (e.g. '000001') interval: Time interval ('minute','hour','day','week','month','year') interval_multiplier: Interval mult

This server falls under the Analytics category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • get_hist_data
  • get_realtime_data
  • get_news_data
  • get_balance_sheet
  • get_income_statement

Use Cases

Historical stock market data
Multiple time intervals available
Chinese market support
zwldarren

Maintainer

LicenseMIT License
Languagepython
Versionv1.14.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y akshare-one-mcp

Manual Installation

npx -y akshare-one-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use AKShare Stock Data

AKShare One MCP is a Python-based server that provides AI models with access to Chinese and global stock market data via the AKShare library. It exposes tools for fetching historical OHLCV data, real-time quotes, financial statements (balance sheet, income statement, cash flow), technical indicators, news, and insider trading activity. Analysts and quant developers use it to query financial data in natural language without writing Python scripts directly.

Prerequisites

  • Python 3.10 or later installed
  • uv or uvx package manager installed (recommended), or Node.js for the npx route
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • No external API keys required — AKShare pulls public market data
1

Install via uvx (recommended)

The simplest installation uses uvx to run the package directly without a virtual environment setup.

uvx akshare-one-mcp
2

Alternatively install via npx

If you prefer the npm ecosystem, the package is also published as akshare-one-mcp on npm and can be run with npx.

npx -y akshare-one-mcp
3

Add to your Claude Desktop config

Edit your claude_desktop_config.json to register the server. The uvx approach is recommended as it manages the Python environment automatically.

{
  "mcpServers": {
    "akshare-one-mcp": {
      "command": "uvx",
      "args": ["akshare-one-mcp"]
    }
  }
}
4

Restart your MCP client

Restart Claude Desktop or reload Claude Code so the server is discovered and the tools become available.

5

Verify available tools

Once connected, the server exposes tools including get_hist_data, get_realtime_data, get_news_data, get_balance_sheet, get_income_statement, get_cash_flow, and get_insider_trading. Ask Claude to list available tools to confirm the server is connected.

AKShare Stock Data Examples

Client configuration

Register akshare-one-mcp using uvx in your Claude Desktop configuration. No API keys are required.

{
  "mcpServers": {
    "akshare-one-mcp": {
      "command": "uvx",
      "args": ["akshare-one-mcp"]
    }
  }
}

Prompts to try

Query Chinese and global stock market data using natural language.

- "Fetch historical daily data for stock 000001 from 2023-01-01 to 2024-01-01"
- "Get the latest balance sheet and income statement for stock 600000"
- "Retrieve real-time pricing and the 5 most recent news articles for stock 000858"
- "Show me insider trading activity and financial metrics for stock 002594"
- "Calculate the 20-day SMA for stock 300750 using daily data for the past year"

Troubleshooting AKShare Stock Data

uvx command not found

Install uv first with: curl -LsSf https://astral.sh/uv/install.sh | sh. Then restart your terminal so uvx is on your PATH.

AKShare data fetch fails for certain stocks

AKShare relies on public Chinese market data sources that can occasionally rate-limit or restructure. Ensure you are using a recent version of the package with uvx akshare-one-mcp — uvx always fetches the latest published version.

HTTP mode not connecting in Claude Desktop

Claude Desktop uses stdio mode by default. Only use --streamable-http --host --port flags if you are connecting a custom client over HTTP. Remove those flags from the args array for standard Claude Desktop usage.

Frequently Asked Questions about AKShare Stock Data

What is AKShare Stock Data?

AKShare Stock Data is a Model Context Protocol (MCP) server that get historical stock market data args: symbol: stock symbol/ticker (e.g. '000001') interval: time interval ('minute','hour','day','week','month','year') interval_multiplier: interval mult It connects AI assistants to external tools and data sources through a standardized interface.

How do I install AKShare Stock Data?

Install via npm with the command: npx -y akshare-one-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with AKShare Stock Data?

AKShare Stock Data works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is AKShare Stock Data free to use?

Yes, AKShare Stock Data is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Analytics MCP Servers

Explore all analytics servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "akshare-one": { "command": "npx", "args": ["-y", "akshare-one-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use AKShare Stock Data?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides