AKTools MCP

MCP server and HTTP API on AKShare: the agent finds Chinese market data interfaces, reads their parameters and fetches tables

  • 1,556 ★ on the repository
  • Last commit
  • MIT
MCP server

Extended access

Why this level

  • Calls public financial data sites and downloads dependencies on first launch
  • The HTTP mode listens on a port, so with local network access the data is open to everyone on it
All reasons and checks

akfamily/aktools

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/aktools

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Calls public financial data sites and downloads dependencies on first launch
  • The HTTP mode listens on a port, so with local network access the data is open to everyone on it

This is third-party code. Review the repository files before installing.

What it does

AKTools wraps AKShare, an open collection of financial data interfaces, into two services. The HTTP API starts with `python -m aktools`, and any language or program gets data from addresses like `/api/public/<interface name>`. The `aktools-mcp` MCP server connects to an agent and needs no separately running service. The agent gets three tools. `search_interfaces` finds an interface by keywords, `describe_interface` shows its parameters and defaults, `get_data` returns the data. From a request such as daily Kweichow Moutai quotes for October 2024 with adjusted prices, the agent finds the right interface itself and fills in the parameters. The same data exports as JSON, CSV or XLSX. A repeat request with the same parameters within 60 seconds comes from the cache, which reduces calls to the source sites.

Who it is for. For analysts and developers who ask Claude Code, Cursor or Claude Desktop about Chinese markets and want AKShare tables without writing their own code.

Good fit when

  • You need historical quotes for China's A-share market and want the agent to find the interface and parameters
  • You want to know which AKShare interfaces exist on a topic, for example convertible bonds
  • You need the data in Excel or CSV: add `_format=xlsx` or `_format=csv` to the request
  • Several computers or scripts in different languages should share one service on a server

Not a fit when

  • You need real-time quotes for trading: the service forwards requests to open source sites, so delays and outages happen
  • You are looking for an investment recommendation: the developer says the data is for academic research
  • The server sits where sites such as Eastmoney and Sina are unreachable: some interfaces return a 502 error

Example request

Find the AKShare interface for daily A-share quotes, check its parameters and pull data for ticker 600519 for October 2024 with backward adjusted prices

MCP

Transport
stdio, http
Authentication
not required

Limitations

  • Needs Python 3.11 or newer. The first run through `uvx` downloads dependencies, including AKShare, about 150 MB.
  • The data comes from public source sites, so interfaces break when a site changes its markup. The developer advises upgrading `akshare` and `aktools` to the latest versions.
  • Some interfaces work only from a network inside China; see the AKShare documentation.
  • Errors in the data itself come from AKShare: AKTools only forwards requests and returns the answer as is.

How to disable. Remove the aktools entry from the agent's MCP configuration, for Claude Code with `claude mcp remove aktools`. Stop the HTTP service with Ctrl+C in the terminal where it runs, and uninstall the package with `pip uninstall aktools`.

FAQ

How do I install AKTools in Claude Code?

Run `claude mcp add aktools -- uvx --from aktools aktools-mcp`. You need uv first. There is no need to install the package ahead of time or start a service by hand.

Can I deploy AKTools on a server for a team?

Yes, the HTTP API deploys in Docker with Gunicorn. Then several computers and scripts in different languages share one service.

How does the AKTools MCP mode differ from the HTTP API?

MCP connects to an agent and starts itself through `uvx`. The HTTP API starts with `python -m aktools` and suits scripts and apps in any language. They share the interface catalog, cache and error handling.

Can an agent connect to an AKTools service that is already running?

Yes, a running service exposes `http://127.0.0.1:8080/mcp`. For Claude Code, for example: `claude mcp add --transport http aktools http://127.0.0.1:8080/mcp`.

Why does the data not refresh right away?

Responses are cached for 60 seconds. The `X-AKTools-Cache: hit` header shows a cached answer. Starting with `--cache-ttl 0` turns the cache off.

Discussion

No questions or reviews yet.

An akshare-based MCP server with quotes, indicators and news for China, Hong Kong and US stocks, plus cryptocurrency data

MCP serverExtended access391Repository stars
Official

A hosted MCP server for financial data: quotes, filings, macro statistics and FTShare's own factors, read-only

MCP serverExtended access257Repository stars

A server feeds agents quotes for A-shares, Hong Kong and US stocks, indicators, funds, futures and options, plus four skills.

MCP serverMinimal access104Repository stars

A local database of China A-share and ETF market data with an MCP server for natural-language queries

MCP serverExtended access3.1KRepository stars

MCP server and CLI with stock quotes for China, Hong Kong and the US: 92 tools for candles, indicators and funds, no API keys

MCP serverExtended access2KRepository stars

MCP lets an agent read a local Chinese-market archive and inspect financial data coverage, provenance and dates

MCP serverExtended access958Repository stars

README in short

The README explains two ways to work: the HTTP API and the MCP server. It then covers installation, a table of addresses for a quick check, launch options, call examples from several languages and Docker deployment with Gunicorn. It ends with answers to common 502 and 404 errors and a disclaimer about the data.

README badge

Report a problem

Foxx AIAKTools
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.