AKShare Stock Data
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
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
Maintainer
Works with
Installation
NPM
npx -y akshare-one-mcpManual Installation
npx -y akshare-one-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
Install via uvx (recommended)
The simplest installation uses uvx to run the package directly without a virtual environment setup.
uvx akshare-one-mcpAlternatively 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-mcpAdd 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"]
}
}
}Restart your MCP client
Restart Claude Desktop or reload Claude Code so the server is discovered and the tools become available.
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.
AKShare Stock Data Alternatives — Similar Analytics Servers
Looking for alternatives to AKShare Stock Data? Here are other popular analytics servers you can use with Claude, Cursor, and VS Code.
OpenMetadata
★ 14.0kOpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
Superset
★ 10.9kAn MCP server that provides AI assistants with full access to Apache Superset instances, enabling interaction with dashboards, charts, datasets, databases, and SQL execution capabilities.
Horizon
★ 4.4k📡 Your own AI-powered news radar. Generates daily briefings in English & Chinese. | 用 AI 构建你专属的新闻雷达
MCP Server Chart
★ 4.1kEnables generation of 25+ types of charts and data visualizations using AntV, including bar charts, line charts, maps, mind maps, and specialized diagrams like fishbone and sankey charts. Supports both statistical charts and geographic visualizations
Muapi CLI
★ 997Official CLI for muapi.ai — generate images, videos & audio from the terminal. MCP server, 14 AI models, npm + pip installable.
Weather MCP Server
★ 907Weather Data Fetcher MCP server built with Node.js, MCP SDK, and Zod. Provides weather details like temperature and forecast for cities such as Noida and Delhi via a registered tool. Simplifies API integration, enabling structured responses for clien
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.
Set Up AKShare Stock Data in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.