Skip to content
AKTools

AKToolsMCP Server

Released
v0.1.13
MIT

Summary

Official MCP server and HTTP API for AKShare, the open-source financial data library: an assistant searches nearly a thousand data interfaces, reads their parameters and fetches stock, fund and macro data.

Features

  • Search nearly a thousand AKShare financial data interfaces
  • Describe an interface's parameters and defaults
  • Fetch stock, fund, bond, futures and macro data
  • 60-second result cache to limit upstream requests
  • Same catalogue over an HTTP API with CSV/XLSX export
  • Shared HTTP MCP endpoint with optional access tokens

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "AKTools" tools will be available.
{
  "mcpServers": {
    "aktools-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "aktools",
        "aktools-mcp"
      ]
    }
  }
}

Hosted endpoint

This server is also hosted. A client that supports remote MCP servers can connect to it directly: Connect to an AKTools server started with python -m aktools

{
  "mcpServers": {
    "aktools-mcp": {
      "type": "http",
      "url": "http://127.0.0.1:8080/mcp"
    }
  }
}

Description

AKTools comes from the team behind AKShare, a widely used open-source Python library that collects financial data from public sources. AKTools turns AKShare's nearly one thousand data interfaces into two services that share one catalogue, cache and error handling: an HTTP API for any programming language, and an MCP server for AI assistants.

How the MCP server works

It exposes three tools. search_interfaces finds the relevant interface by keyword, describe_interface shows its parameters and defaults, and get_data fetches the data. So a request like "forward-adjusted daily bars for Kweichow Moutai (600519) in October 2024" or "which interfaces cover convertible bonds?" is answered by the assistant choosing the interface and filling in the parameters itself.

Results for the same interface and parameters are cached for 60 seconds, which cuts repeated requests to upstream sites and the risk of an IP ban.

Install

With uv installed, add uvx --from aktools aktools-mcp to Claude Desktop, Claude Code, Cursor, Codex or WorkBuddy; there is no server to start first, though the first run downloads AKShare and its dependencies (about 150 MB). A running HTTP server (python -m aktools, also deployable with Docker and Gunicorn) serves MCP at /mcp too, so several machines can share one instance, with optional access tokens.

Good to know

AKShare's sources are mainly Chinese financial websites: interface titles, most column names, error messages and the documentation site are in Chinese (interface and parameter names are English), and many sources are only reachable from mainland China. The data is for research and comes with no investment advice. MIT licensed.

Related MCP Servers

See all AKTools alternatives

MCP: MaverickMCP

by Seth Hobson

New

Local stock market MCP server on Yahoo Finance data: quotes, fundamentals, RSI and MACD, stock screens, portfolio and watchlist tracking, a trade journal and optional Python backtesting.

MCP: TradingView MCP

by atilaahmettaner

Open-source MCP server for market data and technical analysis: screeners, multi-timeframe indicators and strategy backtests for stocks, crypto, forex and futures.

MCP: DexPaprika MCP

by CoinPaprika

New

Official DexPaprika MCP server: real-time DEX pools, token prices, trades, OHLCV and technical indicators across 36 blockchain networks, with no API key needed to start.

Browse all MCP servers →