AKShare One MCP Server is a service that provides interfaces for accessing China stock market data. It offers tools for retrieving various financial information including historical stock data, real-time data, news, and financial statements through a standardized Model Context Protocol (MCP) interface.
The easiest way to install akshare-one-mcp for Claude Desktop is automatically via Smithery:
npx -y @smithery/cli install @zwldarren/akshare-one-mcp --client claude
uv
You can install directly from PyPI using uv:
uv pip install akshare-one-mcp
Then add the following configuration:
"mcpServers": {
"akshare-one-mcp": {
"command": "uvx",
"args": ["akshare-one-mcp"]
}
}
git clone https://github.com/zwldarren/akshare-one-mcp.git
cd akshare-one-mcp
uv sync
"mcpServers": {
"akshare-one-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/akshare-one-mcp",
"run",
"akshare-one-mcp"
]
}
}
Get historical market data using the get_hist_data
tool:
{
"symbol": "000001",
"interval": "day",
"interval_multiplier": 1,
"start_date": "2023-01-01",
"end_date": "2023-01-31",
"adjust": "qfq",
"source": "eastmoney",
"indicators_list": ["SMA", "RSI"],
"recent_n": 20
}
Parameters:
Get real-time stock information using the get_realtime_data
tool:
{
"symbol": "000001",
"source": "xueqiu"
}
Parameters:
Retrieve stock-related news using the get_news_data
tool:
{
"symbol": "000001",
"recent_n": 5
}
Parameters:
Get company balance sheet data using the get_balance_sheet
tool:
{
"symbol": "000001",
"recent_n": 4
}
Get company income statement using the get_income_statement
tool:
{
"symbol": "000001",
"recent_n": 4
}
Get company cash flow data using the get_cash_flow
tool:
{
"symbol": "000001",
"source": "sina"
}
Get company insider trading information using the get_inner_trade_data
tool:
{
"symbol": "000001"
}
Get current time information using the get_time_info
tool, which returns the current time in ISO format, timestamp, and the last trading day.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "akshare-one-mcp" '{"command":"uvx","args":["akshare-one-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"akshare-one-mcp": {
"command": "uvx",
"args": [
"akshare-one-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"akshare-one-mcp": {
"command": "uvx",
"args": [
"akshare-one-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect