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 分