Skip to main content

MCP server for stock quotes and technical-analysis signals (RSI, MACD, SMA crossovers, portfolio digests) via Yahoo Finance

Project description

Portfolio Signals MCP

License: MIT

An MCP server that gives any AI coding agent (Claude Code, Cursor, Claude Desktop, etc.) real-time stock quotes and computed technical-analysis signals — RSI, MACD crossovers, golden/death crosses, and whole-portfolio weekly digests. Indicators are calculated in code, not by the LLM, so the numbers are right.

Data source: Yahoo Finance via yfinance — free, no API key required.

mcp-name: io.github.KhizarShabir1/portfolio-signals

Tools

Tool What it does
get_quote(ticker) Price, day change, volume, 52-week range
get_technical_signals(ticker) RSI(14) with overbought/oversold zone, MACD(12,26,9) vs signal line, SMA 50/200 golden/death cross
compare_tickers(tickers, period) Ranked total returns over 1mo–5y
weekly_digest(tickers) Whole-portfolio report: 1w/1mo returns, RSI, MACD position, tickers outside RSI 30–70

Design principle: tools return measurements and standard threshold classifications (RSI 70/30 zones, golden/death cross, MACD vs signal line) — never directional opinions or narrative summaries. Interpretation is the agent's job; determinism is the server's.

Quick start

No install needed if you have uv:

uvx portfolio-signals-mcp

Claude Code

claude mcp add portfolio-signals -- uvx portfolio-signals-mcp

Then ask Claude things like:

  • "What's the RSI and MACD on NVDA right now?"
  • "Compare AAPL, MSFT and VOO over 6 months."
  • "Give me a weekly digest for my portfolio: AAPL, NVDA, VOO, TSLA."

Cursor

Settings → Tools & MCP → Add a Custom MCP Server:

{
  "mcpServers": {
    "portfolio-signals": {
      "command": "uvx",
      "args": ["portfolio-signals-mcp"]
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "portfolio-signals": {
      "command": "uvx",
      "args": ["portfolio-signals-mcp"]
    }
  }
}

From source

git clone https://github.com/KhizarShabir1/portfolio-signals-mcp
cd portfolio-signals-mcp
pip install -e .
portfolio-signals-mcp           # stdio
portfolio-signals-mcp --http    # streamable HTTP on :8000 (PORT env to change)

Disclaimer

Informational only — not financial advice. Market data comes from Yahoo Finance and is subject to Yahoo's terms of use.

License

MIT © Khizar Shabir

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portfolio_signals_mcp-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portfolio_signals_mcp-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file portfolio_signals_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: portfolio_signals_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for portfolio_signals_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97ff42548cf506f0e55c064f817b476a60a47326ccdab2ca9f2bc10cc55aa901
MD5 bacd646cda22908b3392b9cde19d4999
BLAKE2b-256 83377ec1a10aac6e8939e75fc72062a5a8905fae03206c93c7b6cbf0ef341089

See more details on using hashes here.

File details

Details for the file portfolio_signals_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for portfolio_signals_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254c4c21c0b83eb4c4cb64e874b19137af05309419cb6ef605c9bffb5841a08e
MD5 81a4506aa6a6255e72f454f3da467242
BLAKE2b-256 541bced5fa38b76db9256494eb7835f5449db9db65f4f2f6e2d46a828a57c14c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page