Use A-share data inside Doubao
Doubao works. Add a custom plugin in Doubao Work — transport HTTP, server URL set to ours. It supports custom headers, so the paid tools work too.
How to install
Open the Doubao client → Plugins · Skills · Partners in the left sidebar → + Add (top right of the Plugins page) → New custom plugin, then fill in the fields below and save:
Server name: ashareapi
Transport: HTTP
Server URL: https://api.ashareapi.com/mcp
Custom Headers: Authorization = Bearer ct-your-keyAfter saving, type `/` or `@` in a task and search for `ashareapi`. ⚠️ It may first report a failure — open the plugin list and click Restart once (first-run initialisation).
Start a new conversation and paste this whole block to Doubao:
Install an A-share data MCP for me:
{
"mcpServers": {
"ashareapi": {
"type": "streamable-http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer <your-key>" }
}
}
}For free tools only, delete the `headers` line. It worked when `ashareapi` shows up in the plugin list.
⚠️ The official entry is called Plugins (the page is “Plugins · Skills · Partners”) — “connectors” in older tutorials is the same feature under an old name. Look for custom plugin.
⚠️ If you are not signed in the sidebar is trimmed and Plugins · Skills · Partners does not appear — sign in first.
Want the paid tools? Add a key
These 6 free tools work with no key at all: quote snapshot / K-line / hot list / market overview / breadth / doc search. For financials, money flow, top-trader boards, factor screening or quant backtests, add a key (from ¥9.9 — all 35 tools unlocked). The key goes in the Custom Headers field from step 1 — click + to add one:
Name: Authorization
Value: Bearer ct-your-key⚠️ The name must be `Authorization` and the value must start with `Bearer ` (with a space after Bearer) — a typo only surfaces as “unauthorised” when you use a paid tool. Free tools work without it.
Once installed, just ask
- How much is 600667 right now?
- Pull the last 60 daily candles for 600667
- What is the market doing today?
- How is the money flow on 太极实业 (600667) today?
- Find me stocks with PE under 20 and ROE above 15
- What did institutions buy on the top-trader boards today?
- Which sectors gained the most in the last 5 sessions?
- Backtest a moving-average strategy on 600667
FAQ
Yes. The free tools (quote snapshot / K-line / hot list / market overview / breadth / doc search) need no key; the rest do (from ¥9.9 — all 35 tools unlocked).
Doubao Work supports custom headers, so you can put your key in and use the paid tools. Alibaba Cloud Bailian and Coze can connect too, but their official docs do not document custom request headers — free tools only there.
① Check the URL is https://api.ashareapi.com/mcp (mind the ending) ② when free tools are rate-limited it says the anonymous quota is used up — add a key ③ stock codes need a market prefix (sh600667 / sz000001 / hk00700) ④ if it reports a failure, click Restart once in the plugin list.
The tool list syncs at the moment you save. After we add tools, re-save or refresh the plugin once.
Related
Try the free tools without a key; get one for all 35 tools (from ¥9.9).
Official docs:https://www.doubao.com/work/docs/zh-cn/articles/705018132598-plugins·Last checked:2026-10-12