Masnavi

ai.masnavi由 masnavi.ai 发布官方发布者v1.0.0更新于 Oct 24, 2026

Rumi's complete Masnavi (25,635 beyts) — search, quote, verify and explain. Free, no auth.

已验证Streamable HTTP可网页运行网页搜索与抓取知识与记忆

概览

AI 生成的概览

让助手基于权威文本检索、引用、核验并解读鲁米的《玛斯纳维》与《沙姆斯集》,而不是编造诗句。

可以做什么
提供对《玛斯纳维》全部 25,635 个对句以及《沙姆斯集》加扎勒的全文检索与语义检索,语义检索支持任意语言。查找工具可按引文获取单个对句、章节、区间或整首加扎勒,核验工具则检查某段候选引文是否确实出现在语料中。它还返回署名学者的逐句注释,以及 972 个章节的目录。
适用场景
当助手需要引用或讨论鲁米、并希望把引文落在原文上时使用;也适合用户用非波斯语提出某个主题、情感或想法并想找对应诗句的场景。核验工具用于在引用鲁米之前避免误 attribution。
运行要求
远程 Streamable HTTP 端点;未声明任何身份验证、API 密钥或环境变量。需要能访问该托管服务的网络连接。
安装前请注意
该服务为只读且免费,不会写入、发送或删除用户数据。注释条目带有 ai-draft 之类的置信度标签,AI 草拟的注释不应视为已审校的学术成果。基于语义的匹配是近似的,输入建议在依赖之前对照全文核验。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Masnavi,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.masnavi%2Fmasnavi/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "masnavi": {
      "type": "http",
      "url": "https://masnavi.ai/mcp"
    }
  }
}

README

masnavi.ai — Rumi's Masnavi as an MCP server

The complete Masnavi-ye Maʿnavi of Jalāl al-Dīn Rūmī — all 25,635 beyts (couplets) in 6 daftars, 972 sections — served as a free, public, read-only Model Context Protocol server. Your agent can search, quote, verify, and explain Rumi from the canonical text instead of inventing him.

Connect

json
{ "mcpServers": { "masnavi": { "type": "http", "url": "https://masnavi.ai/mcp" } } }

Claude Code: claude mcp add --transport http masnavi https://masnavi.ai/mcp

Tools (9)

ToolWhat it does
searchfull-text search across all 25,635 beyts, ranked
lookupa beyt by citation (M1:1 = daftar 1, beyt 1) with neighbours
verifyis this really a line by Rumi? fuzzy-checks a quotation against the corpus
get_sectionone named section (story) with all its beyts
get_rangea full multi-section story in one call (≤500 beyts)
find_sectionsfind a story by (Persian) title fragment
table_of_contentsthe 972 sections, by daftar
random_beyta random couplet
explainper-beyt commentary by named scholars

Citations use M{daftar}:{beyt} (e.g. M3:1278). Text sourced from Ganjoor; the Masnavi is in the public domain.

Why

Language models routinely misattribute Persian poetry. This server exists so agents can ground every Rumi quotation in the canonical text — search it, cite it, and verify it — in any language.

This repository holds the public metadata for the hosted server at masnavi.ai; the service itself runs at the endpoint above.

来源:README.md,提交 5e12a85

工具

13

search_meaning

Semantic search: find the beyts closest in MEANING to the query, in ANY language — English, Persian, Spanish, Turkish, Arabic, … . Use this when you have a theme, feeling, or idea rather than exact Persian words (e.g. 'feeling separated from your origin' → M1:1). Each hit carries a cosine-similarity score. status='unavailable' means the vector index is not built yet — fall back to `search`.

输入参数limitquery必填daftar

lookup

Fetch a specific beyt by its citation (e.g. 'M3:1278'), by daftar+beyt number, or by global beyt index. Optionally include surrounding beyts for context.

输入参数afterbeforedaftarcitationbeyt_globalbeyt_in_daftar

verify

Given a candidate quote attributed to Rumi's Masnavi, check whether it actually appears. Returns status='exact' (with citation), 'fuzzy' (with similar candidates), or 'not_found'. USE THIS BEFORE QUOTING RUMI to avoid hallucination.

输入参数text必填fuzzy_threshold

get_section

Retrieve a full section (story / بخش) with all its beyts.

输入参数slugsection_id

table_of_contents

Browse the Masnavi's section list. Returns titled sections per daftar with beyt counts and ranges.

输入参数daftar

random_beyt

Return a randomly-selected beyt, optionally restricted to a daftar.

输入参数daftar

get_range

Fetch ALL beyts between two endpoints, inclusive, grouped by section. Use this — NOT many calls to get_section or lookup — when a user asks for a full story, a long passage, or a sequence of beyts spanning multiple sections. Endpoints are canonical citations like 'M2:2608' and 'M2:2775', or global indices via start_global / end_global. Max range: 500 beyts.

输入参数endstartend_globalstart_global

find_sections

Find sections (stories) by TITLE. Exact words first (phrase, then AND-of-tokens); when NO title contains the words, falls back to MEANING matches in any language (hits carry match='meaning' + a cosine score — verify with get_section before relying on one). Each match includes `first_citation` and `last_citation` — ready-to-use canonical citations (e.g. 'M2:2608'). To read a whole multi-section story, call get_range with the FIRST match's `first_citation` as start and the LAST match's `last_citation` as end. Do NOT construct a citation from `first_beyt_global` — that is a GLOBAL index (1..25635), not a daftar-local beyt number. Example: find_sections('ابلیس معاویه', daftar=2).

输入参数limitquery必填daftar

explain

Get commentary (Persian + English) for a specific beyt of the Masnavi, attributed to a primary source (e.g. Abdolkarim Soroush's lectures). Returns the beyt text along with structured commentary entries. Each entry has source, author, language, body markdown, and confidence ('ai-draft' / 'reviewed' / 'verbatim'). Use this when a user asks 'what does this beyt mean' or 'what does <scholar> say about M1:1'.

输入参数citation必填

search_divan

Full-text search across the 34,603 beyts of the ghazals of the Divan-e Shams (Divan-e Kabir) — Rumi's lyric work, distinct from the Masnavi. Returns beyts with divan citations (G{ghazal}:{beyt}, e.g. G1393:1). Use when you know the exact Persian words; use search_divan_meaning for a theme in any language.

输入参数limitquery必填offset

search_divan_meaning

Semantic search over the Divan-e Shams ghazals: given a theme, feeling, or idea in ANY language, returns the GHAZALS closest in meaning — each with its best-matching couplet as a preview and a cosine score. Both couplet-level and whole-ghazal vectors are searched, so a ghazal whose overall theme matches is found even when no single couplet does. Fetch a full ghazal with get_ghazal. status='unavailable' means the index is not built — fall back to search_divan.

输入参数limitquery必填

get_ghazal

Fetch ONE complete ghazal of the Divan-e Shams by its canonical number (1..3230) or citation ('G1393' / 'G1393:2'). Returns every beyt plus prev/next ghazal numbers. Famous example: get_ghazal(1393) = «مرده بدم زنده شدم…».

输入参数numbercitation

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。