
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A Model Context Protocol server that exposes Indian financial data, such as mutual fund NAV lookups and GSTIN validation, to LLMs and agents.
India Finance MCP is cataloged as an MCP server attributed to vamp6969. A Model Context Protocol server that exposes Indian financial data, such as mutual fund NAV lookups and GSTIN validation, to LLMs and agents. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for India Finance MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · a8f9f9d83fa3 · Fetched 2026-11-13 11:25:04 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server exposing Indian financial data to LLMs and agents, with a parallel REST API for non-MCP consumers.
Single TypeScript codebase, two deployment targets:
Live as of 2026-05-04.
| Target | URL | Transports |
|---|---|---|
| Apify Actor | https://apify.com/vamppog/india-finance-mcp | MCP (Streamable HTTP) at /mcp via FastMCP |
| Cloudflare Workers | https://india-finance-mcp.vamp-fa0.workers.dev | MCP (JSON-RPC) at POST /mcp + REST at /api/* |
| Tool | Purpose | Source | Auth needed |
|---|---|---|---|
get_mutual_fund_nav | Look up the latest NAV for any Indian mutual fund by AMFI scheme code or free-text scheme name. | AMFI — daily refresh | None |
validate_gstin | Structural + checksum validation of a 15-character GSTIN. Parses out state, embedded PAN, entity code. | Offline (mod-36 checksum) | None |
Planned for v1.1:
| Tool | Purpose | Source |
|---|---|---|
get_stock_quote | Latest quote for NSE/BSE-listed equities. | Yahoo Finance proxy (RELIANCE.NS-style symbols) |
You have three options:
Option A — Cloudflare Workers (always-on, no Apify standby needed):
POST https://india-finance-mcp.vamp-fa0.workers.dev/mcp
Speaks MCP Streamable HTTP / JSON-RPC. Works with any MCP client that supports HTTP transport.
Option B — Apify Actor (FastMCP-backed):
Once the actor's standby mode is enabled in the Apify console, point your MCP client at the actor's MCP endpoint at /mcp.
Option C — local stdio:
git clone <this-repo>
cd "Indian finance MCP"
npm install
npm run dev:mcp # stdio transport for local MCP clients
For an interactive UI, use the FastMCP inspector:
npm run inspect # opens fastmcp dev UI
# initialize
curl -X POST https://india-finance-mcp.vamp-fa0.workers.dev/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
# tools/list
curl -X POST https://india-finance-mcp.vamp-fa0.workers.dev/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
# tools/call
curl -X POST https://india-finance-mcp.vamp-fa0.workers.dev/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"validate_gstin","arguments":{"gstin":"27AAPFU0939F1ZV"}}}'
# Mutual fund NAV by AMFI scheme code
curl 'https://india-finance-mcp.vamp-fa0.workers.dev/api/mutual-fund/nav?code=122639'
# Free-text scheme name search
curl 'https://india-finance-mcp.vamp-fa0.workers.dev/api/mutual-fund/nav?q=parag+parikh+flexi+cap+direct&limit=5'
# GSTIN validation
curl 'https://india-finance-mcp.vamp-fa0.workers.dev/api/gstin/validate?gstin=27AAPFU0939F1ZV'
Sample response (NAV):
{
"query": "122639",
"matches": [
{
"schemeCode": "122639",
"isinGrowth": "INF879O01027",
"isinReinvestment": null,
"schemeName": "Parag Parikh Flexi Cap Fund - Direct Plan - Growth",
"nav": 91.2902,
"date": "30-Apr-2026",
"category": "Open Ended Schemes(Equity Scheme - Flexi Cap Fund)",
"amc": "PPFAS Mutual Fund"
}
],
"asOf": "30-Apr-2026",
"source": "amfi"
}
Sample response (GSTIN):
{
"gstin": "27AAPFU0939F1ZV",
"valid": true,
"errors": [],
"parts": {
"stateCode": "27",
"stateName": "Maharashtra",
"pan": "AAPFU0939F",
"entityCode": "1",
"defaultLetter": "Z",
"checksum": "V"
}
}
src/
├── core/ # Pure logic + I/O. Workers-safe. No fastmcp/hono imports.
│ ├── amfi.ts # Fetch + parse + 1h TTL cache + search for AMFI NAV file
│ ├── gstin.ts # Mod-36 checksum, state-code table, structural checks
│ └── types.ts # Shared record/result types
├── tools/ # MCP-tool contracts: zod schema + execute() + _TOOL const
│ ├── mutual-fund-nav.ts
│ └── validate-gstin.ts
├── mcp/
│ └── index.ts # FastMCP entry — addTool(...) per tool, stdio or http-stream
└── rest/
├── app.ts # Hono app — REST routes + POST /mcp (JSON-RPC)
├── mcp-handler.ts # Workers-safe MCP JSON-RPC dispatcher (no fastmcp)
├── worker.ts # Cloudflare Workers entry: { fetch: app.fetch }
└── node.ts # Local-dev entry via @hono/node-server
src/core/ — pure functions and any caching. Keep this layer dependency-free; it has to run on both Node (Apify) and the Workers runtime.src/tools/ — export a zod schema, an execute function, and a *_TOOL const that bundles them with the tool's MCP name + description. This contract is reused by both entries.src/mcp/index.ts via server.addTool({...}). Tool results must be returned as a JSON string.src/rest/app.ts — add a route, parse query params with <schema>.safeParse, call execute, return c.json(...).This is the rule the codebase optimizes for: one logic implementation, one contract, two transports.
src/mcp/index.ts chooses transport at startup:
| Trigger | Transport | Use case |
|---|---|---|
APIFY_CONTAINER_PORT set | httpStream on that port | Apify Actor runtime |
FASTMCP_TRANSPORT=http-stream | httpStream on PORT (default 8080) | Self-hosted HTTP |
| Neither | stdio | Claude Desktop, local CLI, FastMCP inspector |
The Workers deploy serves MCP via a hand-rolled JSON-RPC handler in src/rest/mcp-handler.ts because FastMCP pulls in Node-only deps that don't bundle for Workers. The handler implements initialize, notifications/initialized (acked with HTTP 202), ping, tools/list, and tools/call. Tool input schemas are emitted from the same zod schemas used by the FastMCP entry, via zod-to-json-schema. Both entries therefore expose identical tool surface — only the framework underneath differs.
Stateless: no session id, no SSE stream. Each POST is one JSON-RPC request and returns one JSON response (or 202 for notifications).
getNavRecords() in core/amfi.ts memoizes the parsed AMFI file with a 1-hour in-memory TTL plus an inflight request de-dupe (concurrent calls share a single fetch promise).
wrangler.toml (a commented stub is already there) and short-circuit before the AMFI fetch.AMFI publishes the daily NAV file once per business day around 9–11 PM IST.
tsconfig.json uses moduleResolution: "Bundler" with verbatimModuleSyntax: true. Imports between src/ files must end in .js even though the source is .ts:
import { getNavRecords } from "../core/amfi.js"; // ✅
import { getNavRecords } from "../core/amfi"; // ❌ build will fail
Both tsc and Wrangler/esbuild resolve this correctly.
src/rest/worker.ts and its transitive imports must be Workers-safe:
fetch, pure logic, Hono.process.env, @hono/node-server, anything from src/mcp/, anything from fastmcp. FastMCP pulls in Node-only deps that won't bundle for Workers.The current import graph through worker.ts → app.ts → tools/* → core/{amfi,gstin}.ts honors this; keep it that way.
npm install # ~225 packages
npm test # all vitest tests
npx vitest run tests/gstin.test.ts -t "checksum" # single test by file + name
npx vitest # watch mode
npx tsc --noEmit # typecheck only
npm run dev:mcp # tsx watch — stdio MCP server
npm run inspect # fastmcp dev — interactive MCP inspector UI
npm run dev:rest # tsx watch — Hono on http://localhost:3000
npm run cf:dev # wrangler dev — Workers runtime on http://localhost:8787
npx tsx scripts/smoke.ts # end-to-end smoke test against live AMFI
The dist/ build is only needed for the Apify Docker image. Dockerfile runs tsc in the builder stage. Wrangler bundles src/rest/worker.ts directly — no pre-build required for CF Workers.
npm run build # tsc → dist/
tests/amfi.test.ts parses a fixture string covering category headers, AMC headers, blank ;;;;; rows, and N.A. NAV rows. Extend the fixture rather than mocking the fetch.tests/gstin.test.ts covers valid GSTINs, length/format/state/PAN errors, and bad-checksum cases. Bad-state and bad-PAN tests recompute a valid checksum first to isolate the error under test — important when adding new validation rules._resetCacheForTesting() is exported from core/amfi.ts if a future test needs to re-exercise the fetch path.npm install -g apify-cli
apify login
apify push --wait-for-finish 600
Configuration lives in .actor/actor.json. The webServerMcpPath field tells Apify to route MCP traffic to /mcp. The Dockerfile is multi-stage (Alpine, build → runtime) and starts the server with FASTMCP_TRANSPORT=http-stream and FASTMCP_STATELESS=true.
After the build succeeds, enable Standby mode in the Apify console to make the MCP endpoint addressable. That step is console-only — no CLI equivalent.
npx wrangler login
npx wrangler deploy
wrangler.toml pins account_id (set per-developer; default in this repo is the Vamp account). To use a different account, override with CLOUDFLARE_ACCOUNT_ID or edit the file.
The build is a single bundle (~190 KiB / ~38 KiB gzipped). No KV bindings yet — adding cross-isolate caching is the obvious next infra change.
.
├── .actor/ # Apify actor metadata (actor.json, input_schema.json)
├── src/ # See architecture diagram above
├── tests/ # vitest suites
├── scripts/smoke.ts # End-to-end smoke test
├── Dockerfile # Multi-stage build for Apify
├── wrangler.toml # Cloudflare Workers config
├── tsconfig.json # Bundler-mode + verbatimModuleSyntax
├── vitest.config.ts
└── package.json
https://www.amfiindia.com/spages/NAVAll.txt) — public, no auth, attribution recommended. The source: "amfi" field is included in every NAV response.get_mutual_fund_nav, validate_gstin, deployed to Apify + CF Workersget_stock_quote (Yahoo Finance proxy, NSE + BSE)get_market_summary (indices snapshot)MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for India Finance MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/indian-finance-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.