search_razorpay_docs
Hybrid BM25 + dense retrieval over 2,200+ official docs, fused with RRF. Returns ranked chunks with title, summary, body excerpt, code samples filtered to your SDK, and the canonical URL.
Unofficial · Model Context Protocol
A local-first MCP server for Razorpay's docs and SDKs. Works with every major AI coding agent — they all gain three tools: search, fetch, and a validator tuned to ~30 Razorpay-specific integration bugs. No API keys. No rate limits. No telemetry.
Tool surface
Each MCP tool definition costs the agent 550–1,400 tokens of context before a single user message lands. We hold the line at three — each one earning its place.
Hybrid BM25 + dense retrieval over 2,200+ official docs, fused with RRF. Returns ranked chunks with title, summary, body excerpt, code samples filtered to your SDK, and the canonical URL.
Fetch the full markdown body for a known route or URL, plus its outgoing links. Use after search when the agent needs the entire page, not just an excerpt.
The killer feature. ~30 curated rules catch bugs retrieval can't: HMAC over JSON.stringify(req.body), === on signatures, hardcoded rzp_live_* keys, refunds without Idempotency-Key. Each finding cites the exact doc that explains the fix.
Why this beats Context7
2,200+ docs from Razorpay's canonical markdown-docs repo. Not a third-party scrape that lags by weeks.
Auto-detects Razorpay in package.json, composer.json, requirements.txt, Gemfile, go.mod, pom.xml — answers in your language, every time.
~30 hand-written rules with citations to canonical docs. Not a regex catalog — every finding points the agent at the page that explains the fix.
BM25 for identifier-heavy queries (route names, SDK methods), dense vectors for synonyms and intent, RRF fusion on top.
Corpus and indexes ship in the npm package. No API keys, no rate limits, no phone-home. One daily SHA check to upstream — disable with RZP_MCP_AUTO_UPDATE=0.
Defaults to bge-small-en-v1.5 (32 MB, ~80% recall@3). Plug in Voyage or Cohere and rebuild the index for top-quality retrieval.
Install
The snippet below works in every MCP-aware editor — drop it into the config file each one expects, restart, and your agent gains the three tools.
1. Install MCP server
npx -y @razorpay-docs/mcp@latest --version
2. Add to your editor's MCP config
{
"mcpServers": {
"razorpay-docs": {
"command": "npx",
"args": ["-y", "@razorpay-docs/mcp@latest"]
}
}
}
~/.claude/mcp.json.cursor/mcp.json.vscode/mcp.json~/.codex/config.toml~/.continue/config.yaml~/.codeium/windsurf/mcp_config.json~/.config/zed/settings.jsonsettings → MCP servers
Need a deployed HTTP server instead of stdio? Run npx @razorpay-docs/mcp@latest --http --port=3030 and point clients at http://localhost:3030/.