Home / A股数据 API (A-Share Data API) MCP / Setup guides / Claude Code

How to add the A股数据 API (A-Share Data API) MCP server to Claude Code

Server URL: https://api.ashareapi.com/mcp
Sign-in: No sign-in. Paste the URL and it connects.
Our hands-on result: Works 5 of 5 tasks passed, tested Oct 20, 2026 with MCP TypeScript SDK (reference client).

Claude Code setup

claude mcp add --transport http com-ashareapi-ashare-data-api https://api.ashareapi.com/mcp
  1. Run the command, then run claude mcp get com-ashareapi-ashare-data-api to confirm it connected.

We ran the hands-on test in a reference client, not in Claude Code. This config follows Claude Code's documented format for remote (Streamable HTTP) servers. If it fails for you, tell us and we will retest.

Same server, other clients

Full A股数据 API (A-Share Data API) test report | Compare all tested connectors | Connector Weather

How to add the A股数据 API (A-Share Data API) MCP server to Claude Code (tested Oct 20, 2026)