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
8.9K

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

P
Paperbanana
Python
6.3K
5 points
F
Finlab Ai
FinLab AI is a quantitative financial analysis platform that helps users discover excess returns (alpha) in investment strategies through AI technology. It provides a rich dataset, backtesting framework, and strategy examples, supporting automated installation and integration into mainstream AI programming assistants.
5.8K
4 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
10.4K
5 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
10.2K
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
21.9K
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
14.6K
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.8K
4 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
25.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
72.4K
4.3 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
21.5K
4.5 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
34.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
64.6K
4.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#
31.3K
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
22.1K
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
48.2K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase