Skip to main content
Glama
ohadf2015

stoquant-mcp

by ohadf2015

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STOQUANT_DEVNoSet 1 to allow http:// base URLs (local dev only)0
STOQUANT_API_KEYYesYour StoQuant API key (free or Power tier)
STOQUANT_BASE_URLNoAPI base URLhttps://stoquant.com/api
STOQUANT_TIMEOUT_MSNoPer-request timeout30000
STOQUANT_RATE_LIMIT_RPMNoClient-side rate limit (req/min)200

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
stoquant_get_quoteA

Real-time quote for ONE ticker: last price, day change (absolute and percent), bid/ask, day high/low, and volume. Use for a single symbol; for 2+ symbols use stoquant_get_quotes_batch (one call, far fewer requests). Prices are delayed per the data vendor, not tick-by-tick.

stoquant_get_quotes_batchA

Current quotes for up to 50 tickers in a single call. Preferred over calling stoquant_get_quote in a loop — same data, one request, stays well under rate limits. Returns one quote object per ticker (price, change, volume).

stoquant_get_extended_quoteA

Quote plus computed technical indicators for one ticker: RSI(14), MACD, Bollinger Bands, and moving-average context. Use when you need momentum/overbought-oversold context, not just price. Heavier than stoquant_get_quote; can occasionally time out on cold cache — retry once if so.

stoquant_get_sparklinesA

Historical price series (~90 days) for up to 50 tickers, for charting or trend/return computation. interval controls granularity (1d daily, 1wk weekly, 1mo monthly). Returns an array of close prices per ticker, not full OHLCV.

stoquant_get_benchmarksA

Current performance of major index ETFs (SPY, QQQ, IWM, and peers): 1-day and year-to-date return. Use to frame an individual stock against the market. Early in the trading day the response may be {error:'Benchmarks not yet computed'} until the daily compute runs — treat that as 'not ready', not a failure.

stoquant_get_sector_performersA

Top and bottom performing stocks within a GICS sector, by recent return. Use to find what is leading or lagging inside a sector. sector must be a full GICS name (see stoquant_get_macro_dashboard sectorRotation for valid names), e.g. 'Technology', 'Health Care', 'Financials'.

stoquant_get_qscoreA

The Q-Score is StoQuant's headline 0-100 composite for a ticker, blending fundamentals, momentum/technicals, ML, analyst, and 'hidden gem' value dimensions on SECTOR-RESIDUALIZED forward returns (sector beta removed). Returns: score (0-100), signal ('strong_buy'|'buy'|'hold'|'sell'|'strong_sell'|'unrated'), per-dimension components (each with rawValue, normalizedScore, weight, and an available flag — unavailable dims contribute 0), confidence/confidenceInterval, dimensionContributions, a verdict and plainLanguage summary, and riskAlerts. This is the best single tool for 'is this a good stock right now'. period selects the scoring horizon. Note: early in the US trading day (before ~10am ET), the score may not yet be refreshed with intraday data — a null or empty score should be treated as 'not yet computed' rather than an error.

stoquant_get_signals_v2A

Returns both the raw Q-Score (originalQScore) and a stage/regime-adjusted variant (adjusted) for a ticker. Use this when you want the score adjusted for the stock's lifecycle stage and current market regime rather than the raw composite. For the full breakdown use stoquant_get_qscore.

stoquant_get_ml_predictionA

ML model's probability that the ticker will OUTPERFORM the S&P 500 over the horizon (NOT a buy/hold/sell call). Returns data.prediction with: probability (0-1, chance of outperformance), classification ('bull' = predicted to outperform, 'bear' = underperform), modelVersion, modelAuc, plainLanguage (headline/summary/topDrivers), and isHeuristic (true when the trained model is gated for distribution drift and a heuristic fallback is used — weight it less). Use stoquant_explain_ml_prediction for the feature-level 'why'. horizon is in trading days. Note: early in the US trading day (before ~10am ET), the prediction may not yet be refreshed with intraday data — a null or empty prediction should be treated as 'not yet computed' rather than an error.

stoquant_explain_ml_predictionA

Top feature contributions behind a ticker's ML outperformance prediction — which signals pushed the probability up or down, with signed magnitudes. Use after stoquant_get_ml_prediction when the user asks WHY the model is bullish/bearish. horizon must match the prediction you are explaining.

stoquant_get_strategic_edgesA

Qualitative competitive intelligence for a ticker: economic moats, structural weaknesses, upcoming catalysts, and peer comparison. Best for mid/small-caps; mega-caps and thinly-covered names may return {data:null} (no edges computed) — treat that as 'no data', not an error.

stoquant_get_quant_analyticsA

Quantitative analytics for a ticker under data: factor exposures, correlation/quality metrics, and risk decomposition. Use for portfolio-construction and factor-tilt questions. Complements stoquant_get_qscore (verdict) with the underlying quant detail.

stoquant_get_evidenceA

The named, two-sided evidence behind a ticker's Q-Score — the 'bull case vs bear case' as concrete facts rather than scores. Returns five grids (momentum, sentiment, earnings, valuation, risk), each with cells: every cell has a human-readable label (e.g. 'Price above 50-day average', 'Short interest'), a formatted value, and a tone ('bullish'|'bearish'|'neutral'|'unknown'). To assemble a balanced case, collect cells with tone 'bullish' (the bull case) and 'bearish' (the bear case) across all five grids. Use this AFTER stoquant_get_qscore when the user asks WHY the score is what it is, or wants the specific positives and negatives to weigh — it is the evidence layer the research page shows above the dimension breakdown.

stoquant_get_market_regimeA

Current market-regime classification from the Hidden Markov Model over S&P 500 returns: regime label (e.g. Bull/Range/Bear) and the probability vector across states. Use to set top-down context before stock-level calls. If the model reports it could not fit, probabilities fall back to roughly uniform — read that as 'regime undetermined', not a confident Range call.

stoquant_get_signal_accuracyA

Historical track record per signal type: an array of records with signalType, hitRate (0-1), totalObservations, avgReturnPercent, precision, and windowDays. Use to weight how much to trust a given signal before acting on it — prefer signals with high hitRate AND large totalObservations.

stoquant_get_accuracy_summaryA

Platform-wide model scorecard: letter grade, overall hitRate, sampleSize, top- vs bottom-quintile average 90-day returns and their spreadPp (the real edge), spyAvgReturn90d (Russell 2000 benchmark preferred via IWM/^RUT, SPY fallback), trend/trendDelta, a Wilson confidence interval, and dataSufficient. Use to gauge overall reliability of StoQuant's signals right now.

stoquant_get_top_convictionA

StoQuant's current highest-conviction names: the stocks with the strongest Q-Scores backed by multiple corroborating signals. Use as the starting point for 'what does the platform like right now'. May be empty between scans ({stocks:{}}).

stoquant_get_hidden_gemsA

Undervalued small-caps with confirming signals (the 'hidden gem' screen: low valuation, healthy balance sheet, low analyst coverage, plus momentum/ML/insider confirmation). Returns {gems:[...], totalCount, lastScanAt}. freshness filters by how recently a gem's signals fired. Use for value-oriented idea generation distinct from momentum.

stoquant_get_multibagger_candidatesA

Small/mid-caps flagged with high (>5x) upside potential: revenue acceleration, improving fundamentals, and pre-discovery setups. Higher risk/variance than hidden gems. Use for aggressive growth idea generation.

stoquant_get_related_stocksA

Find peers of a ticker under peers, each with qScore, quote, and market cap. by selects the relation: 'sector' (same sector), 'tag' (shared thematic tags), 'setup' (same technical setup firing), or 'correlation' (highest 60-day return correlation). Use to build a comparison set or find alternatives to a name.

stoquant_get_signal_accuracy_heatmapA

Hit-rate heatmap of signals over time/ticker for a date range — which signal types worked when. Use for backtest-style 'has this signal been reliable lately' questions. Dates are YYYY-MM-DD; omit for the default recent window.

stoquant_list_prebuilt_screensA

List the curated prebuilt screens with their id, name, and description. Available screens: 'undervalued-gems' (low P/E, P/B value plays), 'momentum-leaders' (strong price momentum), 'oversold-bounce' (RSI reversal setup), 'ml-outperform' (ML-predicted S&P 500 outperformance), 'hidden-gems' (small-cap value with confirmation signals), 'growth-explosion' (high-growth micro/mid-caps before discovery), 'pre-explosion' (multibagger pattern: revenue acceleration + insider + fundamentals). Call this first, then run one with stoquant_run_prebuilt_screen — it is faster and better-tuned than hand-built filters.

stoquant_run_prebuilt_screenA

Run one curated screen by its id (from stoquant_list_prebuilt_screens) and get the ranked matching stocks. Prefer this over stoquant_run_screener for common intents (value, momentum, oversold, ML picks, hidden gems, growth) — the filters are pre-tuned. universe defaults to sp500; use 'full' for the broadest set. Result count is fixed by the screen definition.

stoquant_run_screenerA

Run a custom stock screen. Read-only — nothing is mutated. All filters are AND-combined; returns an ARRAY of matching stocks (ticker, name, price, plus the requested metrics and overlays like valueScore/qScore/mlProbability). Valid filter fields (camelCase, case-sensitive): trailingPE, forwardPE, priceToBook, marketCap, epsTrailingTwelveMonths, dividendYield, bookValue, regularMarketPrice, fiftyDayAverage, twoHundredDayAverage, fiftyDayAverageChangePercent, twoHundredDayAverageChangePercent, regularMarketChangePercent, fiftyTwoWeekHighChangePercent, regularMarketVolume, averageDailyVolume3Month, sector, industry, rsi14, twentyDayAverageChangePercent, oneHundredFiftyDayAverageChangePercent, shortPercentOfFloat, grossMargins, operatingMargins, profitMargins, returnOnEquity, returnOnAssets, debtToEquity, revenueGrowth, earningsGrowth, pegRatio, currentRatio, numberOfAnalystOpinions. Additional sort-only fields: valueScore, qScore, marginOfSafety, mlProbability. Margins/growth are decimals (0.25 = 25%); marketCap is raw USD (250M = 250000000). An unknown field is rejected with a suggestion (it would otherwise silently return zero matches). For per-field units and typical ranges, read the stoquant://screener-fields resource. Tip: a full-universe scan can be slow and time out — prefer universe='sp500' and a handful of filters, or use stoquant_run_prebuilt_screen.

stoquant_get_insider_tradesA

Recent insider (Form 4) transactions for a ticker under data, plus a summary (net buy/sell counts and dollar value). Cluster buying by officers/directors — especially large dollar buys — is a notable bullish signal. Use to check whether insiders are accumulating or distributing.

stoquant_get_institutional_holdersA

Top institutional holders for a ticker: organization name, shares held, and percent ownership. Use to gauge institutional concentration and who the big holders are.

stoquant_get_institutional_ratingsA

Aggregated institutional sentiment for a ticker: holder additions vs reductions and a net signal direction. Use as a 'smart money' flow read distinct from analyst ratings.

stoquant_get_analyst_estimatesA

Sell-side analyst forward estimates for a ticker under data (per fiscal period: estimated EPS avg/high/low, estimated revenue avg/high/low, number of analysts) with a count. Use for consensus expectations and dispersion. Some future periods may have null estimates until coverage fills in.

stoquant_get_analyst_price_targetsA

Analyst price targets for a ticker with a consensus block (avgTarget, highTarget, lowTarget, numAnalysts) and the underlying data. Use to gauge implied upside/downside vs the current price and the dispersion of targets.

stoquant_get_analyst_changesA

Recent analyst rating changes for a ticker — upgrades, downgrades, reiterations, and initiations — with a 90-day action breakdown. Use to see the direction of sell-side revisions (momentum in sentiment), not just the static consensus.

stoquant_get_short_interestA

Short-interest history for a ticker: append-only snapshots plus a summary (latestFloat = % of float short, latestRatio = days-to-cover, and window deltas). Rising short interest with a price squeeze can signal a short squeeze; falling can signal covering. Use for crowded-short reads.

stoquant_get_insider_clusterA

Insider-buying cluster metrics for a ticker under data: distinctFilers14d, officerCount14d, purchaseCount90d, totalValue90d, clusterScore, and a clusterMomentum flag. Cluster buying by multiple insiders (especially officers, large dollar value) is a strong bullish signal — this scores it. Pairs with stoquant_get_insider_trades (the raw transactions).

stoquant_get_big_insider_buysA

Market-wide list of tickers with large recent insider purchases (default >= $1M) under items, each with the buy detail plus a current quote and Q-Score. Use for 'where are insiders putting real money right now' discovery across the whole market.

stoquant_get_macro_indicatorA

Latest values for one FRED macro series under data (recent observations) with a count. Common ids: DGS10 (10y Treasury yield), DGS2 (2y), T10Y2Y (10y-2y spread), UNRATE (unemployment), CPIAUCSL (CPI), VIXCLS (VIX), FEDFUNDS (fed funds). Use for a single specific indicator; for the full picture use stoquant_get_macro_dashboard.

stoquant_get_macro_dashboardA

Full top-down macro picture in one call: regime classification, key indicators, macroStress gauge, sectorRotation (which sectors are favored, with valid GICS sector names), forward calendar, and current themes. Best first call for 'what's the macro backdrop' before drilling into stocks.

stoquant_get_macro_calendarA

Forward (~14 day) economic calendar: scheduled releases with forecast, prior value, and expected market impact. Use to flag upcoming macro events (CPI, FOMC, jobs) that could move positions.

stoquant_get_macro_themesA

Current macro investment themes with their related sectors — the narrative layer (e.g. rate-cut beneficiaries, AI capex). Use for thematic idea generation that ties stocks to a macro thesis.

stoquant_get_sec_filingsA

Recent SEC filings for a ticker under items (with count/total), unioning the whole suite: 8-K events (with item labels like 'Item 2.02 Results of Operations'), NT-10K/Q late filings, 13D/13G activist/passive ownership, S-1/S-3/424B dilution, DEF 14A / Form 25 / Form 15 governance, and Form 144/3 insider intent. Each item has accession, formType, filedDate, category, and a human-readable label. Use to read the actual regulatory record behind a thesis.

stoquant_get_newsA

Recent news headlines for a ticker under items: each with publishedAt, headline, source/provider, category, and a sentiment label. Use for the latest narrative around a stock. For news plus filings plus earnings in one combined view, use stoquant_get_news_events.

stoquant_get_news_eventsA

Combined event view for a ticker under data: news (headlines), filings (SEC), and earnings (calendar). The single best call for 'what is happening with this stock' — recent coverage, regulatory activity, and upcoming/just-reported earnings together.

stoquant_get_social_sentimentA

Current social-media buzz for a ticker: totalMentions, recentPostCount24h, sentimentBreakdown (bullish/bearish/neutral), topPlatforms, and a sample of recentPosts. Use to read retail attention and crowd sentiment. Sources are credibility-weighted platform aggregates, not raw noise.

stoquant_get_social_trendA

Daily social mention-volume and sentiment trend for a ticker over the last ~30 days. Use to see whether attention and bullishness are building or fading, not just the current snapshot.

stoquant_get_trending_socialA

Most-mentioned tickers across social platforms in the last few hours, each with mentionCount, prevMentionCount, deltaPercent, velocityScore, bullishPct, and platforms. Use for market-wide 'what is retail talking about right now' discovery and early momentum.

stoquant_get_social_momentumA

Tickers with a sharp (2x+) surge in social mentions in the last hour vs the prior hour — the earliest social-momentum signal, with sentiment and a recent post snippet per name. Use to catch breakouts in attention before they are widely noticed.

stoquant_get_source_credibilityA

Leaderboard of social sources ranked by true directional accuracy (Wilson lower-bound on their calls). Use to judge how much weight to give a platform or author's sentiment — high-credibility sources earn more trust than raw mention volume.

stoquant_get_catalystsA

Upcoming and recent catalysts under data, each with ticker, type (e.g. earnings_soon, activist_stake, dilution, fda), date, label, direction (bullish/bearish/neutral), and source. Omit ticker for the market-wide feed; pass a ticker to filter to one name (may be empty if that stock has no tracked catalysts right now). Use to find date-driven, event-based opportunities.

stoquant_get_alt_signalsA

The full alternative-data dossier for a ticker in one call, under data. Aggregates 15 sources: sec8k (8-K event items + counts), secLate (NT-10K/Q late filings), sec13dg (13D/13G activist/passive ownership), secDilution (S-1/S-3/424B shelf + active-dilution flag), secGovernance (DEF 14A, Form 25 delisting, Form 15 deregistration flags), secInsiderIntent (Form 144/Form 3 counts), secS8 (employee stock plans), fdaEnforcement (Class I/II/III actions), cpscRecalls (consumer recalls), clinicalTrials (phase/recruiting — biotech), github (stars/forks/issues/push activity), appStore (iOS rank deltas), hackerNews (story velocity), gdelt (news tone). Sources with no recent activity for the ticker are null (e.g. clinicalTrials for a non-biotech). This is the platform's differentiated edge — use it to surface catalysts and red flags an ordinary data feed misses.

stoquant_get_alt_dataA

Generic cached alternative-data for a ticker under data, keyed by source: google_trends (search interest), wikipedia_pageviews (attention), options_iv (implied-vol metrics), openinsider (insider feed), edgar_8k. Each source carries its latest values and fetchedAt. Complements stoquant_get_alt_signals with retail-attention and options-positioning reads.

stoquant_get_catalyst_watchA

Cross-ticker hot list of the highest-impact near-term catalysts the platform is tracking (FDA decisions, activist stakes, dilution events, clinical readouts, etc.). Use for market-wide 'what's about to move' discovery, distinct from per-ticker stoquant_get_catalysts.

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_tickerDeep-dive one stock by chaining the Q-Score, ML, ownership, and edge tools into a single verdict.
explain_verdictExplain WHY a stock has its Q-Score using the named two-sided evidence, then cite how the score is computed. Mirrors the research page's verdict + methodology surface.
find_opportunitiesGenerate and vet a shortlist of ideas matching a style (value, momentum, growth, or hidden gems).
market_briefingTop-down snapshot: regime, macro backdrop, benchmarks, and what the platform likes.
compare_stocksSide-by-side quantitative comparison of two tickers — Q-Scores, ML predictions, evidence, and analyst upside — with a final head-to-head verdict.

Resources

Contextual data attached and managed by the client

NameDescription
glossaryDefinitions of Q-Score, ML outperformance, regimes, signal accuracy, tiers, and unit conventions. Read this to interpret tool outputs correctly.
methodologyHow scores are built: sector residualization, IC-weighting, ML health gating, screener field semantics, and data-freshness caveats.
screener-fieldsExact camelCase field names, operators, and per-field units/ranges for stoquant_run_screener. Read this before building a custom screen — an unknown or mis-cased field matches zero stocks.

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/ohadf2015/stoquant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server