Skip to main content
Glama
Screener MCP Server

Screener MCP Server

by sahiljani

screener-mcp-server

MCP server for Indian stock market data — search companies, analyze fundamentals, compare stocks, browse sectors and screens. Powered by screener-unofficial-api.


Tools (10)

Tool

Description

search_companies

Search companies by name

get_company

Full company snapshot (overview, ratios, analysis)

get_company_tab

Single financial tab (ratios, P&L, balance-sheet, etc.)

compare_companies

Side-by-side comparison of 2+ companies

list_sectors

Browse 50+ market sectors

get_sector_data

Companies in a specific sector

list_screens

Browse/search public stock screens

get_screen_details

Run a screen and get matching companies

get_market_overview

Top sectors + trending screens

health_check

Verify API connectivity

Related MCP server: india-stock-mcp

Resources (3)

URI

Content

screener://company/{symbol}

Company profile

screener://sector/{slug}

Sector listing

screener://screen/{id}/{slug}

Screen results

Prompts (3)

Prompt

Workflow

analyze-company

Guided company deep-dive

screen-stocks

Find stocks matching criteria

compare-stocks

Structured comparison


Quick start (uses hosted API)

git clone https://github.com/sahiljani/screener-mcp-server.git
cd screener-mcp-server
pip install -e .

Claude Desktop

Add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "screener": {
      "command": "python3",
      "args": ["-m", "screener_mcp.server"],
      "cwd": "/path/to/screener-mcp-server",
      "env": {
        "SCREENER_API_BASE_URL": "https://screener.janisahil.com",
        "PYTHONPATH": "/path/to/screener-mcp-server/src"
      }
    }
  }
}

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "screener": {
      "command": "python3",
      "args": ["-m", "screener_mcp.server"],
      "cwd": "/path/to/screener-mcp-server",
      "env": {
        "SCREENER_API_BASE_URL": "https://screener.janisahil.com",
        "PYTHONPATH": "/path/to/screener-mcp-server/src"
      }
    }
  }
}

Restart Claude Code/Desktop after adding the config.


Run with your own API

# 1. Run the screener API locally
git clone https://github.com/sahiljani/screener-unofficial-api.git
cd screener-unofficial-api
pip install -r requirements.txt
uvicorn app.main:app --port 8098

# 2. Point MCP server to localhost
export SCREENER_API_BASE_URL=http://127.0.0.1:8098

Environment variables

Variable

Default

Description

SCREENER_API_BASE_URL

http://127.0.0.1:8098

Screener API base URL

SCREENER_API_KEY

(none)

Optional API key

REQUEST_TIMEOUT_SECONDS

30

HTTP request timeout


Tech stack

Available Tools

11 tools
compare_companiesA

Compare 2 or more companies side-by-side on key metrics (market cap, PE, ROE, dividend yield, etc.).

Args: symbols: Comma-separated stock symbols (e.g., "TCS,INFY,WIPRO") mode: "consolidated" (default) or "standalone"

Inputs: symbols (required), mode. Returns: result

get_companyA

Get full company snapshot — overview, key ratios, analysis (pros/cons), and all financial tabs for any NSE-listed Indian company.

Args: symbol: Stock symbol (e.g., TCS, INFY, RELIANCE, HDFCBANK) mode: "consolidated" (default) or "standalone"

Inputs: symbol (required), mode. Returns: result

get_company_rawA

Get raw HTML and section list for a company page — useful for extracting data not available via structured endpoints.

Args: symbol: Stock symbol (e.g., TCS, INFY, RELIANCE, HDFCBANK) mode: "consolidated" (default) or "standalone"

Inputs: symbol (required), mode. Returns: result

get_company_tabA

Get a specific financial data tab for a company.

Args: symbol: Stock symbol (e.g., TCS, INFY) tab: One of: analysis, peers, quarters, profit-loss, balance-sheet, cash-flow, ratios, shareholding, documents mode: "consolidated" (default) or "standalone"

Inputs: tab (required), symbol (required), mode. Returns: result

get_market_overviewA

Get a quick market overview combining top sectors and trending screens.

Args: top_n: Number of top items to return per category (default 5)

Inputs: top_n. Returns: result

get_screen_detailsA

Run a specific stock screen and get matching companies with their data.

Args: screen_id: Screen ID (from list_screens results) slug: Screen URL slug (from list_screens results) page: Page number (default 1) limit: Results per page (1-50, default 50)

Inputs: slug (required), screen_id (required), page, limit. Returns: result

get_sector_dataA

Get companies listed in a specific market sector with key financial metrics.

Args: sector: Sector slug (e.g., "pharmaceuticals-biotechnology", "it-software", "banks-private-sector") page: Page number (default 1) limit: Results per page (1-50, default 50)

Inputs: sector (required), page, limit. Returns: result

health_checkA

Check if the Screener API is reachable and healthy.

Inputs: no named parameters. Returns: result

list_screensA

Browse or search public stock screens (user-created filters like "Magic Formula", "Growth Stocks", "High Dividend Yield").

Args: page: Page number (default 1) q: Search screens by title/description (e.g., "dividend", "growth", "undervalued") sort: Sort by "title" (alphabetical) or "screen_id" (recency)

Inputs: q, page, sort. Returns: result

list_sectorsA

List all 50+ Indian stock market sectors (Pharma, IT, Banks, Auto, etc.) with their slugs.

Inputs: no named parameters. Returns: result

search_companiesA

Search Indian stock market companies by name. Returns matching symbols and URLs.

Args: query: Company name to search (e.g., "tata", "reliance", "infosys") limit: Max results to return (1-50, default 10)

Inputs: query (required), limit. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a distinct purpose: raw HTML, sector listing, company search, full snapshot, specific tabs, comparison, sector data, screen browsing, screen execution, market overview, and health check. No overlap in functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., 'get_company', 'list_sectors', 'search_companies') using snake_case, making them predictable and easy to understand.

    Tool Count5/5

    11 tools cover the core functionalities needed for Indian stock market data retrieval without unnecessary bloat or missing essentials, fitting the typical well-scoped range.

    Completeness5/5

    The tool surface covers all major operations: company search, detailed financial data, comparisons, sector exploration, screeners, and market overview. No obvious gaps for a read-only data API.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides comprehensive Indian stock market data from the NSE and BSE, including live quotes, historical trends, and fundamental analysis. Users can compare stock performance, track major indices, and access financial statements without the need for an API key.
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Indian stock market data. Provides 16 tools for quotes, history, fundamentals, mutual funds, indices, corporate actions, options, IPOs, and portfolio analysis.
      16
      90 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides access to screener.in financial data for Indian stocks, enabling queries for company info, financials, ratios, quarterly results, shareholding, and stock screening.
      MIT