Petros Trading Scanner MCP
Provides social sentiment analysis from Reddit, including OAuth or public API access, to gauge market sentiment for stocks and ETFs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Petros Trading Scanner MCPShow me today's market briefing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Petros Trading Scanner MCP
Read-only Model Context Protocol (MCP) server for short-term stock and ETF market research. It helps ChatGPT analyze futures, premarket movers, market breadth, sector strength, earnings, watchlist signals, and daily briefings.
This server does not place trades. Trade execution is handled separately (e.g. Robinhood). It does not store personal data or broker credentials.
Features
Tool | Description |
| Nasdaq 100, S&P 500, Dow, Russell 2000, crude, gold, Bitcoin |
| Leaders, laggards, most active (MarketWatch → Yahoo → Finviz fallback) |
| Finviz advancing/declining, highs/lows, SMA50/SMA200 |
| Homepage-style snapshot: movers, news, headlines, breadth, futures |
| Upcoming earnings (Finviz API) |
| Transparent 0–10 scores, bias, reasons, risk flags |
| Sector score, bias, confidence, leaders/laggards for 11 semi names (SOXL workflow) |
| Single-position review: action, confidence, thesis, strengths, risks — plus market bias, sector strength, watchlist signal, and account P/L |
| Aggressive trade setup: entry/stop/targets, risk/reward, catalysts, suggested action (research framework) |
| Account-aware plan: holdings, concentration risk, trim/hold lists, top trades, session plan |
| Rank watchlist by near-term opportunity with triggers and stops |
| “Should I act now?” — per-symbol intraday decisions after market open |
| Highest-conviction short-term candidates with transparent sub-scores and optional rotation plan |
| OHLCV history with SMA summary via yfinance (free, 15-min delay) |
| Intraday OHLCV at 1m/5m/15m with trend, volume spike, and reversal detection |
| Check price alert conditions (above/below, % change, volume spike) against intraday quotes |
| Reddit (OAuth or public API) + StockTwits (+ optional Twitter via Apify) social buzz |
| Ranked options trade candidates with delta, breakeven, theta, and RR score |
| IV rank / percentile vs 52-week HV — cheap vs expensive options environment |
| Black-Scholes P&L matrix across price and date scenarios before trading |
| RSI, MACD, Bollinger Bands, volume ratio with interpretation hints |
| All 11 S&P 500 sector ETFs ranked by today's performance with rotation theme |
| Recent ticker news with per-article sentiment and overall sentiment score |
| Unusual options activity via Unusual Whales API, or yfinance fallback (volume/OI scan) for single symbols |
| Full briefing with source attribution, confidence, news severity, portfolio notes |
Data sources (free/public)
Finviz — futures, breadth, snapshot, earnings API
Finnhub — optional primary quotes when
FINNHUB_API_KEYis setAlpha Vantage — optional quotes when
ALPHA_VANTAGE_API_KEYis setUnusual Whales — optional options flow when
UNUSUAL_WHALES_API_TOKENis set (paid API)Nasdaq — quote provider (price, change %, volume)
Yahoo Finance — spark batch only when not rate-limited (30 min cooldown after HTTP 429)
MarketWatch — premarket movers (often blocked on cloud hosts with HTTP 401)
Yahoo Finance screeners — day gainers/losers/actives when MarketWatch is blocked
Caching: 5 minutes for market data, 15 minutes for daily briefings.
Watchlist quotes resolve in order: Finnhub → Alpha Vantage → Nasdaq → Yahoo (if not rate-limited) → Finviz. Yahoo is skipped for 30 minutes after HTTP 429. Check quoteDiagnostics.rateLimitedSources to see active blocks.
Note: MarketWatch frequently returns HTTP 401 from Heroku and other cloud servers due to bot protection. The server automatically falls back to Yahoo Finance, then Finviz. To skip MarketWatch entirely, set MARKETWATCH_ENABLED=false in Heroku config vars.
Related MCP server: etfedge-mcp
Local development
Prerequisites
Node.js 20+
npm
Setup
git clone <your-repo-url>
cd mcp-trading
cp .env.example .env
npm install
npm run devServer starts on http://localhost:3000 by default.
Health:
GET /healthMCP:
POST /mcp(Streamable HTTP)
Scripts
Script | Purpose |
| Development with hot reload ( |
| Compile TypeScript to |
| Run production build |
Optional API key
Set MCP_SERVER_API_KEY in .env. When set, all /mcp routes require:
Authorization: Bearer <your-key>Deploy to Heroku
heroku create petros-trading-scanner
heroku config:set MCP_SERVER_API_KEY=your-secret-key
git push heroku mainHeroku sets PORT automatically. The app binds to 0.0.0.0 and uses process.env.PORT.
Verify deployment:
curl https://petros-trading-scanner.herokuapp.com/healthConnect to ChatGPT Developer Mode
Deploy the server (Heroku or another HTTPS host).
In ChatGPT → Settings → Connectors / Developer Mode, add a custom MCP server.
Use your public MCP URL, for example:
https://petros-trading-scanner.herokuapp.com/mcp
If you configured
MCP_SERVER_API_KEY, add the Bearer token in the connector auth settings.
The server implements Streamable HTTP (POST /mcp) compatible with ChatGPT Apps / Developer Mode.
Example prompts
"Use my Trading Scanner MCP to get today's daily briefing."
"Check futures and premarket movers."
"Analyze SOXL based on semiconductor strength."
"Give me a market bias for today."
"Run semiconductor strength for my SOXL workflow."
"Run watchlist signals for SOXL, MU, NVDA, AMD, AVGO, INTC, MRVL, WDC."
"Review my SOXL position — cost basis $50, current value $51.17."
"Review my AAPL position — cost basis $180, current value $195."
Example: position review tool input
Works for any stock or ETF (SOXL, NVDA, AAPL, TQQQ, etc.):
{
"symbol": "SOXL",
"costBasis": 50,
"currentValue": 51.17
}Expected shape (values vary with live market data):
{
"action": "hold",
"confidence": 76,
"thesis": "Semiconductor sector remains strong despite weak futures.",
"strengths": ["..."],
"risks": ["..."]
}Example: daily briefing tool input
{
"focusSymbols": ["SOXL", "MU", "NVDA", "AMD", "AVGO", "INTC", "MRVL", "WDC"],
"portfolioContext": "Holding SOXL from starter account",
"positions": [
{
"symbol": "SOXL",
"costBasis": 50,
"currentValue": 51.17
}
]
}The briefing now includes:
sources.futuresSource,sources.premarketSource,sources.breadthSource, etc.confidence(0–100) alongsidemarketBiasnews[]withimpact(high|medium|low) andsentimentportfolioNotes[]with thesis status per positionsemiconductorStrengthsummary block
Scoring (transparent, not advice)
Market bias uses:
Nasdaq 100 futures ±0.5%
S&P 500 futures ±0.3%
Advancing/declining breadth above 55%
Confidence (0–100) increases as the bias score moves away from neutral and more signals agree. Example: marketBias: "bearish" with confidence: 72 = moderately-to-strongly bearish, not a mild lean.
Semiconductor strength tracks NVDA, AMD, MU, AVGO, INTC, MRVL, WDC, TSM, AMAT, LRCX, SMCI. Strong if 5+ are positive premarket or in major news.
SOXL scoring considers semiconductor strength + Nasdaq futures direction. Leveraged ETF risk flags are always included.
Quote verification
Watchlist signals and semiconductor strength include extra fields so you can sanity-check prices:
Field | Meaning |
| Last regular (or premarket) sale from Yahoo/Nasdaq |
| Prior session close used to compute change % |
| Derived from |
| ISO timestamp of the quote (when available) |
| e.g. |
|
|
|
|
| Current US session: |
| Minutes between |
| Human-readable explanation of the freshness classification |
| Per-provider debug: |
|
|
| Primary+Nasdaq agreement=95, partial agreement=85, Nasdaq only=70, Finviz only=55 |
|
|
Parser note: Nasdaq quotes use primaryData.lastSalePrice — not market cap, 52-week high, or volume. If a price looks wrong, check previousClose and asOf: when change % looks realistic but the level seems off, the upstream feed (Yahoo/Nasdaq) may be reporting a different session or a forward-dated close. Cross-check with your broker.
Daily briefings also include top-level dataFreshness — aggregated from futures, premarket, breadth, and watchlist quotes (stale if any quote is stale; closed_session when all quotes reflect the last completed session).
get_watchlist_signals returns overall confidence, quoteDiagnostics (including rateLimitedSources and providersAttempted).
get_position_review
Combines market bias, semiconductor sector strength (when relevant), watchlist scoring, and optional account data into a single position review.
Input:
{
"symbol": "SOXL",
"costBasis": 50,
"currentValue": 51.17,
"portfolioContext": "Core semi swing position, 3–5 day hold"
}Output highlights:
action—hold,add,trim, orexit(research framing, not a trade order)confidence— weighted from quote quality, watchlist score, market bias, and sector strengthaccount— cost basis, current value, P/L %, optional contextmarketBias— bullish/neutral/bearish with confidence and reasons (futures + breadth)sectorStrength— semiconductor sector score when symbol is semi-related; otherwiseapplicable: falsewatchlistSignal— full symbol score (0–10), bias, reasons, risk flags, quote metadata
The tools return data, scores, and reasons only — not buy/sell recommendations. ChatGPT interprets the output; you make your own decisions.
Aggressive trading tools (research framework)
All tools include timestamps, data sources, disclaimers, and quote freshness warnings. The MCP does not fetch broker data — pass accountContext from the ChatGPT Robinhood connector.
Tool | Purpose |
| Top conviction candidates (0–100) with sub-scores, entry/stop/targets, rotation plan |
| One-symbol setup: entry zone, stop, targets, R/R, catalysts |
| Rank symbols by |
| Post-open go/no-go with |
| Account plan from |
ChatGPT Robinhood connector workflow
The MCP is read-only and does not log into Robinhood. Use ChatGPT’s built-in Robinhood connector to fetch account data, then pass it into MCP tools:
Use ChatGPT Robinhood connector → get accounts, buying power, equity positions, option positions.
Build an
accountContextobject (see example below).Call MCP tools with that context:
get_best_trades_todayget_portfolio_trade_planget_intraday_decision_checkget_trade_setup(optional per-symbol context)
Example accountContext:
{
"accountValue": 90.04,
"buyingPower": 0,
"equityPositions": [
{
"symbol": "SOXL",
"shares": 0.182748,
"averageCost": 273.60,
"currentValue": 40.00,
"marketValue": 40.00
},
{
"symbol": "AMD",
"shares": 0.095706,
"averageCost": 522.43,
"currentValue": 50.00,
"marketValue": 50.00
}
],
"optionPositions": []
}Example: get_best_trades_today
{
"timeframe": "intraday",
"riskTolerance": "aggressive",
"maxResults": 10,
"accountContext": { "...": "..." }
}Conviction scoring (get_best_trades_today): weighted sub-scores (momentum 20%, relative strength 15%, volume 15%, catalyst 15%, trend 10%, risk/reward 10%, liquidity 5%, market alignment 10%) → convictionScore 0–100.
Run tests: npm test
Project structure
src/
index.ts
server.ts
mcp/
tools.ts
schemas.ts
services/
finviz.ts
marketwatch.ts
yahoo.ts
scoring.ts
marketData.ts
tradeAnalysis.ts
bestTradesToday.ts
tradingContext.ts
tradingTools.ts
portfolio.ts
cache.ts
http.ts
types/
market.ts
trading.ts
utils/
parseNumber.ts
logger.ts
quoteValidation.ts
newsAnalysis.ts
dataFreshness.ts
quoteConfidence.tsDisclaimer
Development note: This is a research assistant only. It does not provide financial advice and does not place trades. Market data may be delayed or incomplete. Always verify quotes and consult your own judgment before trading.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/peter21476/petros-trading-scanner-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server