tsrs-mcp-server logo

tsrs-mcp-server

by hanxuanliang

This is a TuShare data server based on the Model Context Protocol (MCP), providing a series of stock market data query interfaces. It is implemented in Rust and leverages the TuShare API.

View on GitHub

Last updated: N/A

What is tsrs-mcp-server?

tsrs-mcp-server is a Rust-based MCP server that encapsulates the TuShare API to provide various stock market data query tools. It utilizes technologies like Rust, Model Context Protocol (MCP), Poem MCP Server, TuShare API, and procedural macros.

How to use tsrs-mcp-server?

To use the server, you need to set up the TuShare API token in the .env file. Then, build the project using cargo build --release and run the compiled executable. Configuration details, such as those for Chatwise, are provided in the documentation.

Key features of tsrs-mcp-server

  • Provides multiple stock market data query tools via MCP

  • Implemented in Rust for performance and reliability

  • Encapsulates TuShare API for data access

  • Uses procedural macros for efficient template implementation

  • Includes tools for analyzing limit-up stocks, hot stocks, and capital flows

Use cases of tsrs-mcp-server

  • Analyzing daily limit-up stocks and their progression

  • Retrieving hot stock data from Tonghuashun App

  • Fetching data on stocks hitting limit-up or limit-down

  • Analyzing concept stock performance and composition

  • Tracking capital flows in individual stocks and concept sectors

FAQ from tsrs-mcp-server

What is MCP?

MCP stands for Model Context Protocol, a protocol used for data exchange.

What is TuShare?

TuShare is a financial data interface provider.

How do I get a TuShare API token?

You need to register on the TuShare website and obtain an API token.

What is the purpose of the ts-derive component?

The ts-derive component provides procedural macros for TuShare API integration.

Where can I find the compiled executable?

The compiled executable can be found in the target/release directory after building the project.