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.
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
.mdfile 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>.pdfalongside its.mdsibling. Automatically generates per-company and masterINDEX.mdfiles 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_filingsto pull the concall.mdfiles, 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-reportscategory, 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-actionsandboard-meetingscategories, extracting exact record dates and payout amounts from the clean Markdown.
🏗️ How It Works
- 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.
- Download & Convert: The engine downloads the PDFs, extracts the text, cleans the garbage, and atomically writes
.pdfand.mdsiblings to the disk. - Index: A master
INDEX.mdand per-companyINDEX.mdare generated. - 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.
- Push this repository to GitHub.
- Go to Render and click New + → Blueprint.
- Select your repository. Render will automatically detect the
render.yaml. - Click Apply.
- 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。