a-stock-data-mcp

a-stock-data-mcp

MCP server adapter that exposes A-share stock data tools, prompts, and resources via FastMCP, enabling querying of stocks, K-lines, financials, sectors, and market hot spots through natural language.

Category
Visit Server

README

a-stock-data-mcp

MCP Server adapter for simonlin1212/a-stock-data.

The upstream project is kept as a pinned Git submodule under vendor/a-stock-data. This project does not rewrite upstream A-share data-fetching logic; it exposes that logic through FastMCP tools, prompts, and resources.

Install

git submodule update --init --recursive
uv sync
cp .env.example .env

Run

uv run python -m mcp_server.server

The server uses stdio. SSE and Streamable HTTP are intentionally left as future entrypoints.

Claude Desktop

{
  "mcpServers": {
    "a-stock-data": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/a-stock-data-mcp",
        "run",
        "python",
        "-m",
        "mcp_server.server"
      ]
    }
  }
}

Cursor

Add the same command to Cursor MCP settings:

{
  "mcpServers": {
    "a-stock-data": {
      "command": "uv",
      "args": ["--directory", "/path/to/a-stock-data-mcp", "run", "python", "-m", "mcp_server.server"]
    }
  }
}

VS Code

{
  "servers": {
    "a-stock-data": {
      "type": "stdio",
      "command": "uv",
      "args": ["--directory", "/path/to/a-stock-data-mcp", "run", "python", "-m", "mcp_server.server"]
    }
  }
}

Cherry Studio

Use a stdio MCP server:

  • Command: uv
  • Args: --directory /path/to/a-stock-data-mcp run python -m mcp_server.server

Tools

  • Stock: search_stock, get_stock_quote, get_stock_basic, get_stock_news, get_stock_notice, get_stock_report
  • K-line: get_daily_kline, get_weekly_kline, get_monthly_kline, get_minute_kline
  • Finance: get_finance, get_income_statement, get_balance_sheet, get_cashflow, get_eps, get_roe, get_pe, get_pb
  • Sector: get_industry, get_concept, get_industry_members, get_concept_members
  • Hot: get_hot_rank, get_limit_up_pool, get_limit_down_pool, get_broken_limit, get_hot_concepts
  • Dragon tiger: get_dragon_tiger
  • Money: get_money_flow, get_main_force, get_north_money
  • ETF: get_etf, get_etf_components
  • Index: get_index_quote, get_index_kline
  • Notice and research: get_notice, get_research_report
  • Analysis: analyze_stock, analyze_market

All tools return:

{"success": true, "data": {}}

or:

{"success": false, "error": "...", "message": "..."}

Prompts

  • analyze_stock
  • daily_market_summary
  • analyze_sector
  • today_hot_stock

Resources

  • market://calendar
  • market://industry
  • market://concept
  • market://index
  • market://exchange
  • market://etf

Configuration

.env supports:

  • LOG_LEVEL
  • REQUEST_TIMEOUT
  • ENABLE_CACHE
  • CACHE_TTL_QUOTE
  • CACHE_TTL_NEWS
  • CACHE_TTL_FINANCE
  • CACHE_TTL_SECTOR
  • USER_AGENT

Development

uv run pytest
uv run ruff check .
uv run black --check .
uv run mypy .

Notes

a-stock-data currently publishes a Markdown Skill rather than a Python package. The adapter extracts allowlisted Python definitions from SKILL.md and ignores examples/top-level calls.

mootdx is not installed by default because current mcp and mootdx releases have incompatible httpx dependency pins. Quote/news/finance/sector tools run without it; K-line tools are registered and fail with a clear dependency message until upstream publishes a compatible dependency set.

Some requested MCP tools, such as ETF components or board member lists, have no exact upstream helper today. They are registered and return structured status instead of adding new scrapers outside the adapter boundary.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured