Quality Screener MCP Server
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., "@Quality Screener MCP Serverscreen for stocks with quality score above 80"
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.
Quality Screener MCP server
A standalone Model Context Protocol (MCP) server that exposes the Quality Screener stock-screening engine as tools for AI agents (Claude, Cursor, and any other MCP client).
Once connected, an agent can screen and filter the scored universe, compute custom quality scores, inspect score history, manage saved scoring systems, and generate shareable screen links — acting as the signed-in user, against the same data they see in the web dashboard.
No SDK dependency. The server is a thin HTTP layer over the public Quality Screener API. It has no dependency on the backend Python package — every tool just calls a REST endpoint and returns the JSON payload.
Multi-tenant & credential-free. When deployed over HTTP the server stores no credentials of its own. Each request carries the caller's own access token, which the server forwards to the API, so a single public deployment can serve many users without ever acting on a shared account.
Table of contents
Related MCP server: Rozkoduj MCP
How it works
┌─────────────┐ MCP (stdio | streamable-HTTP) ┌──────────────────┐ HTTPS ┌──────────────────────┐
│ AI agent │ ────────────────────────────────► │ qscreener-mcp │ ────────► │ Quality Screener API │
│ (MCP client)│ ◄──────────────────────────────── │ (this server) │ ◄──────── │ (FastAPI backend) │
└─────────────┘ tool calls / JSON └──────────────────┘ REST └──────────────────────┘Each MCP tool maps to one Quality Screener REST endpoint. The server attaches
the caller's bearer token to every outbound request (header
X-Stobot-CLI-Token, Authorization: Bearer … also accepted) and returns the
decoded JSON. There is no business logic in the server itself — it is a typed,
authenticated façade over the API.
It runs in two transport modes:
Transport | Use | Authentication |
| A local agent (e.g. Claude Code) launches the server as a subprocess | Token from |
| A remote, externally reachable deployment (e.g. Railway) | End-to-end MCP OAuth 2.0 — the client opens the browser once, then sends the token automatically; or a per-request |
Over HTTP the MCP endpoint is served at /mcp.
Quick start (remote)
The easiest way to use the server is to point your MCP client at the hosted deployment. No token to copy — the client triggers a browser sign-in on first connect:
{
"mcpServers": {
"qscreener": {
"type": "streamable-http",
"url": "https://mcp.qualityscreener.io/mcp"
}
}
}On first use your browser opens the Quality Screener sign-in page. Approve once, and the agent stays connected. You need a Quality Screener account; the agent inherits exactly your access.
Running locally
Requires uv.
# Install dependencies
uv sync
# stdio — for a local agent that launches this as a subprocess
uv run qscreener-mcp
# streamable-HTTP — mirrors the remote deployment
QSCREENER_MCP_TRANSPORT=streamable-http QSCREENER_MCP_PORT=8080 \
QSCREENER_API_URL=http://localhost:8001 \
uv run qscreener-mcp
# -> MCP endpoint at http://localhost:8080/mcpWith Docker:
docker build -t qscreener-mcp .
docker run --rm -p 8080:8080 \
-e QSCREENER_API_URL=https://your-backend.example.com \
-e QSCREENER_MCP_PUBLIC_URL=http://localhost:8080 \
qscreener-mcp
# -> MCP endpoint at http://localhost:8080/mcpBy default the container runs the streamable-http transport on port 8080.
Configuration
All configuration is via environment variables, resolved at startup.
Env var | Default | Meaning |
|
| Base URL of the Quality Screener backend API the tools call |
|
|
|
|
| Web-app base URL used to build the OAuth browser-login link and shareable screen URLs |
|
| Publicly reachable base URL of this server; used to build the OAuth callback URL |
| — | Bind port for HTTP transports (Railway sets this automatically) |
|
| Bind port fallback when |
|
| Bind host for HTTP transports |
| — | Bearer-token override for stdio mode (single user) |
|
| Directory holding |
Authentication
The server resolves a bearer token for each call with the following precedence:
HTTP request header —
X-Stobot-CLI-Token, thenAuthorization: Bearer <token>.$QSCREENER_TOKENenvironment variable.$QSCREENER_CONFIG_DIR/credentials.json— thetokenfield.
Remote (OAuth 2.0)
For a streamable-http deployment, authentication is fully automated via the
MCP OAuth flow:
The MCP client discovers the authorization server and opens the user's browser.
The browser lands on the Quality Screener web app, which exchanges the user's web session for a short-lived CLI token and redirects back to this server's
/oauth/callback.The server hands the token to the MCP client, which sends it as a bearer token on every subsequent request.
The token is validated on each request by calling the backend's
/v1/cli/auth/whoami endpoint, so a revoked or expired token is rejected
immediately. The server never persists user tokens.
Local (stdio)
Mint a token through the browser login flow and store it locally, then run the server over stdio:
qscreener auth login # opens the web app, stores a token
cat ~/.config/qscreener/credentials.json # the "token" field is your bearer tokenOr set QSCREENER_TOKEN directly for CI / scripted use.
Tools
All tools require authentication. Filters use OR logic within a filter and AND logic across filters. Market caps are always in USD.
Account & status
Tool | Signature | Description |
|
| Whether a token is present and which user it authenticates as. |
|
| The signed-in user's profile (email, username, organization). |
|
| API and database health check. |
Scores & screening
Tool | Signature | Description |
|
| Top tickers by quality score, as a |
|
| List scored tickers with optional filters. |
|
| Full score row(s) for a single ticker. |
|
| Current scores for a specific list of tickers, under default scoring or a saved scoring system. Unknown tickers are omitted. |
|
| Min / max / average score statistics for a filtered universe. |
|
| Aggregated total market cap (USD) for a filtered universe. |
|
| Compute custom scores from a |
Sharing
Tool | Signature | Description |
|
| Persist a |
Filters & tickers
Tool | Signature | Description |
|
| Available filter values (sectors, industries, countries, currencies, exchanges). |
|
| Available tickers, optionally truncated to |
|
| Search available tickers by case-insensitive substring. |
Score history
Dates are YYYY-MM-DD. Pass scoring_system_id to compute history against a
saved scoring system instead of the default quality score.
Tool | Signature | Description |
|
| Score history for a single ticker over a date range. |
|
| Score history for several tickers at once. |
|
| Fetch the current top-N tickers and return their score history. |
Saved scoring systems
A scoring system is a named, reusable CustomScoreConfig stored against your
account.
Tool | Signature | Description |
|
| List your saved scoring systems. |
|
| Show a saved scoring system by ID. |
|
| Create a saved scoring system from a config object. |
|
| Update a saved scoring system. |
|
| Delete a saved scoring system. |
|
| Apply a saved scoring system (increments its usage count). |
Working with CustomScoreConfig
score_compute, screen_share, and the systems_* tools accept a
CustomScoreConfig object describing how to weight financial metrics. Its shape
mirrors the score builder in the web dashboard: weighted metric groups, each
containing weighted metrics, plus scoring parameters and an optional nested
filters block. A minimal example:
{
"name": "My quality screen",
"winsorizePercentile": 5,
"missingDataPercentile": 0.25,
"normalizeGroupZScores": false,
"includeDuplicatesInScoring": false,
"groups": [
{
"id": "returns",
"name": "Returns",
"weight": 0.5,
"metrics": [
{ "id": "roe", "name": "ROE", "weight": 0.5 },
{ "id": "roic", "name": "ROIC", "weight": 0.5 }
]
},
{
"id": "profitability",
"name": "Profitability",
"weight": 0.5,
"metrics": [
{ "id": "profit_margin", "name": "Profit Margin", "weight": 1.0 }
]
}
],
"filters": { "countries": ["Italy"], "min_market_cap": 1 }
}Scoring parameters use camelCase: winsorizePercentile (1-10), missingDataPercentile
(0.1-0.5), normalizeGroupZScores and includeDuplicatesInScoring (booleans). Universe
filters go inside the nested filters block (market caps in billions USD). Loose
inputs — snake_case keys, the legacy winsorize/zScore flags, or filter keys placed at
the top level — are normalized to this shape automatically, but emitting it directly is
preferred. Use filters_list to discover valid filter values, and build a config
interactively in the dashboard if you want a starting point to copy.
Connecting an MCP client
Remote (recommended)
Any streamable-http MCP client works. No token needed — OAuth handles login:
{
"mcpServers": {
"qscreener": {
"type": "streamable-http",
"url": "https://mcp.qualityscreener.io/mcp"
}
}
}If your client cannot perform the OAuth flow, send a minted token directly:
{
"mcpServers": {
"qscreener": {
"url": "https://mcp.qualityscreener.io/mcp",
"headers": { "X-Stobot-CLI-Token": "<your token>" }
}
}
}Local (stdio)
{
"mcpServers": {
"qscreener": {
"command": "uv",
"args": ["run", "--directory", "/path/to/quality-screener-mcp-server", "qscreener-mcp"],
"env": { "QSCREENER_API_URL": "https://your-backend.example.com" }
}
}
}Deployment
The server deploys as a single container. On Railway:
New service → Deploy from repo, pointing at this repository. The Dockerfile is self-contained, so the build context is the repo root.
Set environment variables:
QSCREENER_MCP_TRANSPORT=streamable-httpQSCREENER_API_URL=https://<your-backend-domain>QSCREENER_WEBSITE_URL=https://<your-frontend-domain>QSCREENER_MCP_PUBLIC_URL=https://<generated-mcp-domain>
Railway injects
PORTautomatically; the server binds to it.Networking → Generate Domain. The MCP endpoint is
https://<generated-domain>/mcp.Leave the HTTP healthcheck path unset (or use a TCP check):
/mcpanswers406 Not Acceptableto a plainGET, so an HTTP healthcheck expecting200would mark the deploy unhealthy.
Connect your MCP client — the OAuth flow triggers automatically on first connection.
Development
uv sync # install dependencies (including dev)
uv run pytest # run the test suiteThe codebase is small and self-contained:
Path | Purpose |
| FastMCP server, tool definitions, transport entry point |
| Minimal httpx client that attaches the bearer token |
| MCP OAuth 2.0 provider (token validation, browser flow) |
| pytest suite (token resolution, filter forwarding, share-link building) |
License
MIT © Quality Screener.
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.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides comprehensive stock screening capabilities through Yahoo Finance. Enables LLMs to screen stocks based on technical, fundamental, and options criteria, with support for watchlist management and result storage.Last updated46MIT

Rozkoduj MCPofficial
AlicenseAqualityAmaintenanceProvides AI assistants with market screening, analysis, and scoring across stocks, crypto, and forex, enabling natural language queries for trading insights.Last updated4MIT- Alicense-qualityAmaintenanceProvides derived financial intelligence for AI agents, including insider activity analysis, earnings surprises, institutional moves, stock screening with a proprietary composite value score, and macro indicators.Last updatedMIT
- AlicenseAqualityBmaintenanceEnables AI agents to analyze stocks, screen markets, compare peers, read earnings calls, and track sector rotations using live financial data from Financial Modeling Prep.Last updated21PolyForm Noncommercial 1.0.0
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Analytical engine for US-listed equities: screens, rankings, and event studies in plain English.
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/quality-screener/quality-screener-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server