INDUSS Research Intelligence MCP Server
Provides an institutional research backend for AI assistants, with 15 tools for company, financial, funding, competitor, industry, and news intelligence, plus Markdown/PDF report generation, featuring deterministic source routing, extraction, validation, and citation generation.
README
INDUSS Research Intelligence MCP Server
An MCP (Model Context Protocol) server that acts as an institutional research backend for AI assistants (Claude, ChatGPT, Cursor, VS Code, Windsurf, or any MCP-compatible client). The LLM handles reasoning and orchestration; this server handles all data retrieval, extraction, validation, calculation, and citation generation.
Status
The architecture is now considered stable: 15 tools proving the full pattern end-to-end (context → route → search → extract → normalize → validate → cite → calculate → report), built entirely on reusable engines rather than per-tool logic. Adding the remaining ~30 tools from the spec is now purely additive — new source profiles and new tool files composing existing engines, no structural changes expected.
Architecture
Tools are thin orchestrators. All reusable logic lives in engines
(src/core/*) and sources (src/sources/*), driven by one shared
ResearchContext so the same inputs always resolve to the same sources,
the same query, and the same citations — a tool call is deterministic.
Claude / ChatGPT / Cursor
│ MCP Protocol
INDUSS MCP Server (src/index.ts)
│
┌──────────────────────────────────────────────────┐
│ src/tools/registerTools.ts │ Tool Registry (15 tools, thin orchestration)
│ src/tools/toolRegistry.ts │ Tool Metadata (category/inputs/outputs/sources)
│ │
│ src/types/context.ts │ ResearchContext — the one input shape every
│ │ research tool takes (company/sector/country/
│ │ listed/objective/date)
│ │
│ src/core/pipeline/searchPipeline.ts │ Universal Search Pipeline — the ONLY caller
│ │ of core/exa/search.ts. Every search-backed
│ │ tool goes through this, end to end:
│ │ Router → Exa → Normalizer → Extractor →
│ │ Validator → Citation Engine → Response
│ src/core/pipeline/fetchDocument.ts │ Deep-extraction document fetcher (opt-in)
│ │
│ src/core/router/objective-router.ts │ objective → source names
│ src/core/router/source-router.ts │ source names → domain allowlist
│ src/core/exa/{client,search,contents}.ts │ Exa REST integration
│ src/core/extraction/* │ HTML / PDF / Table extraction
│ src/core/normalization/normalizer.ts │ text/number normalization
│ src/core/citations/citationEngine.ts │ builds + dedupes + flattens citations
│ src/core/citations/sourcePriority.ts │ Source Priority Engine — Tier + Authority +
│ │ Recency → Confidence
│ src/core/quality/validationEngine.ts │ Validator stage: CIN format, financial
│ │ statement plausibility (grows to cover
│ │ hallucination/citation-completeness checks)
│ src/core/financial/financialEngine.ts │ Financial Calculator over FinancialStatement
│ │ objects (Income Statement/Balance Sheet/
│ │ Cash Flow)
│ src/core/reports/reportEngine.ts │ Report orchestration (delegates to renderers/)
│ src/core/renderers/{html,markdown}/* │ Pure ResearchSection → string renderers
│ src/core/pdf/pdfEngine.ts │ PDF Generator (Playwright, HTML → PDF)
│ │
│ src/sources/{mca,sec,company,government,macro, │ Each source is fully self-contained: domains,
│ news,industry,exchange,regulator,legalMedia, │ query templates per research angle, trust
│ financialData,privateData,socialSentiment}/ │ tier, baseline authority score
│ index.ts │
└──────────────────────────────────────────────────┘
│
Public Data Sources (Exa, domain-restricted per src/sources/*)
Search flow: tool builds a ResearchContext (with its fixed objective) →
runSearchPipeline() → source-router resolves domains from the matched
sources → the first matching source's query template is used → Exa (cached) →
Normalizer → optional deep Extractor → optional Validator → Citation Engine
(Source Priority scoring + dedupe) → tool shapes the result.
Report flow: tool assembles ResearchSection[] (each carrying its own
summary, tables, citations, and confidence) into a ReportInput →
core/reports/reportEngine.ts → core/renderers/{markdown,html}/reportRenderer.ts
→ (for PDF) core/pdf/pdfEngine.ts (Playwright). The HTML renderer produces
a full cover page + table of contents + numbered sections; a section's
metadata.tone (info/success/warning/danger) and metadata.label
wrap it in a colored callout card, and summary supports a light markdown
subset (**bold**, - bullets, > blockquotes) — see
ReportInputSchema/ResearchSectionSchema in src/types/schemas.ts.
PDF delivery: generate_pdf returns the rendered PDF as a base64 MCP
resource content block embedded directly in the tool response — this is
what makes it retrievable by a remote client (e.g. Claude.ai talking to a
Railway deployment), since a server-local file path is meaningless off-box.
It's also written to reports/ locally and, when MCP_BASE_URL is set
(httpStream/production), served over GET /reports/:filename (registered
via server.getApp()), so the response additionally includes a
downloadUrl.
Setup
npm install
npx playwright install chromium
cp .env.example .env # fill in EXA_API_KEY
npm run build
npm start # stdio transport, for Claude Desktop / Cursor etc.
For local development with auto-reload:
npm run dev
For HTTP transport (remote MCP clients):
MCP_TRANSPORT=httpStream npm start
With Docker (includes Redis + Postgres)
docker compose up --build
Testing
npm test # vitest — financial engine, citation engine, source priority, quality engine, report engine
npm run typecheck
Tools implemented in this slice (19)
| Category | Tools |
|---|---|
| Company Intelligence | search_company, company_profile, company_overview |
| Financial Intelligence | financial_statements, ratio_analysis |
| Funding Intelligence | funding_history |
| Competitor Intelligence | discover_competitors, listed_peer_comparison |
| Industry Intelligence | industry_overview, market_size |
| News Intelligence | latest_news, negative_news |
| Litigation & Compliance | litigation_history |
| Promoter Intelligence | promoter_background |
| Report Generation | generate_report, generate_institutional_report |
| PDF & Export | generate_markdown, generate_pdf |
| Ops | health_check (also surfaces the full tool capability registry) |
negative_news (soft signal: press + Glassdoor/Reddit sentiment) and
litigation_history (hard signal: SEBI/NCLT orders + legal-journalism case
coverage) are deliberately split — they answer different due-diligence
questions and shouldn't be conflated into one keyword screen.
generate_institutional_report — the composite orchestrator
Every tool above also has its core logic exported as a plain function
(getCompanyProfile, getFinancialStatements, etc., alongside each
registerXTool), so core/orchestration/institutionalReport.ts can call
them directly, in-process — no re-entering the MCP protocol per phase. A
single generate_institutional_report call runs company profile,
financials, industry, server-ranked competitors, funding, and a combined
litigation/promoter/negative-news risk screen in parallel
(Promise.allSettled, one phase failing doesn't sink the rest), composes
the results into ResearchSections with deterministic templated text (no
LLM tokens spent server-side), and renders whichever of
json/markdown/html/pdf the caller asked for. The calling model gets a
finished report instead of having to plan and narrate ~10 separate tool
calls itself.
Two quality mechanisms run underneath every company-subject tool (including this composite one):
- Entity verification (
core/quality/entityVerification.ts) — a result must contain the searched company's distinctive name tokens, not just one word it happens to share with an unrelated company (fixes the "Big Bang Boom" query pulling in "Nirmal Bang" or "BB Food"). - Evidence metadata (
tools/shared/evidenceMetadata.ts) — every response'smetadataincludessourcesChecked(human-readable labels),primarySources/secondarySourcescounts, and how many raw hits were dropped as false positives, so a clean screen reads as "checked SEBI, NCLT, Indian Kanoon... — no matches" rather than going quiet.
financial_statements also never returns bare nulls: when data can't be
found it returns { status: "not_available", reason, recommendedSources }
instead.
Every tool returns the standard envelope:
{
"success": true,
"data": {},
"citations": [],
"confidence": 0.98,
"metadata": {}
}
Every Citation carries the four components the Source Priority Engine
scores it on:
{
"source": "mca.gov.in",
"url": "...",
"publicationDate": "...",
"evidenceSnippet": "...",
"tier": "official_filing",
"authority": 0.95,
"recencyPenalty": 0,
"confidenceScore": 0.96
}
Adding a new tool
- If the objective needs a source not already covered, add a new profile
under
src/sources/<name>/index.ts(domains + searchTemplates + tier + confidence + supportsPDF/HTML) and register it insrc/sources/index.ts. Otherwise, add the objective → source mapping tosrc/core/router/objective-router.tsand reuse existing sources. - Create
src/tools/<category>/<toolName>.ts. Accept acontext: ResearchContextInputSchema.required({...})parameter, callwithObjective(args.context, "<objective>"), thenrunSearchPipeline({ context, templateKey, subject, ... })— never callcore/exa/search.tsdirectly. - Export a
<toolName>Meta: ToolMetaalongside the register function (category/inputs/outputs/requiredSources/caching/estimatedRuntimeMs) and add it tosrc/tools/toolRegistry.ts. - Register the tool in
src/tools/registerTools.ts. - If the tool does deterministic calculation only (no search), add pure
functions to the relevant engine under
src/core/<engine>/(or a new engine folder) with unit tests intests/. - For fact validation beyond Zod's type checks (format/plausibility
rules), add functions to
src/core/quality/validationEngine.ts.
Notes on infra
- Redis is optional at runtime: if unreachable, the cache layer
(
src/cache/cache.ts) transparently falls back to an in-process memory store, so the server still works withoutdocker compose up. - Postgres is optional and only used for the query/result history schema
in
src/db/migrations.sql; tools function withoutDATABASE_URLset. - BullMQ (
src/queue/queue.ts) is wired up for future long-running report jobs but no tool enqueues to it yet in this slice.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。