Ramayana Book MCP Server

io.github.svenkatreddy由 GitHub 帳號 svenkatreddy 發布v0.1.0更新於 Nov 2, 2026

Valmiki Ramayana verses: lookup, search and verse-of-the-day in 4 languages

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取知識與記憶

概覽

AI 產生的概覽

提供《羅摩衍那》梵文原詩及英、印地、泰盧固語譯文的查詢、全文檢索與每日一詩服務。

可以做什麼
  • 列出七大篇章(kanda)及其梵文名稱與章數
  • 依篇章、章(sarga)與偈頌編號取得單一偈頌,或取得整章所有偈頌
  • 在梵文與英、印地、泰盧固語譯文中進行全文檢索並回傳片段
  • 依任意日期取得確定性的每日一詩
  • 讀取包含篇章、章、偈頌數量的 kandas 資源
適用情境
適合需要引用、定位或檢索《羅摩衍那》偈頌及譯文的情境,例如學習、教學、誦讀或每日一詩功能,無須自行建置語料庫。
執行需求
透過 streamable HTTP 連線的遠端 MCP 端點,無須 API 金鑰、帳號或設定。另有本機 stdio 版本,但需要 Node.js、建置步驟以及本機檢出的來源詩庫。
安裝前請注意
僅供唯讀:只做文字查詢與檢索,不寫入或傳送資料。譯文來自第三方來源,授權與署名要求各不相同,轉載偈頌文字前請先確認。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ramayana Book MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.svenkatreddy%2Framayana-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "ramayana-book": {
      "type": "http",
      "url": "https://ramayana-mcp.vercel.app/api/mcp"
    }
  }
}

README

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 hosting
  • Vercel 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

ToolWhat it does
list_kandasThe seven kandas with Sanskrit titles and chapter counts
get_verseOne verse by kanda, sarga and verse number
get_sargaEvery verse of one sarga, optional language filter
search_versesFull-text search across all four languages, with snippets
verse_of_the_dayDeterministic verse of the day (see below)

Plus a ramayana://kandas resource with kanda/chapter/verse counts.

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

bash
npm installnpm run build-index   # builds data/ from a Ramayana_Book checkoutnpm run buildnpm start             # stdio server

build-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):

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)

  1. Push this directory to a new GitHub repo (create the repo yourself on github.com).
  2. In the Vercel dashboard: Add New Project -> Import the repo -> Deploy.
  3. No build config needed; vercel.json already ships the data/ files with the function. The MCP endpoint is https://<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)

  1. Push the repo to GitHub (public) - done: svenkatreddy/ramayana-mcp.
  2. Go to smithery.ai, sign in with GitHub.
  3. Add / deploy the ramayana-mcp repo. smithery.yaml declares the TypeScript runtime; Smithery installs, builds, and imports createServer plus configSchema from src/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.

來源:README.md,提交 dbc5541

工具

5

list_kandas

List the seven kandas of the Ramayana with their Sanskrit names and chapter counts

無需輸入參數。

get_verse

Fetch a single verse by kanda, chapter (sarga) and verse number, with Sanskrit and available translations

輸入參數kanda必填verse必填chapter必填

get_sarga

Fetch every verse of one sarga (chapter), with Sanskrit and available translations

輸入參數kanda必填langschapter必填

search_verses

Full-text search across Sanskrit and English/Hindi/Telugu translations; returns matching verse references with snippets

輸入參數limitquery必填

verse_of_the_day

A deterministic verse of the day: the same calendar date always yields the same verse, drawn uniformly from the whole corpus

輸入參數date

版本歷史

1
  1. v0.1.0最新Oct 19, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分