mcp_zhitou_server logo

mcp_zhitou_server

by PGFA

The Zhitou HS Data MCP Server is a Python-based implementation that acts as a bridge between AI agents (like Cursor or Cline) and the Zhitou HS Data API, enabling real-time China A-Share stock market data access. It allows users to query stock information using natural language within AI agent chat interfaces.

View on GitHub

Last updated: N/A

What is mcp_zhitou_server?

This server is a Model Context Protocol (MCP) server written in Python that connects AI agents to the Zhitou HS Data API, providing real-time access to China A-Share stock market data.

How to use mcp_zhitou_server?

To use this server, you need to install Python and the Requests library, obtain a Zhitou API token, and configure your MCP client (Cursor or Cline) with the server's command and path. Then, you can use natural language commands in your AI agent to query stock data.

Key features of mcp_zhitou_server

  • MCP Standard Implementation

  • Direct Connection to Zhitou API

  • Python-based for easy extension

  • Plug-and-play configuration

  • Tool-based API encapsulation

  • Basic logging and error handling

Use cases of mcp_zhitou_server

  • Querying real-time A-share stock lists within Cursor or Cline

  • Retrieving company profiles for specific stock codes

  • Accessing daily capital flow trends for stocks

  • Fetching historical announcements for stocks

FAQ from mcp_zhitou_server

How do I get a Zhitou API Token?

You need to create an account on the Zhitou 数服 website (https://www.zhituapi.com/) and obtain your API token from their platform.

What is MCP?

MCP stands for Model Context Protocol. It's a protocol that allows AI agents to interact with external tools and services.

Which AI agents are compatible with this server?

This server is designed to be compatible with any MCP-compliant client, such as Cursor and Cline.

How do I add more tools to the server?

You can add more tools by consulting the Zhitou API documentation, writing a Python function to call the API, registering the tool in the TOOLS dictionary, and updating your client configuration if necessary.

What license does this project use?

This project is licensed under the MIT License.