# A股数据 API (A-Share Data API)

> A股数据 API (A-Share Data API) is a freemium MCP server for finance and payments. China A-share market data over MCP: quotes, order book, K-lines, financials, fund flows. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, CLI
- **Website:** https://ashareapi.com
- **MCP Registry name:** com.ashareapi/ashare-data-api
- **Categories:** finance and payments, analytics and data
- **Listing updated:** 2026-11-17

## About

The service is built around mainland China's A-share market, with symbols written as a lowercase market prefix plus code, such as sh600519 for Shanghai, sz for Shenzhen and bj for Beijing. Its site counts 102 endpoints covering real-time quotes, five-level order book, daily to minute K-lines with ten years of history, financial statements, shareholder data, money flow, the dragon-tiger list, sector valuation, macro series and convertible bonds. Higher plans add a factor library of 87 factors, 29 strategies, backtesting and some Hong Kong and US data.

Seven free endpoints work without a key, at 5 requests a minute anonymously. Paid keys come as one-off call packs (stated as 9.9, 29.9 and 99 yuan tiers) or as an institutional subscription, and the site says there is no registration. It also says requests are served from 70 sources that back each other up, and that it provides data and support only, not investment advice.

The page is in Chinese. There are official Python and Node.js SDKs, and the registry entry advertises 31 tools for MCP clients.

## Features

- **Market data coverage:** Quotes, order book, K-lines, financial statements, shareholders and money flow for A-shares.
- **Free keyless endpoints:** Seven endpoints can be called without a key, rate limited for anonymous users.
- **Quant toolkit:** A factor library, strategy list, methodology notes and backtesting on higher tiers.
- **Source failover:** The site says 70 sources back each other up.
- **SDKs:** Official Python and Node.js packages return data frames or object arrays.
- **Account and IP controls:** Institutional keys can be locked to a list of IP addresses.

## Good for

- Let an agent look up an A-share price or order book
- Pull financial statements and fund-flow data for stock research
- Backtest a strategy with commission and stamp-duty costs included
- Rank convertible bonds or screen stocks by factors

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http ashare-data-api https://api.ashareapi.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.ashareapi.com/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ashare-data-api": {
      "url": "https://api.ashareapi.com/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ashare-data-api": {
      "type": "http",
      "url": "https://api.ashareapi.com/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ashare-data-api": {
      "serverUrl": "https://api.ashareapi.com/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ashare-data-api": {
      "type": "http",
      "url": "https://api.ashareapi.com/mcp"
    }
  }
}
```

## FAQ

### Do I need to register?

No. The site says free endpoints need no key and paid keys are issued after payment without registration.

### What symbol format is required?

A lowercase market prefix plus code, such as sh600519; other spellings return empty data.

### Is it investment advice?

No, the site states it provides settlement and technical support only.

### How is payment structured?

One-off call packs that do not expire until used, or monthly subscriptions for heavy use; prices are in yuan.

### Is A股数据 API (A-Share Data API) free?

A股数据 API (A-Share Data API) has a free plan, with paid plans for more usage or features.

### How do I add A股数据 API (A-Share Data API) to Claude Code?

Run this command in your terminal: claude mcp add --transport http ashare-data-api https://api.ashareapi.com/mcp

### What are the best alternatives to A股数据 API (A-Share Data API)?

The closest alternatives to A股数据 API (A-Share Data API) are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP and World Monitor.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/a-api-a-share-data-api
