Skip to content

MCP & AI Capabilities

What is MCP?

MCP (Model Context Protocol) is an open protocol proposed by Anthropic for connecting AI models with external data sources and tools. Through MCP, AI assistants can securely access real-time data and call external services without hardcoding API calls.

Stock SDK's companion MCP Server — stock-sdk-mcp — instantly gives your AI assistant professional stock market data capabilities.

Architecture Overview

┌─────────────────────────────────────────────────┐
│         AI Client (Cursor / Claude etc.)         │
│                                                 │
│  "Analyze TSLA's recent MACD trend"             │
└────────────────────┬────────────────────────────┘
                     │ MCP Protocol (JSON-RPC / stdio)

┌─────────────────────────────────────────────────┐
│              stock-sdk-mcp Server               │
│                                                 │
│  32 Tools + 7 Resources + 4 Skills              │
│                                                 │
│  ┌───────────────────────────────────────────┐  │
│  │           stock-sdk (Core SDK)             │  │
│  │  Quotes / K-line / Indicators / Futures .. │  │
│  └───────────────────────────────────────────┘  │
└─────────────────────────────────────────────────┘

Core Capabilities

32 MCP Tools

Covering all core features of stock-sdk:

  • Real-time Quotes: A-shares / HK / US stocks / Funds (smart name search)
  • K-line Data: Daily / weekly / monthly K-line, minute K-line, K-line with technical indicators
  • Sector Data: Industry / concept sector quotes, constituents, K-line
  • Code Lists: Full market A / HK / US / fund codes
  • Extended Data: Fund flow, large orders, trading calendar, dividends

👉 View full tool list

7 MCP Resources

Static data resources that AI can proactively read, including trading calendars, market code lists, and sector lists.

👉 View full resource list

4 AI Skills

Skills are scenario-based wrappers around the underlying Tools, using predefined Chain-of-Thought (CoT) to guide AI through professional analysis tasks:

SkillDescription
Stock Technical AnalystDeep K-line pattern and indicator analysis with buy/sell advice
Smart Stock ScreenerFilter 20,000+ stocks across markets by custom criteria
Market Deep OverviewPanoramic scan of indices, sectors, concepts, and sentiment
Portfolio MonitorReal-time position tracking, anomaly detection, P&L calculation

👉 View Skills details

Supported AI Tools

AI ToolTypeStatus
CursorIDE✅ Fully supported
Claude DesktopDesktop app✅ Fully supported
OpenClawMCP Gateway✅ Fully supported (recommended)
AntigravityVS Code extension✅ Fully supported
Codex CLITerminal tool✅ Fully supported
Gemini CLITerminal tool✅ Fully supported

👉 View detailed setup guide

Quick Start

Just two steps to give your AI stock data capabilities:

Step 1: Add to your AI tool's MCP configuration:

json
{
  "mcpServers": {
    "stock-sdk": {
      "command": "npx",
      "args": ["-y", "stock-sdk-mcp"]
    }
  }
}

Step 2: Restart your AI tool and start chatting:

> Analyze Tencent's recent MACD trend. Is there a golden cross?
> Find me the top 10 STAR Market stocks by gain today
> What are the constituents of the AI concept sector?

The AI will automatically call stock-sdk-mcp tools to fetch real-time data and perform analysis.

Released under the ISC License.