FilingsMCP

FilingsMCP

MCP server that fetches Bombay Stock Exchange filings, converts PDFs into clean Markdown, and exposes search/read tools for AI agents to analyze financial documents.

Category
Visit Server

README

FilingsMCP 📈

Turn official BSE (Bombay Stock Exchange) filings into clean, AI-ready Markdown for Claude and Cursor.

Drop a financial PDF into an LLM, and it usually chokes—tables collapse, scanned pages become blank, and the model burns tokens on layout garbage. FilingsMCP fixes the input. It fetches filings directly from BSE, converts text-based PDFs into structured Markdown, and exposes them via a Model Context Protocol (MCP) server so your AI can read, search, and analyze them natively.

✨ Key Features

  • AI-Ready Markdown Conversion: Transforms complex PDF layouts into clean, structured Markdown. Strips running headers/footers, removes mojibake (garbled text from subset fonts), and explicitly flags scanned-image PDFs so your AI never hallucinates from layout noise.
  • Rich Provenance Frontmatter: Every generated .md file includes YAML frontmatter (headline, date, category, source_pdf, news_id, extraction_status), giving the AI strict context and citable sources.
  • Deep Historical Data: Pulls from both the BSE announcements feed and the annual report archive, fetching filings going back to 1997 (including for delisted companies).
  • Structured & Indexed Library: Files are organized systematically: <TICKER>/<category>/<YYYY>/<file>.pdf alongside its .md sibling. Automatically generates per-company and master INDEX.md files for easy navigation.
  • Smart Deduplication & Atomic Writes: Merges overlapping sources without downloading duplicates. Writes files atomically—meaning an interrupted download never leaves a half-written, corrupted file in your library.
  • Cloud-Ready MCP: Deploys to Render (or any cloud) in seconds via SSE, allowing multiple AI clients to query a single hosted library.

🚀 Out-of-the-Box Use Cases

Because the data is structured cleanly with frontmatter and categorized indexes, your AI agent can perform deep, multi-document analysis immediately:

1. Multi-Year Earnings Call (Concall) Synthesis

Prompt: "Read the last 3 years of concall transcripts for TANLA. Has management's guidance on EBITDA margins been accurate? Cite the specific dates and quotes."

  • How it works: The AI uses search_filings to pull the concall .md files, reads the clean text, and cross-references guidance across years without hallucinating numbers.

2. Moat & Business Model Analysis

Prompt: "Analyze Reliance Industries' annual reports from 2015 to 2023. Identify changes in their revenue mix (Retail vs Jio vs O2C) and summarize the core moat."

  • How it works: The AI pulls the annual-reports category, reads the structured markdown, and extracts tabular revenue data that would normally be destroyed by standard PDF parsing.

3. Automated Due Diligence Reports

Prompt: "Pull the last 5 years of financial results and investor presentations for Escorts Kubota. Draft a cited HTML report on their unit economics and tractor segment trajectory."

  • How it works: The AI pulls the exact filings using the MCP tools, reads the provenance frontmatter to ensure it's looking at the right years, and generates a report with citations linking back to the source PDFs.

4. Board Action & Dividend Tracking

Prompt: "List all dividend declarations and board meeting outcomes for TITAN in the last 2 years."

  • How it works: The AI filters by the corp-actions and board-meetings categories, extracting exact record dates and payout amounts from the clean Markdown.

🏗️ How It Works

  1. Fetch & Resolve: You tell the AI to pull a company (e.g., "Pull TANLA"). The MCP server resolves the scrip code against BSE's live API.
  2. Download & Convert: The engine downloads the PDFs, extracts the text, cleans the garbage, and atomically writes .pdf and .md siblings to the disk.
  3. Index: A master INDEX.md and per-company INDEX.md are generated.
  4. Query: Your AI agent uses the MCP tools (search_filings, read_filing) to navigate the clean Markdown library.

☁️ Deployment (Render)

This project includes a render.yaml Blueprint for one-click cloud deployment. A hosted MCP server allows you to query your library from anywhere without running a local Python server.

  1. Push this repository to GitHub.
  2. Go to Render and click New +Blueprint.
  3. Select your repository. Render will automatically detect the render.yaml.
  4. Click Apply.
  5. Render will provision a web service and attach a 10GB persistent disk (at /data) so your downloaded filings survive restarts.

Once deployed, Render will provide a URL (e.g., https://filings-mcp-xyz.onrender.com).


🔌 Connecting to Claude Desktop / Cursor

Once your server is running (either locally or on Render), add it to your MCP client configuration.

For Cloud (Render SSE):

{
  "mcpServers": {
    "filings-mcp": {
      "url": "https://your-render-url.onrender.com/sse"
    }
  }
}

For Local Stdio:

{
  "mcpServers": {
    "filings-mcp": {
      "command": "filings-mcp",
      "args": ["--root", "~/FilingsLibrary"]
    }
  }
}

🛠️ Available MCP Tools

When connected, your AI agent has access to the following tools:

Tool Description
list_companies Lists every company held in the local library with filing counts.
get_index Reads a specific company's INDEX.md or the master index.
search_filings Finds filings by title text, narrowed by ticker, category, or year. Returns paths.
read_filing Reads the clean Markdown of a specific filing. Automatically maps .pdf to .md.
pull_company Downloads a company's filings from BSE into the library. Will ask for clarification if a name is ambiguous.
refresh_company Re-pulls an existing company to fetch new filings, honoring the original category choices.

💻 Local Development

If you prefer to run the engine locally:

# Clone the repo
git clone https://github.com/sathanandhh/filingsmcp.git
cd filingsmcp

# Set up Python 3.11+
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies
pip install -e ".[mcp]"

# Run the MCP server (defaults to ~/FilingsLibrary)
filings-mcp --root ./MyLibrary

📄 License

MIT License. Built for AI-driven financial research.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured