Petros Trading Scanner MCP
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 for any symbol: action, confidence, thesis, strengths, risks |
| Full briefing with source attribution, confidence, news severity, portfolio notes |
Data sources (free/public)
Finviz — futures, breadth, snapshot, earnings API
Yahoo Finance — batch spark API for quotes/futures; individual chart fallback
Nasdaq — quote fallback when Yahoo is rate-limited (price, change %, volume)
Finviz snapshot — top gainers/losers/unusual volume/major news as secondary fallback
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: Yahoo batch → Nasdaq → Finviz snapshot → Yahoo individual. Each signal includes quoteSource, price, changePercent, and volume when available.
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: market-data-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. |
|
|
|
|
|
|
| Quote quality (0–100): fresh+validated=90, stale+validated=75, missing=50; +5 multi-source agree, −5 fallback-only |
|
|
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 — "fresh" only when futures, premarket, breadth, and all watchlist quotes are within the freshness window.
get_watchlist_signals returns an overall confidence (average of per-symbol quote confidence scores) and quoteDiagnostics showing Yahoo batch success vs fallback paths.
The tools return data, scores, and reasons only — not buy/sell recommendations. ChatGPT interprets the output; you make your own decisions.
Project structure
src/
index.ts
server.ts
mcp/
tools.ts
schemas.ts
services/
finviz.ts
marketwatch.ts
yahoo.ts
scoring.ts
marketData.ts
cache.ts
http.ts
types/
market.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
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