Ash MCP
An MCP service for long-term holding and low-frequency trading analysis of A-shares based on baostock and akshare, providing functions such as basic data, market analysis, and quantitative strategies, and supporting night-time prefetch caching to optimize performance.
2 points
5.4K

What is ash-mcp?

ash-mcp is an investment analysis assistant specifically designed for the A-share market. It provides professional stock analysis tools for AI assistants through the Model Context Protocol (MCP). This service integrates two major data sources, baostock and akshare, and focuses on long-term value investment analysis, offering a full set of functions from basic data query to advanced strategy backtesting.

How to use ash-mcp?

You can connect to the ash-mcp service by configuring an MCP client (such as Gemini), and then conduct stock queries and analysis through natural language instructions. For example, you can ask 'Analyze the fundamentals of Kweichow Moutai' or 'Filter stocks with low valuation and high ROE', and the system will automatically call the corresponding analysis tools and provide structured results.

Applicable Scenarios

ash-mcp is most suitable for long-term A-share investors, value investment researchers, and developers of low-frequency trading strategies. It is particularly suitable for: 1) Screening stocks with long-term investment value; 2) Analyzing the fundamentals of individual stocks; 3) Formulating and backtesting low-frequency trading strategies; 4) Monitoring the health of investment portfolios; 5) Obtaining macro market data.

Main Features

Basic Data Query
Provides basic stock information, historical K-line data, industry classification, dividend distribution, financial indicators and other basic data queries, supporting different time granularities such as daily/weekly/monthly/minute levels.
Market and Individual Stock Analysis
Includes comprehensive analysis functions such as market index overview, industry fund flow, northbound fund monitoring, real-time quotes of individual stocks, financial analysis summaries, and valuation status assessments.
Long-term Holding Quantitative Analysis
A quantitative tool designed specifically for long-term investors, including grid trading plans, multi-factor scoring systems, low-frequency backtesting, portfolio rebalancing, and value stock screening functions.
Intelligent Prefetch Cache
Supports automatic prefetching and caching of data at night to improve daytime query speed and reduce real-time data requests, especially suitable for low-frequency analysis scenarios.
AI Assistant Friendly Design
The output format is optimized to provide concise tables and summaries, effectively controlling token usage and ensuring efficient interaction with various AI assistants.
Advantages
Focuses on long-term value investment in A-shares, and the tool design fits actual investment needs
The data sources are stable and reliable, with baostock as the main source and akshare as a supplement, complementing each other
The prefetch cache mechanism significantly improves query speed and reduces real-time API calls
The output results are structured and concise, suitable for AI assistants to process and display
Provides a complete investment analysis workflow, offering one-stop services from screening to backtesting
Limitations
Focuses on low-frequency analysis and is not suitable for high-frequency trading or real-time market monitoring needs
Some advanced functions rely on night-time prefetch caching, and new data needs to wait for cache updates
Mainly targets the A-share market and does not support analysis of other markets
Requires a certain technical foundation for initial configuration and deployment
Free data sources may have delays and do not guarantee real-time performance

How to Use

Environment Preparation
Ensure that a Python 3.8+ environment is installed, and clone the code repository including submodules.
Install Dependencies
Install all necessary Python dependency packages.
Configure MCP Client
Add the ash-mcp server configuration to your MCP client (such as Gemini).
Run Prefetch Script (Recommended)
Run the night-time prefetch script to cache data and improve daytime query performance.
Start Using
Send natural language instructions through the AI assistant, such as 'Help me analyze the investment value of Kweichow Moutai'.

Usage Examples

Initial Screening for Long-term Stock Selection
Investors hope to screen stocks with long-term investment value from the CSI 300, focusing on valuation, profitability, and growth potential.
In-depth Analysis of a Single Stock
Investors are interested in a certain stock and hope to comprehensively understand its fundamentals, valuation level, and recent performance.
Investment Portfolio Rebalancing
Investors have an existing stock portfolio and hope to conduct monthly portfolio adjustment and rebalancing according to market changes.
Value Stock Screening and Grid Plan
Investors hope to find undervalued stocks similar to a high-quality stock and formulate a grid trading plan for each stock.

Frequently Asked Questions

Does ash-mcp support real-time quotes?
What is the data update frequency?
Do I need to subscribe to the data source with a fee?
How to improve the query speed?
Does it support Hong Kong stocks or US stocks?
What should I do if data acquisition fails?

Related Resources

GitHub Repository
The source code and the latest version of ash-mcp
baostock Official Website
Official documentation and API instructions for the baostock data source
akshare Documentation
Detailed usage documentation for the akshare data source
Model Context Protocol
Official documentation and specifications for the MCP protocol
Value Investment Concept
Introduction to the basic concepts and principles of value investment

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "ash-mcp": {
      "command": "python",
      "args": ["a_share_value_mcp.py"],
      "cwd": "/home/wsl/quant/ash-mcp"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

P
Paperbanana
Python
7.9K
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.
7.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
8.3K
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
16.1K
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
11.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
32.4K
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
23.0K
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
11.4K
4 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
22.4K
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
26.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
37.3K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
76.6K
4.3 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#
36.2K
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
68.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
23.8K
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
53.6K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase