Stock Analysis Plugin logo

Stock Analysis Plugin

Stock research MCP server for six markets, with quotes, screening, analysis, backtesting, research workflows, and portfolio risk tools.

Install Stock Analysis Plugin

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stock-analysis-plugin": {
      "command": "uvx",
      "args": [
        "stock-analysis-plugin"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx stock-analysis-plugin

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

stock-analysis-plugin MCP server gives AI agents access to stock research across A/HK/US/JP/KR/TW markets. It exposes 74 tools for quotes, financials, technical analysis, screening, backtesting, news, sentiment, valuation, SEC filings, and portfolio risk calculations, plus 21 Skills for repeatable research workflows. Most capabilities work without API keys, while optional data-source credentials extend failover coverage and enable services such as search, sentiment, and SEC data. Reach for it when an agent needs market research or strategy analysis through MCP, Pi Agent, Hermes, OpenClaw, or DeepSeek Harness.

Use cases

  • Analyze an individual stock across technical, fundamental, capital-flow, news, and sentiment data
  • Screen a market using valuation, size, growth, or other factors
  • Backtest a YAML-defined trading strategy and diagnose its results
  • Review post-market breadth, sectors, limit-up stocks, and market sentiment
  • Calculate portfolio concentration, stress tests, position sizing, or rebalancing plans

Key features

  • 74 tools across six stock markets
  • 21 research and analysis Skills
  • Multi-provider data failover
  • Multi-factor screening and strategy backtesting
  • SEC holdings and insider transaction research
  • Portfolio risk and valuation calculations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 13d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · stock-analysis-plugin (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars106Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Stock Analysis Plugin works

What stock-analysis-plugin does

stock-analysis-plugin is a finance and fintech research toolkit for AI agents. It covers A shares, Hong Kong, US, Japanese, Korean, and Taiwanese securities, with symbol formats such as 600519, 00700.HK, AAPL, 7203.T, 005930.KS, and 2330.TW.

The package combines 74 tools with 21 Skills. Tools retrieve market and company data, run calculations, search for information, build research context, and perform risk or valuation analysis. Skills package recurring workflows such as comprehensive stock analysis, market screening, strategy backtesting, market review, trend following, Chan theory, Elliott Wave analysis, event-driven research, and sector rotation.

How it works

Market data providers are tried in priority order and the server moves to another source when a provider fails. Sources without configured credentials are skipped. The failover paths differ by market: A-share quotes can use Tencent, akshare, Tushare, efinance, or Sina, while overseas markets primarily use yfinance and can fall back to configured providers such as Finnhub, Longbridge, or Alpha Vantage.

The server can return current snapshots or the latest available close outside trading hours, with freshness information. K-line data supports daily, weekly, and monthly intervals. Research workflows can combine technical, fundamental, capital-flow, news, and sentiment information into structured reports. Portfolio calculations use data supplied for the request and are not described as account storage.

Setup and configuration

Python 3.10 or newer is required. Install the Python package with:

Terminal
pip install stock-analysis-plugin

For MCP clients, run stock-analysis-mcp, or start the source implementation with .venv/bin/python mcp_host/server.py or python -m mcp_host. Claude Desktop, Cursor, and WorkBuddy are listed as MCP hosts. Pi Agent, Hermes Agent, OpenClaw, and DeepSeek Harness have separate installation paths and integrations.

No environment variables are required for the basic installation. Optional variables add providers or enable additional data categories. These include TUSHARE_TOKEN, Longbridge credentials, ALPHAVANTAGE_API_KEY, FINNHUB_API_KEY, XUEQIU_TOKEN, LIXINGER_TOKEN, and SEC_USER_AGENT. Search can use Tavily, Brave, SerpAPI, Bocha, or SearXNG; sentiment uses a configurable API URL and key.

Tools and capabilities

The tool groups cover:

  • Quotes, OHLCV data, fund NAVs, dividends, ETFs, financials, shareholder data, announcements, valuation history, and earnings calendars.
  • Technical indicators, candlestick patterns, volume and price analysis, signal evaluation, trend analysis, and sector rotation research.
  • Multi-factor stock screening, risk screening, strategy backtesting, market-state analysis, daily review, and batch watchlist analysis.
  • News search, combined intelligence gathering, social sentiment, and article extraction.
  • Portfolio concentration, stress testing, position sizing, rebalancing plans, DCF valuation, event studies, and backtest robustness checks.
  • SEC institutional holdings, Form 4 insider transactions, and related issuer or CIK lookups when SEC access is configured.

The dsh integration also provides a dashboard with watchlist quotes, six-market index strips, A-share breadth, sector leaders and laggards, and shared watchlist access through get_watchlist.

Limitations and notes

Provider coverage and freshness vary by market and data source. Some features require optional credentials or corresponding provider permissions. SEC filings require SEC_USER_AGENT; sentiment and search require their respective services. Earnings dates from yfinance for US and Japanese securities are provider estimates rather than official confirmations.

The strategy-backtesting workflow accepts YAML strategy definitions and can perform up to three rounds of parameter optimization. The sector ETF rotation Skill includes cross-market grouping and weighting research, while its complete deep model is not implemented. Outside trading hours, quote results may represent the latest close rather than a live price, with freshness fields indicating that state.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Stock Analysis Plugin

stock-analysis-plugin is an MCP server that connects AI agents to stock-market data across A/HK/US/JP/KR/TW and provides tools for quotes, K-lines, financials, screening, backtesting, news, sentiment, portfolio risk, valuation, and SEC filings. It also exposes research Skills for repeatable analysis workflows.

Install it with `pip install stock-analysis-plugin`, then run `stock-analysis-mcp`. Python 3.10 or newer is required. Source users can run `.venv/bin/python mcp_host/server.py` or `python -m mcp_host` and configure the MCP client with the resulting server command.

No, the basic installation can run without environment variables. Optional credentials add data providers or enable search, sentiment, and SEC features. For example, `SEC_USER_AGENT` is required for SEC holdings and Form 4 data, while search providers use their corresponding API keys or SearXNG URLs.

It supports A shares and A-share ETFs, Hong Kong stocks, US stocks, Japanese stocks, Korean stocks, and Taiwanese stocks. Symbols use market-specific formats, including six-digit A-share codes, `.HK`, `.T`, `.KS` or `.KQ`, and `.TW` or `.TWO` suffixes.

Yes. The package documents MCP integration for Claude Desktop and Cursor, using the installed `stock-analysis-mcp` command or the source server entry point. WorkBuddy is also listed as an MCP host, and the server is intended to work with MCP clients generally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStock Analysis Plugin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stock-analysis-plugin?style=directory)](https://allmcps.com/mcp/stock-analysis-plugin)
HTML Embed
<a href="https://allmcps.com/mcp/stock-analysis-plugin"><img src="https://allmcps.com/api/badge/stock-analysis-plugin?style=directory" alt="Stock Analysis Plugin on AllMCPs" /></a>