mcp_zhitou_server

mcp_zhitou_server

0

The Zhitou HS Data MCP Server is a Python-based implementation of a Model Context Protocol server designed to provide real-time China A-Share stock market data to AI agents. It connects directly to the Zhitou Data API and allows AI tools to access stock lists, company profiles, and more through natural language queries, enhancing efficiency and user interaction.

✨ Zhitou HS Data MCP Server (Python Edition) ✨

Overview:

  • A Python-based Model Context Protocol (MCP) server that connects AI agents like Cursor and Cline with real-time China A-Share stock market data via the Zhitou HS Data MCP Server.
  • Acts as a bridge between AI agents and the Zhitou Data Service for retrieving real-time stock market information.

🌟 Key Features

  • MCP Standard Implementation: Uses JSON-RPC communication with compatible MCP clients.
  • Direct Connection to Zhitou API: Access to A-share market data.
  • Python Based: Easy for development and expansion.
  • Plug and Play: Simple configuration guidelines.
  • Tool Encapsulation: Tools for AI interaction via MCP.
  • Basic Logging and Error Handling: Simplifies debugging.

🛠️ Getting Started

  1. Prerequisites

    • Install Python (recommended version 3.8 or higher).
    • Install Requests library.
    • Obtain a Zhitou API Token.
    • Install MCP clients like Cursor or Cline.
  2. Code & Token Configuration

    • Download the main script mcp_zhitou_server.py.
    • Configure your API Token in the script.
  3. MCP Client Configuration

    • Set up configurations for Cline or Cursor clients to connect to the MCP server.

🔧 Tools Available

  • get_stock_list: Retrieves basic A-share stock list.
  • get_new_stock_calendar: Gets new stock calendar.
  • get_company_profile: Retrieves company profile for a specified stock.
  • get_capital_daily_trend: Retrieves daily capital trend for a specified stock.
  • get_all_announcements: Retrieves all historical announcements for a specified stock.

📜 License

  • Licensed under MIT.