Skip to content
MCP server

Stock MCP

Free real-time China A-share stock quotes and index levels by code or Chinese name

Answered our latest tool-list check 6 days ago with 2 tools. It will be marked verified after 3 successful checks in 7 days.

Stock MCP is an open-source MCP server for finance and payments. It runs as a hosted remote server, so there is nothing to install locally.

Pricing
Open source
Platforms
Web, API, Self-hosted
Runs
Remotely
What it can do
Read-only
Version
1.0.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add --transport http stock-mcp https://pianam.cn/stock-mcp/mcp

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "stock-mcp": {
      "type": "http",
      "url": "https://pianam.cn/stock-mcp/mcp"
    }
  }
}

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

https://pianam.cn/stock-mcp/mcp

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "stock-mcp": {
      "url": "https://pianam.cn/stock-mcp/mcp"
    }
  }
}

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "stock-mcp": {
      "type": "http",
      "url": "https://pianam.cn/stock-mcp/mcp"
    }
  }
}

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

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

https://pianam.cn/stock-mcp/mcp

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

ChatGPT setup guide

Add with the CLI

Run in a terminal

codex mcp add stock-mcp --url https://pianam.cn/stock-mcp/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.stock-mcp]
url = "https://pianam.cn/stock-mcp/mcp"

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

https://pianam.cn/stock-mcp/mcp

Enter a Name (for example "Stock MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "stock-mcp": {
      "type": "http",
      "url": "https://pianam.cn/stock-mcp/mcp"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "stock-mcp": {
          "httpUrl": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

    Or run: gemini mcp add -s user --transport http stock-mcp https://pianam.cn/stock-mcp/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "stock-mcp": {
          "serverUrl": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "stock-mcp": {
          "url": "https://pianam.cn/stock-mcp/mcp",
          "transport": "http"
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "stock-mcp": {
          "type": "streamableHttp",
          "url": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "stock-mcp": {
          "url": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "stock-mcp": {
          "url": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "stock-mcp": {
          "url": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "stock-mcp": {
          "url": "https://pianam.cn/stock-mcp/mcp"
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Stock MCP

This small server answers questions about the mainland China stock market. You can give a stock as a code, with or without the exchange prefix, or by its Chinese name, and it resolves the name using Tencent's suggest API plus a bundled map of about 50 common stocks. Examples in the README include asking for Kweichow Moutai by name or looking up CATL by its code.

A quote includes price, previous close, open, high, low, change amount and percent, direction, volume in shares and lots, turnover, update time and the data source. A second tool returns the Shanghai Composite, Shenzhen Component and ChiNext indices with an overall market-trend summary.

Data comes from Tencent Finance, with Sina Finance as an automatic fallback, both free public endpoints that need no key. The README notes the data is delayed or indicative and is not investment advice. A hosted endpoint is free to use with no authentication, or you can self-host a FastMCP server with Python. It is MIT licensed.

Tools this server provides (2)

Read directly from the server.

Going by the tool names, all 2 tools only read data.

From the server's own tool labels and tool names; not verified by us.

query_stock_quoteName suggests: reads
查询个股实时行情,支持股票代码(如 sh600519、600519)或名称(如 贵州茅台)。返回现价、涨跌额、涨跌幅、今开、昨收、最高、最低、成交量等数据。
query_indexName suggests: reads
查询A股三大指数实时行情,包括上证指数、深证成指、创业板指的点位、涨跌幅和市场整体趋势。

What it does

Quote by code or name
Accepts codes such as 600519 or sh600519, or a Chinese company name.
Detailed quote fields
Returns price, range, change, volume, turnover and update time.
Index overview
Shows the three major A-share indices and a market-trend summary.
Dual data sources
Uses Tencent Finance with Sina Finance as automatic fallback.
Hosted or self-hosted
Offers a free public endpoint or a server you run yourself.
No key needed
Requires no API key or registration.

Good for

  • Ask for the current price of a Chinese listed stock
  • Check how the Shanghai and Shenzhen indices are doing today
  • Look up a stock by its Chinese name
  • Add basic A-share quotes to a chat assistant
  • Self-host a simple quote service for an internal agent

Pricing

Open source

MIT licensed; hosted endpoint is free

Stock MCP FAQ

Do I need an API key?

No. Both the hosted endpoint and the data sources are free and keyless.

Which tools does Stock MCP have?

query_stock_quote takes a stock code or Chinese name, and query_index takes no parameters.

Is the data real time?

The README describes it as real-time quotes but notes it is delayed or indicative per the data providers.

Is Stock MCP investment advice?

No. The README says the data is informational only.

Can I run Stock MCP myself?

Yes. Clone the repository, install the requirements and run server.py with Python.

Is Stock MCP free?

Yes. Stock MCP is open source, so you can use and self-host it for free.

How do I add Stock MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http stock-mcp https://pianam.cn/stock-mcp/mcp

What are the best alternatives to Stock MCP?

The closest alternatives to Stock MCP are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and Crypto Perp Pulse & Outage Radar (x402).

Where this comes from

  • Description: written from the project's README.
  • Status and tools: checked automatically by AIPoweredBot on 24 November 2026.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers