Connect your AI Agent (MCP)
MCP is the protocol that lets an AI Agent call external tools. Set it up once, then ask “how is the money flow on 太极实业 today” and the AI looks it up itself.
Your AI Agent (Claude Code / Codex and others) connects to our service over MCP and turns your plain-language questions into API calls. You write no code — the AI does that part.
Setup (3 steps)
.mcp.json.cursor/mcp.json.vscode/mcp.json~/.codex/config.tomlopencode.json~/.gemini/settings.json~/.cline/mcp.jsonmcp_config.json~/.codebuddy/.mcp.json~/.workbuddy/mcp.json设置 → MCP → 手动配置~/.kimi/mcp.json~/.zcode/cli/config.jsonmimocode.jsonkilo.jsonc设置 → 集成 → 自定义 MCP~/.config/devin/mcp_config.json~/.openclaw/openclaw.json~/.hermes/config.yamlChina platforms (same URL + header, nothing to install)
MCP management → Create MCP service → httpExtensions → MCP → Add custom MCP (paste JSON)MCP plugin → fill in the URLPlugin square → custom plugin → based on MCPResponses API → tools[type=mcp] + headersAdd the block below to your config file or settings (replace ct-your-key with your key; free tools only can drop the Authorization line).
{
"mcpServers": {
"ashareapi": {
"type": "http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"servers": {
"ashareapi": {
"type": "http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}[mcp_servers.ashareapi]
url = "https://api.ashareapi.com/mcp"
http_headers = { Authorization = "Bearer ct-your-key" }{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ashareapi": {
"type": "remote",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"httpUrl": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"type": "streamableHttp",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"serverUrl": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"type": "http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"type": "http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcpServers": {
"ashareapi": {
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcp": {
"servers": {
"ashareapi": {
"type": "http",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}
}{
"mcp": {
"ashareapi": {
"type": "remote",
"url": "https://api.ashareapi.com/mcp",
"oauth": false,
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcp": {
"ashareapi": {
"type": "remote",
"url": "https://api.ashareapi.com/mcp",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}服务器名称:ashareapi
服务器 URL:https://api.ashareapi.com/mcp
身份验证:Bearer ct-your-key{
"mcpServers": {
"ashareapi": {
"url": "https://api.ashareapi.com/mcp",
"transport": "http",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}{
"mcp": {
"servers": {
"ashareapi": {
"url": "https://api.ashareapi.com/mcp",
"transport": "streamable-http",
"headers": { "Authorization": "Bearer ct-your-key" }
}
}
}
}mcp_servers:
ashareapi:
url: "https://api.ashareapi.com/mcp"
headers:
Authorization: "Bearer ct-your-key"Claude Desktop: its remote connections use OAuth (per the MCP spec), so this method is not supported yet — use one of the clients above. ChatGPT (web / desktop app) can take remote MCP servers too, but via Developer mode → Apps → Create custom connector (Business / Enterprise / Edu workspaces), which has nothing to do with config.toml. Any other client that supports remote MCP with custom request headers works the same way: fill in the URL and the Authorization header.
After restarting, just ask in chat, for example:
- How is the money flow on 太极实业 (600667) today?
- Which sectors gained the most over the last 5 trading days?
- Find me stocks with PE under 20 and ROE above 15
- Is CSI 300 expensive right now?
- What did institutions buy on the top-trader boards today?
How to confirm it works: ask it “can you look up A-share data?”, or check that `ashareapi` shows up in your client’s MCP list.
Which tools it exposes
The AI calls them when it needs to. In your client they show up with an ashare_ prefix (e.g. ashare_quote); you never have to remember these names.
- quote snapshot
- kline candles
- hot attention list
- changedist breadth
- market_overview
- orderbook five-level order book
- snapshot full profile (valuation / cap / shares / limit price)
- finance statements
- technical indicators
- shareholder research
- dividend history
- events tags
- fund flow + boards + block + margin
- lhb board split
- sector performance
- sector_valuation
- macro indicators
- screen factor screening
- bond convertibles
- etf data
- ipo calendar
- dehydrated research notes
- search
- usage
A classic data API makes you build the integration yourself (SDK + auth + error handling). MCP hands that job to the AI — you just describe what you want.For research-with-AI workflows, that is far less work than an SDK.
Free tools (quote / kline / hot / market overview / breadth) need no key; the rest need one (from ¥9.9 — all 24 tools unlocked).