MCP Catalogs
Home

stock-mcp

by huweihua123·146·Score 48

A professional financial market data MCP server supporting A-shares/US stocks/crypto with HTTP API for AI agents.

financeai-llmdeveloper-tools
42
Forks
3
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

Stock MCP is a comprehensive financial data service that provides both MCP and HTTP API interfaces. It offers market data for A-shares, US stocks, ETFs, indices, and cryptocurrencies, along with technical analysis, fundamentals, money flow analysis, news retrieval, and filing processing. The server features a modular architecture with capability and provider plugins, supports multiple authentication modes, and includes a proxy boundary for handling domestic and international data sources.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI agents requesting stock market data and technical analysis
you:Quantitative trading systems retrieving historical market data
you:Financial analysis applications accessing fundamentals and news
you:What financial markets are supported?
you:How can I authenticate with the server?

When to choose this

Choose stock-mcp when you need a unified financial data API for AI agents that covers both Chinese and international markets with multiple data sources and technical analysis capabilities.

When NOT to choose this

Don't choose this if you need specialized derivatives trading support or if you require write capabilities to market data (this is a read-only service).

Tools this server exposes

8 tools extracted from the README
  • get_kline_data

    Retrieve K-line/candlestick data for a given financial symbol

  • calculate_technical_indicators

    Calculate technical indicators like RSI, MACD, moving averages for a symbol

  • get_market_data

    Fetch market data including price, volume, and basic info for financial symbols

  • get_fundamental_data

    Retrieve fundamental and financial metrics for companies

  • get_money_flow

    Analyze money flow and chip distribution for financial instruments

  • search_news

    Search financial news using Tavily's unified search

  • get_filings

    Retrieve SEC/EDGAR filings or A-share company announcements

  • export_data

    Export financial data as CSV or JSON for code execution workflows

Note: Tool names inferred from MCP call example and described capabilities. The README describes functionality but doesn't explicitly list all tool names with complete signatures.

Comparable tools

yahoo-finance-mcptradingview-mcpalpaca-data-apipolygon-io

Installation

Installation

Docker Compose (Recommended)
git clone https://github.com/huweihua123/stock-mcp.git
cd stock-mcp
cp .env.example .env
docker compose up -d --build
Local Development
uv sync --dev
cp .env.example .env
export STOCK_MCP_AUTH_MODE=none
uv run python -m uvicorn src.server.app:app --host 127.0.0.1 --port 9898
Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "stock-mcp": {
      "command": "uv",
      "args": ["run", "python", "-c", "import src.server.mcp.server as m; m.create_mcp_server().run(transport='stdio')"],
      "env": {
        "STOCK_MCP_AUTH_MODE": "none"
      }
    }
  }
}

FAQ

What financial markets are supported?
The server supports A-shares (Chinese stocks), US stocks, ETFs, indices, and cryptocurrencies with market data, technical analysis, fundamentals, and news.
How can I authenticate with the server?
Three authentication modes are supported: none (for development), token (static Bearer token), and jwt (OIDC/JWT compatible for production).

Compare stock-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.