ramayana-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ramayana-mcp What's the Ramayana verse of the day for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ramayana-mcp
An MCP (Model Context Protocol) server for the Ramayana Book (svenkatreddy/ramayana-mcp). Search verses, fetch Sanskrit plus English/Hindi/Telugu translations, and get a deterministic verse of the day. Same codebase serves three targets:
stdio (
src/stdio.ts) — Claude Desktop, Cursor, and Smithery hostingVercel serverless (
api/mcp.ts) — stateless JSON-RPC over HTTP at/api/mcp(dependency-free handler; the SDK's ESM transport crashes Vercel's runtime)
Tools
Tool | What it does |
| The seven kandas with Sanskrit titles and chapter counts |
| One verse by kanda, sarga and verse number |
| Every verse of one sarga, optional language filter |
| Full-text search across all four languages, with snippets |
| Deterministic verse of the day (see below) |
Plus a ramayana://kandas resource with kanda/chapter/verse counts.
Related MCP server: Feason Context MCP Server
Verse of the day
verse_of_the_day hashes the calendar date (FNV-1a, YYYY-MM-DD, UTC by
default) and maps it uniformly onto all 24,214 indexed verses. The same date
always returns the same verse; pass an explicit date to look up any other day.
Local setup
npm install
npm run build-index # builds data/ from a Ramayana_Book checkout
npm run build
npm start # stdio serverbuild-index reads the Ramayana_Book repo from RAMAYANA_BOOK_DIR
(default: ../../ramayana-modernization/repo relative to this package).
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"ramayana-book": {
"command": "node",
"args": ["/absolute/path/to/ramayana-mcp/dist/src/stdio.js"]
}
}
}Deploy on Vercel (free Hobby plan, no payment needed)
Push this directory to a new GitHub repo (create the repo yourself on github.com).
In the Vercel dashboard: Add New Project -> Import the repo -> Deploy.
No build config needed;
vercel.jsonalready ships thedata/files with the function. The MCP endpoint ishttps://<project>.vercel.app/api/mcp.
The endpoint is stateless (one POST per JSON-RPC request, no sessions), which fits the Hobby plan's function limits. Point any MCP client at the URL above.
Publish on Smithery (for discoverability)
Push the repo to GitHub (public) - done:
svenkatreddy/ramayana-mcp.Go to smithery.ai, sign in with GitHub.
Add / deploy the
ramayana-mcprepo.smithery.yamldeclares the TypeScript runtime; Smithery installs, builds, and importscreateServerplusconfigSchemafromsrc/index.ts. No API keys or config needed.
Smithery hosts the server and gives it a registry page with one-click install for Claude Desktop, Cursor, and other clients.
Data and attribution
Verse data is built from the Ramayana_Book repository:
Sanskrit: Sanskrit Wikisource (Wikimedia); 3 chapters restored from IIT Kanpur's critical edition
English: Valmiki Ramayan Dataset (MIT) — M.N. Dutt's translation (1891-1894), IIT Kanpur, Gyaandweep
Hindi: Chaturvedi Dwarka Prasad Sharma's Hindi Ramayana (used with permission)
Telugu: Telugu Wikisource contributors (CC BY-SA)
Re-run npm run build-index after the Ramayana_Book translations change.
License
The server code in this repo is MIT licensed (see LICENSE).
The verse data under data/ carries the licenses of its sources, not MIT:
Sanskrit from Sanskrit Wikisource (Wikimedia), English from the MIT-licensed
Valmiki Ramayan Dataset, Hindi from Chaturvedi Dwarka Prasad Sharma's
translation (used with permission), Telugu from Telugu Wikisource contributors
(CC BY-SA). See the Ramayana_Book
translation sources for full
attribution.
Available Tools
5 toolsget_sargaAInspect
Fetch every verse of one sarga (chapter), with Sanskrit and available translations
Inputs: kanda (required), chapter (required), langs.
get_verseAInspect
Fetch a single verse by kanda, chapter (sarga) and verse number, with Sanskrit and available translations
Inputs: kanda (required), verse (required), chapter (required).
list_kandasAInspect
List the seven kandas of the Ramayana with their Sanskrit names and chapter counts
Inputs: no named parameters.
search_versesAInspect
Full-text search across Sanskrit and English/Hindi/Telugu translations; returns matching verse references with snippets
Inputs: query (required), limit.
verse_of_the_dayAInspect
A deterministic verse of the day: the same calendar date always yields the same verse, drawn uniformly from the whole corpus
Inputs: date.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct granularity of the same corpus: listing kandas, fetching one verse, fetching one sarga, full-text search, and a deterministic daily pick. verse_of_the_day vs get_verse could superficially touch the same data, but the descriptions make the boundaries obvious.
Four tools follow a clean verb_noun pattern (list_kandas, get_verse, get_sarga, search_verses) with consistent snake_case. verse_of_the_day breaks the pattern as a bare noun phrase with no verb, though it is still readable and unambiguous.
Five tools is well-scoped for a scripture-browsing server: structure listing, two retrieval granularities, search, and a novelty feature. No tool feels redundant or padded.
Core lifecycle for corpus navigation is covered: browse structure, fetch verse/chapter, search, and a daily highlight. A gap remains at the kanda level — there is no way to list the sargas belonging to a kanda, so agents must guess chapter numbers before calling get_sarga.
Maintenance
Related MCP Connectors
Full Bhagavad Gita (Sanskrit + English) and Ganguli's Mahabharata: search verses and passages.
Read-only semantic search over Vedic scripture verses, commentaries, and recorded lectures.
Quran: Quran API Service with 90+ different languages and 400+ translations.
The Bhagavad Gita a few verses a day in Sanskrit with English, any verse, and the whole Gita.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSemantic search and comparative retrieval over a multi-tradition corpus of sacred and foundational texts, exposed as an MCP server.MIT
- AlicenseNot gradedqualityCmaintenanceProvides source-grounded Christian research material with exact passages, provenance, and stable citations via a REST API.MIT
- AlicenseAqualityCmaintenanceEnables source-labelled Christian Scripture evidence lookup and comparison, including BSB/WEB verse retrieval, passage context, cross-references, keyword search, and topic guides, through a hosted read-only MCP server.11MIT
- AlicenseAqualityCmaintenanceSearch and retrieve Devanagari Hindi shayari from an owner-authorized, provenance-tracked corpus, with audit and research-only inspection capabilities via stdio.4MIT