# ApocData

> ApocData is a freemium MCP server for stock market data. MCP server giving AI clients access to 46 A-share China stock market data tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Repository:** https://github.com/apocdata/apocdata-mcp-server
- **MCP Registry name:** io.github.ApocData/mcp-server
- **Categories:** [stock market data](https://ai-powered.com/categories/stock-market-data)
- **Listing updated:** 2026-11-21

## About

This server wraps the ApocData market data platform for Chinese A-shares as a set of 46 Model Context Protocol tools. Once connected, an assistant can pull quotes, daily bars, valuation and financial statements, shareholder records, money flow, limit-up and limit-down lists, sector and concept boards, announcements, convertible bonds, factor scores, macro indicators and an economic calendar.

It runs locally over stdio and is launched with npx or a global npm install, then added to clients such as Claude Desktop, Cursor, Cline or Continue. Requests go to the vendor's hosted API, and the server passes through rate-limit, truncation and error headers so the assistant can see quota and cache behaviour. Base URL, timeout and retry settings can be changed through environment variables, and a private deployment address is supported.

The server suits analysts, quant researchers and developers who want an assistant to answer questions about A-share data without writing their own API integration. Basic access requires no registration, while the README notes that signing up unlocks higher quotas and more data.

## Features

- **46 market data tools:** Covers quotes, rankings, financials, shareholders, money flow, sectors, bonds, factors and macro data in one server.
- **Stdio transport setup:** Runs as a local process started through npx, so most MCP clients can connect with a short JSON config entry.
- **Compact columnar output:** An optional compact format returns column-based results to reduce token use on large datasets.
- **Field trimming and row limits:** Supports field selection on large endpoints and caps row limits at 50, reporting truncation in response headers.
- **Built-in usage guides:** Exposes markdown resources with a usage guide, scenario mappings and a limits reference for assistants.
- **Configurable timeouts and retries:** Request timeout and retry count for server errors are adjustable through environment variables.

## Good for

- Ask an assistant for recent price history or rankings for specific A-share stocks
- Build a company profile combining valuation, financials and shareholder data
- Track northbound and margin money flows alongside limit-up and limit-down lists
- Pull macro indicators such as CPI and the latest economic calendar events
- Prototype quantitative research workflows that call China market data from an agent

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server -- npx -y @apocdata-info/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server -- npx -y @apocdata-info/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@apocdata-info/mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-server npx -- -y @apocdata-info/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@apocdata-info/mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 10 tools reads data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `quote`: Real-time quote for a symbol
- `daily`: Daily price bars for a symbol
- `ranking`: Gainers, losers and other rankings
- `financial`: Financial statement data
- `holders`: Shareholder records
- `moneyflow`: Money flow data
- `limit-list` (name suggests: reads): Limit-up and limit-down stock lists
- `macro-latest`: Latest macroeconomic indicator value
- `profile-full`: Comprehensive stock profile
- `calendar`: Economic calendar events

## FAQ

### Do I need an account to use ApocData?

The README says basic calls work without registration, and that signing up unlocks higher quotas and more data capabilities.

### How do I install ApocData?

Add an entry to your MCP client config that runs npx -y @apocdata-info/mcp-server, or install the package globally with npm and run apocdata-mcp.

### What happens when I request too many rows?

Row limits are capped at 50, and anything above that is silently truncated; the X-Tdc-Truncated response header flags it.

### Can I point ApocData at a private deployment?

Yes, the APOCDATA_BASE_URL environment variable can be set to an intranet or private API address.

### Is ApocData free?

ApocData has a free plan, with paid plans for more usage or features.

### How do I add ApocData to Claude Code?

Run this command in your terminal: claude mcp add mcp-server -- npx -y @apocdata-info/mcp-server

### What are the best alternatives to ApocData?

The closest alternatives to ApocData are hanjialeGit, China Market Intelligence MCP, AkTools Pro MCP Server, Tickerbot and laogu-mcp.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [hanjialeGit](https://ai-powered.com/mcp/hanjialegit): hanjialeGit is an open-source MCP server for financial data.
- [China Market Intelligence MCP](https://ai-powered.com/mcp/china-market-intelligence-mcp): China Market Intelligence MCP is a paid MCP server for stock market data.
- [AkTools Pro MCP Server](https://ai-powered.com/mcp/aktools-pro-mcp-server): AkTools Pro MCP Server is an open-source MCP server for finance and payments.
- [Tickerbot](https://ai-powered.com/mcp/tickerbot): Tickerbot is an open-source MCP server for stock market data.
- [laogu-mcp](https://ai-powered.com/mcp/laogu-mcp): laogu-mcp is an open-source MCP server for stock market data.
- [Vanoe Intelligence MCP](https://ai-powered.com/mcp/vanoe-intelligence-mcp): Vanoe Intelligence MCP is a freemium MCP server for stock market data.
- [TrueSource](https://ai-powered.com/mcp/truesource): TrueSource is an MCP server for stock market data.

---
Source: https://ai-powered.com/mcp/apocdata
