Masnavi MCP
An official MCP server providing access to Rumi's complete Masnavi and Divan-e Shams. It enables AI agents to perform full-text and semantic search, verify quotes to prevent hallucinations, retrieve specific verses with citations, and access commentary in multiple languages.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://masnavi.ai/mcpWhat its tools do
13 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to masnavi.ai ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Search for verses by keyword or meaning in any language
- Verify candidate Rumi quotes to ensure accuracy
- Retrieve specific verses with precise citations
- Access multilingual translations and commentary
Source and maintenance
- Last repository push
- Maintenance checked
Protocol and capabilities
- Server
- masnavi 1.27.1
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 13 advertised
- Resources
- 2 advertised
- Resource templates
- 0 advertised
- Prompts
- 3 advertised
{
"tools": {
"listChanged": false
},
"prompts": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"experimental": {}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
13 advertised
search
Full-text search across the Masnavi. Returns beyts that contain the query terms, ranked by relevance. Useful for finding where a theme, word, or phrase appears.
{
"type": "object",
"title": "tool_searchArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "Persian text to search for"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null,
"description": "Restrict to a single daftar (1-6)"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0
}
}
}{
"type": "object",
"$defs": {
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"rank": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rank",
"default": null
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "SearchResponse",
"required": [
"query",
"total",
"results"
],
"properties": {
"match": {
"type": "string",
"title": "Match",
"default": "exact"
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Results"
}
}
}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`.
{
"type": "object",
"title": "tool_search_meaningArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "What the verse should MEAN, in any language"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null,
"description": "Restrict to a single daftar (1-6)"
}
}
}{
"type": "object",
"$defs": {
"MeaningHit": {
"type": "object",
"title": "MeaningHit",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug",
"score"
],
"properties": {
"score": {
"type": "number",
"title": "Score",
"description": "Cosine similarity between query and beyt, 0..1"
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "MeaningSearchResponse",
"required": [
"query"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"query": {
"type": "string",
"title": "Query"
},
"status": {
"type": "string",
"title": "Status",
"default": "ok",
"description": "'ok' | 'unavailable' (index not built / no key) | 'error'"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/MeaningHit"
},
"title": "Results",
"default": []
},
"total_indexed": {
"type": "integer",
"title": "Total Indexed",
"default": 0
}
}
}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.
{
"type": "object",
"title": "tool_lookupArguments",
"properties": {
"after": {
"type": "integer",
"title": "After",
"default": 0,
"maximum": 20,
"minimum": 0
},
"before": {
"type": "integer",
"title": "Before",
"default": 0,
"maximum": 20,
"minimum": 0
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
},
"citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Citation",
"default": null,
"description": "Citation like 'M3:1278' or 'g:7421'"
},
"beyt_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Beyt Global",
"default": null
},
"beyt_in_daftar": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Beyt In Daftar",
"default": null
}
}
}{
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "LookupResponse",
"required": [
"primary"
],
"properties": {
"primary": {
"$ref": "#/$defs/Beyt"
},
"context_after": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Context After",
"default": []
},
"context_before": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Context Before",
"default": []
}
}
}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.
{
"type": "object",
"title": "tool_verifyArguments",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"description": "Candidate Rumi quote in Persian"
},
"fuzzy_threshold": {
"type": "number",
"title": "Fuzzy Threshold",
"default": 0.82,
"maximum": 1,
"minimum": 0.5
}
}
}{
"type": "object",
"$defs": {
"VerifyMatch": {
"type": "object",
"title": "VerifyMatch",
"required": [
"citation",
"mesra1",
"mesra2",
"similarity",
"match_kind"
],
"properties": {
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation"
},
"match_kind": {
"type": "string",
"title": "Match Kind",
"description": "'exact' or 'fuzzy'"
},
"similarity": {
"type": "number",
"title": "Similarity"
}
}
}
},
"title": "VerifyResponse",
"required": [
"status"
],
"properties": {
"notes": {
"type": "string",
"title": "Notes",
"default": ""
},
"status": {
"type": "string",
"title": "Status",
"description": "'exact', 'fuzzy', or 'not_found'"
},
"matches": {
"type": "array",
"items": {
"$ref": "#/$defs/VerifyMatch"
},
"title": "Matches",
"default": []
},
"query_normalized": {
"type": "string",
"title": "Query Normalized",
"default": ""
}
}
}get_section
Retrieve a full section (story / بخش) with all its beyts.
{
"type": "object",
"title": "tool_get_sectionArguments",
"properties": {
"slug": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Slug",
"default": null,
"description": "Stable URL slug"
},
"section_id": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Section Id",
"default": null
}
}
}{
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "SectionDetail",
"required": [
"id",
"slug",
"title_fa",
"daftar"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Beyts",
"default": []
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}table_of_contents
Browse the Masnavi's section list. Returns titled sections per daftar with beyt counts and ranges.
{
"type": "object",
"title": "tool_tocArguments",
"properties": {
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
}{
"type": "object",
"$defs": {
"TocNode": {
"type": "object",
"title": "TocNode",
"required": [
"id",
"slug",
"title_fa",
"daftar"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/TocNode"
},
"title": "Children",
"default": []
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}
},
"title": "TocResponse",
"required": [
"nodes"
],
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/$defs/TocNode"
},
"title": "Nodes"
},
"daftar": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
}random_beyt
Return a randomly-selected beyt, optionally restricted to a daftar.
{
"type": "object",
"title": "tool_randomArguments",
"properties": {
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
}{
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In 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.
{
"type": "object",
"title": "tool_rangeArguments",
"properties": {
"end": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "End",
"default": null,
"description": "End citation, e.g. 'M2:2775'"
},
"start": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Start",
"default": null,
"description": "Start citation, e.g. 'M2:2608'"
},
"end_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "End Global",
"default": null
},
"start_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Start Global",
"default": null
}
}
}{
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
},
"RangeSection": {
"type": "object",
"title": "RangeSection",
"required": [
"section_id",
"slug",
"title_fa",
"daftar",
"order_in_parent"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Beyts",
"default": []
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"order_in_parent": {
"type": "integer",
"title": "Order In Parent"
}
}
}
},
"title": "RangeResponse",
"required": [
"start_citation",
"end_citation",
"total_beyts",
"total_sections"
],
"properties": {
"sections": {
"type": "array",
"items": {
"$ref": "#/$defs/RangeSection"
},
"title": "Sections",
"default": []
},
"total_beyts": {
"type": "integer",
"title": "Total Beyts"
},
"end_citation": {
"type": "string",
"title": "End Citation"
},
"start_citation": {
"type": "string",
"title": "Start Citation"
},
"total_sections": {
"type": "integer",
"title": "Total Sections"
}
}
}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).
{
"type": "object",
"title": "tool_find_sectionsArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 30,
"maximum": 100,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "story title words (Persian) or a description of the story in any language"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
}{
"type": "object",
"$defs": {
"SectionMatch": {
"type": "object",
"title": "SectionMatch",
"required": [
"id",
"slug",
"title_fa",
"daftar",
"order_in_parent"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"match": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Match",
"default": null
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Last Citation",
"default": null
},
"first_citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "First Citation",
"default": null
},
"order_in_parent": {
"type": "integer",
"title": "Order In Parent"
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}
},
"title": "FindSectionsResponse",
"required": [
"query",
"total"
],
"properties": {
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"sections": {
"type": "array",
"items": {
"$ref": "#/$defs/SectionMatch"
},
"title": "Sections",
"default": []
}
}
}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'.
{
"type": "object",
"title": "tool_explainArguments",
"required": [
"citation"
],
"properties": {
"citation": {
"type": "string",
"title": "Citation",
"description": "Citation like 'M1:1' or 'M3:1278' or 'g:7421'."
}
}
}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.
{
"type": "object",
"title": "tool_search_divanArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "Persian text to search for"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0
}
}
}{
"type": "object",
"$defs": {
"DivanSearchHit": {
"type": "object",
"title": "DivanSearchHit",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2",
"ghazal_title"
],
"properties": {
"rank": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rank",
"default": null
},
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"ghazal_title": {
"type": "string",
"title": "Ghazal Title"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
}
},
"title": "DivanSearchResponse",
"required": [
"query",
"total",
"results"
],
"properties": {
"match": {
"type": "string",
"title": "Match",
"default": "exact"
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/DivanSearchHit"
},
"title": "Results"
}
}
}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.
{
"type": "object",
"title": "tool_search_divan_meaningArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 8,
"maximum": 30,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "What the ghazal should be ABOUT, in any language"
}
}
}{
"type": "object",
"$defs": {
"GhazalBeyt": {
"type": "object",
"title": "GhazalBeyt",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2"
],
"properties": {
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
},
"DivanMeaningHit": {
"type": "object",
"title": "DivanMeaningHit",
"required": [
"ghazal",
"citation",
"slug",
"title_fa",
"beyt_count",
"score",
"match_kind"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"score": {
"type": "number",
"title": "Score",
"description": "Best cosine similarity for this ghazal, 0..1"
},
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"citation": {
"type": "string",
"title": "Citation"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"best_beyt": {
"anyOf": [
{
"$ref": "#/$defs/GhazalBeyt"
},
{
"type": "null"
}
],
"default": null
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count"
},
"match_kind": {
"type": "string",
"title": "Match Kind",
"description": "'beyt' (a couplet matched), 'ghazal' (the whole ghazal's theme matched), or 'both'"
},
"best_beyt_score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Best Beyt Score",
"default": null
}
}
}
},
"title": "DivanMeaningResponse",
"required": [
"query"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"query": {
"type": "string",
"title": "Query"
},
"status": {
"type": "string",
"title": "Status",
"default": "ok"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/DivanMeaningHit"
},
"title": "Results",
"default": []
},
"total_indexed_beyts": {
"type": "integer",
"title": "Total Indexed Beyts",
"default": 0
},
"total_indexed_ghazals": {
"type": "integer",
"title": "Total Indexed Ghazals",
"default": 0
}
}
}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) = «مرده بدم زنده شدم…».
{
"type": "object",
"title": "tool_get_ghazalArguments",
"properties": {
"number": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Number",
"default": null,
"description": "Ghazal number, e.g. 1393"
},
"citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Citation",
"default": null,
"description": "Divan citation like 'G1393' or 'G1393:2'"
}
}
}{
"type": "object",
"$defs": {
"GhazalBeyt": {
"type": "object",
"title": "GhazalBeyt",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2"
],
"properties": {
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
}
},
"title": "GhazalDetail",
"required": [
"ghazal",
"citation",
"slug",
"title_fa",
"beyt_count"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/GhazalBeyt"
},
"title": "Beyts",
"default": []
},
"ghazal": {
"type": "integer",
"title": "Ghazal",
"description": "Canonical ghazal number, 1..3230"
},
"excerpt": {
"type": "string",
"title": "Excerpt",
"default": "",
"description": "First hemistich of the ghazal"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "'G{n}' — cites the whole ghazal"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count"
},
"next_ghazal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Ghazal",
"default": null
},
"prev_ghazal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Prev Ghazal",
"default": null
}
}
}Prompts
3 advertised
explicate
Explicate a single beyt: its plain meaning, imagery, and Sufi themes, grounded in the corpus and any recorded commentary.
- citation
- Beyt citation, e.g. 'M1:1' or 'M3:1278'. (required)
find_parallels
Find and synthesize passages across the Masnavi that develop a given theme, image, or idea.
- theme
- A theme, image, or idea, e.g. 'the reed's separation', 'love as fire', 'the self / nafs'. (required)
trace_story
Locate a named story/parable in the Masnavi and read it end to end before discussing it.
- name
- A story or parable, e.g. 'the elephant in the dark', 'the merchant and the parrot', 'Moses and the shepherd'. (required)
Resources
2 advertised
res_about
masnavi://aboutres_schema
masnavi://schema90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 4 of 4 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 3434 ms
- 95th percentile latency
- 4256 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 2520 ms · 13 tool(s), 2 resource(s), 0 resource template(s), 3 prompt(s)
- · probe · passed · 4347 ms · metadata changed · 13 tool(s), 2 resource(s), 0 resource template(s), 3 prompt(s)
- · repository · passed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http masnavi-mcp https://masnavi.ai/mcpCodex
codex mcp add masnavi-mcp --url https://masnavi.ai/mcpCursor
{
"mcpServers": {
"masnavi-mcp": {
"url": "https://masnavi.ai/mcp"
}
}
}Cline
{
"mcpServers": {
"masnavi-mcp": {
"type": "streamableHttp",
"url": "https://masnavi.ai/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"masnavi-mcp": {
"type": "http",
"url": "https://masnavi.ai/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http masnavi-mcp https://masnavi.ai/mcpClaude Desktop
https://masnavi.ai/mcpWindsurf
{
"mcpServers": {
"masnavi-mcp": {
"serverUrl": "https://masnavi.ai/mcp"
}
}
}Let your agent find its tools
Find servers like Masnavi MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other documentation and reference servers
Do you run Masnavi MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.