> Source: https://ashareapi.com/en/docs/guides/grok-bot-mcp/  ·  Markdown version for LLMs / AI agents

Guide

# A-Share Data in Grok Bot
 Grok Bot supports custom remote MCP servers: add a public URL and a Bearer header, then ask for A-share quotes, financials and K-lines inside the Bot.

## Use a remote MCP server, not a local process
 Grok Bot can add a custom MCP server. Our endpoint is remote Streamable HTTP, so the Bot connects from the cloud; you do not need a local service or open port.

-
 URL: `https://api.ashareapi.com/mcp`

-
 Auth: `Authorization: Bearer `

-
 Transport: Streamable HTTP

-
 Public HTTPS required; localhost is not supported

## Before you start

-
 A Grok Bot on an eligible paid tier

-
 An ashareapi API key; use a separate read-only key

-
 Verify the key over REST: `GET /v1/quote?code=sh600519`

## Add it by asking the Bot
 Grok Bot can add a remote MCP server from a message and shows an approval card before saving. Send this with your key:

 Message to Grok Bot
```
Add a custom remote MCP server.
Name: ashareapi
URL: https://api.ashareapi.com/mcp
Authentication: HTTP header "Authorization" with value "Bearer <YOUR_ASHAREAPI_KEY>"
```
 On the approval card, confirm **Remote HTTPS**, the correct URL, and the `Authorization: Bearer ...` header.

## Or add it from Connectors

-
 Open `grok.com/connectors`

-
 Click **New Connector → Custom**

-
 Enter `https://api.ashareapi.com/mcp`

-
 Complete authentication; if the page only offers OAuth, use the Bot Remote HTTPS + header flow

## Verify: tools first, then three questions
 Ask the Bot to list MCP tools. Confirm `ashare_quote`, `ashare_finance` and `ashare_kline` appear.

 Ask inside Grok Bot
```
Get the latest quote for sh600519

Get 600519 revenue for 2026Q3

Show the last 30 daily K-lines for 600519
```

## 401 or no tools
 |
| | Symptom | Check first | Fix

| | 401 | Header treated as OAuth | Ask for Remote HTTPS + `Authorization: Bearer` explicitly

| | No tools | URL public | Use `https://api.ashareapi.com/mcp`, not a private address

| | Connection fails | Trailing slash | Try `https://api.ashareapi.com/mcp/`

| | Blocked on a team | Cursor MCP policy | Ask an admin to allow it in Team Marketplace / Plugins & MCPs

| | Timeout | Result too large | Lower `count` / `limit` / `num`, then batch

 401
 Header treated as OAuth
 Ask for Remote HTTPS + `Authorization: Bearer` explicitly

 No tools
 URL public
 Use `https://api.ashareapi.com/mcp`, not a private address

 Connection fails
 Trailing slash
 Try `https://api.ashareapi.com/mcp/`

 Blocked on a team
 Cursor MCP policy
 Ask an admin to allow it in Team Marketplace / Plugins & MCPs

 Timeout
 Result too large
 Lower `count` / `limit` / `num`, then batch

 Grok Bot teams inherit the Cursor connector policy; a blocked server shows **Disabled by team admin**.

## Which tier: upgrade by workload
 Quotes and K-lines can start on the base allowance; financials, batch calls, screening and research need a higher tier. See the [full pricing page](/en/pricing).
 |
| | Tier | Price | Quota | Best for Grok Bot

| | Trial | **¥9.9 one-time** | 10k calls · 30 req/min · 24 endpoints | Financials, dividends, sectors; light research

| | Standard | **¥29.9 one-time** | 100k calls · 120 req/min · 46 endpoints | Daily research, notices, fund flow and more

| | Pro | **¥99 one-time** | 500k calls · 300 req/min · 80 endpoints | Screening, batch financials, agent research

| | Institutional | **¥199/month** | 100k/day · 600 req/min · 96 endpoints | Teams, multiple IPs, institutional research

 Trial
 **¥9.9 one-time**
 10k calls · 30 req/min · 24 endpoints
 Financials, dividends, sectors; light research

 Standard
 **¥29.9 one-time**
 100k calls · 120 req/min · 46 endpoints
 Daily research, notices, fund flow and more

 Pro
 **¥99 one-time**
 500k calls · 300 req/min · 80 endpoints
 Screening, batch financials, agent research

 Institutional
 **¥199/month**
 100k/day · 600 req/min · 96 endpoints
 Teams, multiple IPs, institutional research

 [¥9.9 Trial](/en/pricing/trial) · [¥29.9 Standard](/en/pricing/standard) · [¥99 Pro](/en/pricing/pro) · [Institutional](/en/pricing/unlimited) · [Full pricing](/en/pricing)

## Boundaries

-
 ✅ Read-only data lookup and research summaries

-
 ⛔ No automated trading, brokerage connection or return promises

-
 ⛔ Not investment advice; explain numbers by API date and definition

-
 ⛔ No stale close presented as a live quote; no missing fields filled with zero

## FAQ
 Does Grok Bot support MCP?
 Yes. Grok Bot can add custom remote MCP servers; team workspaces apply the Cursor connector policy.

 Do I need a local server?
 No. We provide a public remote MCP endpoint. Only local servers need a tunnel.

 How do I set the Bearer key?
 Ask the Bot to add an `Authorization` header with the value `Bearer `. Do not put the key in the URL.

 Why is it missing on a team?
 An admin may need to allow it in Cursor Team Marketplace / Plugins & MCPs. A blocked server shows Disabled by team admin.

 Last updated: 2026-10-31
 Grok Bot entry and Remote HTTPS/custom header behavior checked against xAI Grok Bot computer-and-apps, Grok Connectors and teams-and-enterprises docs on 2026-10-31; MCP URL and Bearer auth follow the live ashareapi endpoint.

 Related

-
[A-Share Data in Today](/en/docs/guides/today-mcp)

-
[MCP overview](/en/mcp)

-
[Pricing and limits](/en/pricing)

-
[Errors and rate limits](/en/docs/errors)

 [← All tutorials](/en/docs/guides)
