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 <ashareapi Key> - 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:
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.
Get the latest quote for sh600519
Get 600519 revenue for 2026Q3
Show the last 30 daily K-lines for 600519401 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 |
Authorization: Bearer explicitlyhttps://api.ashareapi.com/mcp, not a private addresshttps://api.ashareapi.com/mcp/count / limit / num, then batchGrok 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.
| 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 |
¥9.9 Trial · ¥29.9 Standard · ¥99 Pro · Institutional · Full 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
Yes. Grok Bot can add custom remote MCP servers; team workspaces apply the Cursor connector policy.
No. We provide a public remote MCP endpoint. Only local servers need a tunnel.
Ask the Bot to add an Authorization header with the value Bearer <Key>. Do not put the key in the URL.
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.