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 個章節的目錄。
適用情境
當助理需要引用或討論魯米、並希望把引文落在原文上時使用;也適合使用者用非波斯語提出某個主題、情感或想法並想找對應詩句的情況。核驗工具用於在引用魯米之前避免誤標出處。
執行需求
遠端 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 分

    請在儲存庫或註冊中心條目中宣告授權條款。