Logo vun screener-mcp

screener-mcp

Communautéit
LogeshR15

Indian Stock Research MCP server — turn Claude into a personal equity analyst powered by live Screener.in data

EditeurLogeshR15
Repositoryscreener-mcp
SproochPython
Forks
11
Stären
13
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    screener-mcp stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    13 Stären an 11 Forks aus dem verlinkte Repository.

screener-mcp

An MCP (Model Context Protocol) server that gives Claude live access to Screener.in, NSE, and MCX data — turning Claude into a research assistant for Indian stocks.

PyPI Python CI License: MIT

Report an issue · LinkedIn · logeshl2003@gmail.com

screener-mcp connects Claude (Claude Code, Claude Desktop, or any MCP client) to Indian equity data: company financials, stock screening, annual reports, earnings calls, corporate announcements, and a local portfolio tracker. Point Claude at a company or a screen, and it does the research using real, current data instead of its training-data knowledge of the stock.


What you can do

"Compare ITC and HUL on all key ratios"
"Find low-debt, high-ROCE chemical stocks"
"Summarize the key risks from Reliance's 2024 annual report"
"What did TCS management say about margins in Q3FY25?"
"What are the red flags in Asian Paints?"
"Show me recent NSE announcements for HDFCBANK"
"Find recent bulk deals in a stock"
"Track my portfolio and show live P&L"
"Save a research note on TITAN — strong Q3, watch margins"

Quick start

Requires uv — pip install uv or brew install uv.

bash
claude mcp add screener -s user -- uvx --from 'screener-mcp[ai]' screener-mcp

This installs the full server, including document analysis (annual reports, earnings calls). If you only need company research and stock screening, drop the extra for a much lighter install:

bash
claude mcp add screener -s user -- uvx screener-mcp

Core vs. [ai]: the base package covers company data, screening, NSE announcements, and portfolio tracking. The [ai] extra adds pdfplumber, chromadb, and sentence-transformers (~1–2GB, via torch) to power analyze_annual_report, analyze_earnings_call, ask_company_research, and search_market_commentary. Without it, those four tools return a "not installed" error — everything else works normally.

Using Claude Desktop instead of Claude Code? See Claude Desktop setup.


Verify it works

bash
claude mcp list
# screener  stdio  Connected

Then try a few prompts in Claude:

"Search for Asian Paints"
"Give me the company overview for TCS"
"List the pre-built screening themes"

If these return real data, the server is working end to end.


What it provides

  • Company research — financials, ratios, shareholding, peer comparison, red-flag detection (no login required)
  • Stock screening — custom Screener.in-style queries and pre-built thematic screens (requires a free Screener.in login)
  • Document analysis — ask questions over annual reports and earnings call transcripts using a local RAG pipeline
  • Corporate events — NSE announcements, bulk deals, promoter pledge trends, credit ratings
  • Market & research — commodity price context, local research notes
  • Portfolio — a private, local holdings tracker with live P&L

30 tools in total — full reference below.


Example workflows

  • Compare companies — "Compare ITC and HUL on all key ratios" → compare_companies
  • Screen for opportunities — "Find low-debt, high-ROCE small caps" → screen_by_theme or screen_stocks
  • Read an annual report — "What are the key risks in Reliance's 2024 annual report?" → analyze_annual_report
  • Read an earnings call — "What did TCS say about margins in Q3FY25?" → analyze_earnings_call
  • Spot red flags — "What are the red flags in Asian Paints?" → analyze_red_flags
  • Track NSE activity — "Show recent announcements for HDFCBANK" → get_company_announcements
  • Research bulk deals — "Any recent bulk deals in TITAN?" → get_bulk_deals
  • Track a portfolio — "Add 10 shares of INFY at ₹1500 to my portfolio" → add_portfolio_stock
  • Save research — "Save a note on TITAN — strong Q3, watch margins" → notebook_ai

Architecture

Claude (Code / Desktop)
        │  MCP
        ▼
  screener-mcp
        │
        ├──► Screener.in   (financials, ratios, screening)
        ├──► NSE India     (announcements, bulk deals, filings)
        └──► MCX India     (commodity prices)
        │
        ▼
  Research data (parsed, cached, indexed)
        │
        ▼
  Claude reasons over the data and answers

screener-mcp fetches and normalizes the data; Claude does the analysis and explains it in plain language.


Installation options

Recommended

bash
# Full install (company research, screening, documents, everything)
claude mcp add screener -s user -- uvx --from 'screener-mcp[ai]' screener-mcp

# Lightweight install (skip document analysis)
claude mcp add screener -s user -- uvx screener-mcp

Claude Code

Use the claude mcp add commands above. Confirm with claude mcp list.

Claude Desktop

Claude Desktop doesn't read claude mcp add — edit its config file directly.

1. Install uv if needed: brew install uv (or pip install uv)

2. Open the config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

(In the app: Settings → Developer → Edit Config.)

3. Add the screener server:

json
{
  "mcpServers": {
    "screener": {
      "command": "uvx",
      "args": ["--from", "screener-mcp[ai]", "screener-mcp"],
      "env": {
        "SCREENER_USERNAME": "your@email.com",
        "SCREENER_PASSWORD": "yourpassword"
      }
    }
  }
}

Claude Desktop does not inherit your shell environment, so credentials must go in the "env" block here — see Credentials. Leave "env" out entirely if you only want the no-login company-research tools.

spawn uvx ENOENT on launch? Claude Desktop starts with a minimal PATH. Run which uvx and use the absolute path (e.g. /opt/homebrew/bin/uvx) as "command".

4. Quit Claude Desktop completely (Cmd+Q on macOS) and reopen it.

5. Check the tools icon in the message composer — screener should list its 30 tools. Then ask: "Search for Asian Paints".

Server not showing up? Check Settings → Developer for its status, and the logs at ~/Library/Application Support/Claude/logs/mcp-server-screener.log (macOS) or %APPDATA%\Claude\logs\ (Windows). Invalid JSON — often a stray trailing comma — makes Claude Desktop skip every server silently.

pip / PyPI

The package is published on PyPI as screener-mcp. uvx (above) runs it without a persistent install; to install it into an environment instead:

bash
pip install screener-mcp          # core
pip install "screener-mcp[ai]"    # with document analysis

Then run it directly, or point claude mcp add at the screener-mcp entry point it installs.

Developer (local clone)

bash
git clone https://github.com/LogeshR15/screener-mcp
cd screener-mcp
python3.11 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e .

claude mcp add screener -s user -- \
  $(pwd)/.venv/bin/python3.11 \
  $(pwd)/run_server.py

Any Python 3.11+ works — e.g. python3.12 -m venv .venv — just point claude mcp add at that interpreter. pip install -e . failing with "editable mode currently requires a setuptools-based build"? Upgrade pip in the venv first (as above), then retry.

Already cloned it and using Claude Desktop? Point the config at your venv interpreter instead of uvx:

json
{
  "mcpServers": {
    "screener": {
      "command": "/absolute/path/to/screener-mcp/.venv/bin/python3.11",
      "args": ["/absolute/path/to/screener-mcp/run_server.py"]
    }
  }
}

Advanced: HTTP and Docker

For remote/network deployment rather than a local stdio process, see Remote HTTP server and Docker below.


Credentials

CapabilityNeeds Screener.in login?
Company research (financials, ratios, shareholding, peers, red flags)No
Stock screening (screen_stocks, screen_by_theme)Yes
NSE announcements, bulk deals, credit ratings, commoditiesNo
Document analysis, notebook, portfolioNo

To enable screening:

1. Register free at screener.in/register

2. Claude Code / manual runs — add to ~/.zshrc or ~/.bashrc, then reload (source ~/.zshrc) and restart Claude Code:

bash
export SCREENER_USERNAME="your@email.com"
export SCREENER_PASSWORD="yourpassword"

3. Claude Desktop — it does not read your shell profile, so the same two values must go in the "env" block of claude_desktop_config.json (see Claude Desktop setup):

json
"env": {
  "SCREENER_USERNAME": "your@email.com",
  "SCREENER_PASSWORD": "yourpassword"
}

Never commit real credentials — the values above are placeholders.


Tools — 30 total

Grouped by category. See Example workflows for the ones you'll reach for most.

Company Research

ToolWhat it doesLogin needed
search_companyFind company by name or symbolNo
get_company_overviewKey ratios, price, 52W range, aboutNo
get_financialsP&L / Balance Sheet / Cash Flow / RatiosNo
get_quarterly_resultsLast 8 quarters of resultsNo
get_shareholding_patternPromoter / FII / DII holding trendNo
get_peer_comparisonSector peer comparison tableNo
compare_companiesSide-by-side comparison (2–5 stocks)No
compare_stocks_uiInteractive dashboard (Claude Desktop)No
get_full_analysisAll data combined for deep analysisNo
analyze_red_flagsStructured red flag detectionNo
explain_for_beginnersPlain-language company explainerNo

Stock Screening

ToolWhat it doesLogin needed
screen_stocksCustom Screener.in queryYes
screen_by_themePre-built thematic screensYes
list_investment_themesShow all available themesNo

Document Analysis

ToolWhat it doesExtra deps needed
get_document_listList annual reports & earnings call transcriptsNo
analyze_annual_reportAsk any question over one annual report PDFYes
analyze_earnings_callAsk any question over one earnings call transcriptYes
ask_company_researchAsk a question across ALL of a company's cached documents at once (multiple years/quarters)Yes
search_market_commentarySearch a question across multiple companies' already-indexed documents at onceYes

ask_company_research and search_market_commentary build on the same cache — the former indexes a company's recent documents and searches across them together (good for "how has X changed over time?"); the latter searches only what's already indexed across several symbols (good for "which of these companies mentioned Y?").

Corporate Events

ToolWhat it doesLogin needed
get_company_announcementsNSE corporate announcements with category filterNo
search_shareholderFind investor activity via NSE bulk dealsNo
get_bulk_dealsAll NSE bulk deals for one company — no investor name neededNo
get_promoter_pledge_historyDedicated promoter pledge % trend with severity flagNo
get_credit_ratingsCRISIL/ICRA/CARE/India Ratings rating actions — a debt-quality checkNo

Market & Research

ToolWhat it doesLogin needed
get_commodity_pricesCommodity price context + impacted companiesNo
notebook_aiSave, read, and AI-summarize research notes locallyNo

Portfolio

ToolWhat it doesLogin needed
add_portfolio_stockAdd/merge a holding into your local portfolio (quantity-weighted avg cost)No
update_portfolio_stockOverwrite quantity/avg price on an existing holding (partial sell, cost correction)No
remove_portfolio_stockRemove a holding entirelyNo
get_portfolioView holdings with live price, P&L (₹ and %), and weightNo

Stored locally at ~/.screener-mcp/portfolio.json — no account, no external service, nothing leaves your machine.


Document analysis

Document analysis ([ai] extra) uses a local RAG pipeline:

analyze_annual_report("TCS", 2024, "What are the key risks?")

  1. Fetch PDF link from Screener.in / NSE
  2. Download and parse with pdfplumber
  3. Chunk into 500-word overlapping segments
  4. Embed with sentence-transformers (runs locally, no API key needed)
  5. Store in ChromaDB (~/.screener-mcp/chroma_db/)
  6. Semantic search returns top-5 relevant excerpts
  7. Claude reasons over the excerpts to answer your question

Results are cached — the same report is never re-downloaded or re-processed.


Stock screening

Pre-built themes

undervalued_small_cap       Small caps, ROCE > 15%, low debt, PE < 20
high_roce_low_debt          ROCE > 20%, debt to equity < 0.3
compounders                 15%+ growth: revenue, profit, ROE, ROCE
turnaround                  Strong recent profit recovery
rising_profit_falling_price Improving profits, compressed valuation
improving_roce              ROCE > 15% with profit momentum
hidden_gems                 Small cap, high ROCE, strong growth
dividend_aristocrats        Consistent dividends with quality financials
qarp                        Quality at reasonable price
micro_cap_growth            High-growth micro caps < ₹1000 Cr
ev_theme                    EV & auto ancillary growth companies
chemicals                   Specialty chemicals, strong fundamentals
defense                     Defense sector with revenue momentum
railways                    Railway infra/equipment companies
renewable_energy            Renewable energy sector

Custom screen syntax

Market Capitalization < 5000 AND Return on capital employed > 15 AND Debt to equity < 0.5
Profit growth 5Years > 20 AND Sales growth 5Years > 15 AND Debt to equity < 0.3
Dividend yield > 3 AND Return on equity > 15 AND Pledged percentage < 5

Supported operators: > < = AND

Full field list in CONTRIBUTING.md.


Remote HTTP server

By default this runs over stdio — a local process, used by claude mcp add, Claude Desktop, and similar clients. Some integrations — any client that asks for an HTTPS Server URL — instead need a network server.

Run it with HTTP transport:

bash
MCP_TRANSPORT=streamable-http PORT=8000 python run_server.py
# Serves MCP over HTTP at http://<host>:8000/mcp

Env vars:

VariablePurposeDefault
SCREENER_USERNAMEScreener.in login email (needed for screening tools)—
SCREENER_PASSWORDScreener.in password—
MCP_TRANSPORTstdio or streamable-httpstdio
PORT / MCP_PORTPort to listen on (HTTP transport only)8000
MCP_HOSTBind address (HTTP transport only)0.0.0.0
CHROMA_PERSIST_DIRWhere the document-analysis vector store is cached~/.screener-mcp/chroma_db

To get a public HTTPS URL, deploy this to any host that can run a long-lived Python process and terminate TLS for you (Render, Railway, Fly.io, a VM behind a reverse proxy, etc.), then point the client at https://your-host/mcp.

A bare streamable-http server has no authentication. If you deploy it publicly, put it behind your platform's access controls (API gateway, IP allowlist, auth proxy) rather than exposing it to the open internet unauthenticated — especially if you set SCREENER_USERNAME/PASSWORD, since anyone who can reach the URL would act as your Screener.in account.


Docker

A Dockerfile is included. It installs the full [ai] extras (document analysis included) — expect a slow first build (~1-2GB with torch).

bash
# Build and tag the image
docker build -t screener-mcp:latest .

# Run it, exposing the HTTP port and setting credentials
docker run -p 8000:9000 \
  -e PORT=9000 \
  -e SCREENER_USERNAME=you@example.com \
  -e SCREENER_PASSWORD=yourpassword \
  screener-mcp:latest

Then point the client at http://<host>:8000/mcp.


Data sources & limitations

SourceData provided
Screener.in10+ years of financials, ratios, shareholding, peers
NSE IndiaAnnouncements, annual reports, bulk deals
MCX IndiaCommodity prices (best-effort)
  • Financial data lags by ~1 quarter
  • Document analysis requires machine-readable PDFs (scanned/image-only PDFs may fail)
  • NSE bulk deals only capture single trades > 0.5% of equity
  • get_company_announcements and search_shareholder depend on NSE's public API, which frequently rate-limits or blocks server IPs (403/404 responses) — if a query returns "no data found", it may be NSE blocking the request rather than an empty result
  • This is a research tool — not financial advice

Project layout

screener-mcp/
├── run_server.py
├── tests/                          # Offline registry + docs-consistency tests
└── src/screener_mcp/
    ├── server.py                   # FastMCP — all 30 tool definitions
    ├── client.py                   # Screener.in HTTP client + auth
    ├── core/
    │   ├── nse_client.py           # NSE India API (announcements, filings)
    │   ├── rag.py                  # PDF → chunk → embed → query pipeline
    │   └── vector_store.py         # ChromaDB wrapper
    ├── parsers/
    │   ├── company.py              # Screener.in company page parser
    │   └── screener.py             # Screen results parser
    └── tools/
        ├── company_tools.py        # Company data tools
        ├── screening_tools.py      # Stock screening + themes
        ├── analysis_tools.py       # Deep analysis, red flags, beginner
        ├── documents.py            # Annual reports + earnings calls (RAG)
        ├── announcements.py        # NSE corporate announcements
        ├── shareholders.py         # Bulk deal / shareholder search
        ├── commodities.py          # Commodity price analysis
        └── notebook.py             # Research notes

Contributing

See CONTRIBUTING.md — adding a new tool takes ~10 minutes.

bash
git clone https://github.com/LogeshR15/screener-mcp
cd screener-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest

The test suite is offline — no network, no Screener.in credentials — and checks that the tool registry and the docs still agree with each other. If you add or rename a tool, tests fail until you update EXPECTED_TOOLS in tests/test_tools.py, the server.py docstring, and the README tool table.

Dependency files:

  • pyproject.toml — the source of truth; [ai] extra adds document analysis
  • requirements.txt — full install (core + document analysis, pulls in torch)
  • requirements-core.txt — lightweight install, no document-analysis tools

License

MIT © Logesh Ramasamy


Contact

Logesh Ramasamy · logeshl2003@gmail.com · LinkedIn

screener-mcp MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal screener-mcp verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

screener-mcp als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu screener-mcp an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "screener-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu screener-mcp. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu screener-mcp.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat screener-mcp?
screener-mcp
Jo. Ech hunn et gelies.
Dat hunn ech mat screener-mcp fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server screener-mcp benotzt?

screener-mcp ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech screener-mcp MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir screener-mcp mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat screener-mcp MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann screener-mcp verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech screener-mcp MCP mat TypingMind?

screener-mcp leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt screener-mcp MCP an TypingMind zur Verfügung?

screener-mcp stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir screener-mcp MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann screener-mcp eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇