Tushare MCP Server
T

Tushare MCP Server

An MCP server based on the Tushare API that provides access to Chinese stock market data for AI assistants, including basic stock information, daily/weekly/monthly stock price data, etc.
2 points
6.8K

What is the Tushare MCP Server?

The Tushare MCP server is a bridge connecting AI assistants (such as Claude) to the Chinese stock market. It allows AI to query stock information, such as basic stock details, historical prices, and trading data, through simple conversations, eliminating the need for users to manually access financial websites or use professional software.

How to Use the Tushare MCP Server?

You only need to configure the server information in MCP-supported clients like Claude Desktop, and then you can ask stock-related questions just like chatting with a regular assistant. For example, you can ask, 'What is the stock price trend of Ping An Bank (000001.SZ) in the past month?' The AI will automatically call the server to retrieve data and provide an answer.

Applicable Scenarios

Suitable for investors, financial analysts, students, or any users who need to quickly query Chinese A-share market data. It can be used for: • Querying basic stock information (company name, industry, listing date) • Analyzing historical stock price trends (daily, weekly, monthly levels) • Obtaining trading data (trading volume, turnover) • Educational learning or market research

Main Features

Basic Stock Information Query
Retrieve basic information such as stock code, company name, industry, listing date, and region.
Daily Stock Price Data
Query the complete stock price data including opening price, highest price, lowest price, closing price, trading volume, and turnover on a daily basis.
Weekly and Monthly Stock Price Data
Obtain aggregated stock price data on a weekly or monthly basis, suitable for medium- to long-term trend analysis (sufficient Tushare credits are required).
Full MCP Protocol Support
Compatible with Claude Desktop and other clients supporting the Model Context Protocol, seamlessly integrated into AI conversations.
Professional Error Handling
Friendly handling of API errors, network issues, parameter errors, etc., providing clear error messages.
Type Safety Verification
Use Pydantic to strictly verify all input parameters, ensuring correct data formats and avoiding common errors.
Advantages
No programming knowledge required: Query stock data through natural language conversations
Real-time integration: Obtain data directly in AI conversations without switching applications
Comprehensive data: Covers basic information and stock price data of major stocks in the A-share market
Easy to configure: Only need to set the API Token once for long-term use
Cross-platform support: Can run on Windows, macOS, and Linux systems
Limitations
Requires a Tushare Pro account: Must register for a Tushare Pro account and obtain an API Token
Credit limitation: Some advanced features (weekly and monthly data) require sufficient Tushare credits
Data delay: Tushare data is not real-time, with a delay of about 15 minutes
Limited to the A-share market: Currently mainly supports Chinese A-share market data
Requires an internet connection: Must maintain an internet connection to access the Tushare API

How to Use

Get a Tushare API Token
Visit the official Tushare Pro website (tushare.pro) to register an account and obtain an API Token. Free accounts have access to basic data, while advanced data requires credits or payment.
Installation and Configuration
Clone the project and install the dependencies, or run it directly through Python. Set the environment variable to include your Tushare Token.
Configure Claude Desktop
Add the MCP server configuration in the Claude Desktop settings, specifying the Python execution path and your Token.
Start Using
Restart Claude Desktop, and then you can ask stock-related questions in the conversation.

Usage Examples

Example 1: Query Basic Stock Information
When you want to know the basic information of a stock, you can directly ask the AI, and it will call the stock_basic tool to obtain detailed information.
Example 2: Analyze Stock Price Trends
When you need to view the stock price performance over a certain period, the AI can obtain daily stock price data and conduct analysis.
Example 3: Long-term Trend Research
For medium- to long-term investment analysis, you can use weekly or monthly stock price data to observe trends.
Example 4: Comparison of Multiple Stocks
You can query the information of multiple stocks simultaneously for comparative analysis.

Frequently Asked Questions

Do I need to pay to use this server?
How should I write the stock code?
Is the data real-time?
Can I use it in other places besides Claude Desktop?
What should I do if an error occurs?
Can I query data for Hong Kong or US stocks?
How can I obtain more data access rights?
Can the server run 24 hours a day?

Related Resources

Tushare Pro Official Website
Register an account, obtain an API Token, view data access rights and credit rules
Model Context Protocol Documentation
Understand the MCP protocol specifications, working principles, and client support
GitHub Repository
Source code, issue feedback, contribution guidelines
Claude Desktop Download
Download the Claude Desktop client supporting MCP
API Documentation
Complete Tushare API interface documentation and data field descriptions
Example Configuration File
Example environment variable configuration file

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "tushare": {
      "command": "python",
      "args": ["-m", "tushare_mcp_server.main"],
      "env": {
        "TUSHARE_TOKEN": "your_tushare_api_token_here"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

M
Maverick MCP
Python
7.0K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
13.2K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
10.9K
5 points
C
Contracts Wizard
OpenZeppelin Contracts Wizard is an interactive smart contract building tool that allows users to generate contract code based on OpenZeppelin components by selecting contract types, parameters, and functions. It supports multiple programming languages and provides API and embedding functions.
TypeScript
9.9K
4 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.6K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
15.2K
4 points
A
Awesome Web3 MCP Servers
This is a curated list of Web3 Model Context Protocol (MCP) servers, covering multiple categories such as chain interaction, trading, DeFi, market data, tools, and social. MCP is an open protocol that standardizes how applications provide context to LLMs, similar to the USB - C port for AI applications. DeMCP is the first decentralized MCP network, focusing on providing self - developed and open - source MCP services for agents, supporting cryptocurrency payments, and redefining the security and reliability of MCP by combining TEE and blockchain registries.
15.8K
4.5 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
86.2K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
16.6K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
17.6K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
55.7K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.7K
5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
23.5K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
52.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.3K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
35.8K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase