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

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

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).

VS Code setup

File: .vscode/mcp.json

{
  "servers": {
    "com-ashareapi-ashare-data-api": {
      "type": "http",
      "url": "https://api.ashareapi.com/mcp"
    }
  }
}
  1. Save the file and click Start above the server entry. VS Code asks you to trust the server.
  2. No sign-in is needed.

We ran the hands-on test in a reference client, not in VS Code. This config follows VS 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 VS Code (tested Oct 20, 2026)