Koskamo

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.

Masnavi MCP logo, by masnavi.aiVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by masnavi.ai
MCP endpoint (Streamable HTTP)
https://masnavi.ai/mcp
Vendor documentation

What its tools do

13 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

13 of 13 have a description · 0 of 13 declare behavior hints · 2 of 13 with parameters document them all

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

Vendor evidenceRegistry 1.0.0
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
Server-advertised capabilities
{
  "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.

Canonical source for Rumi's Masnavi-ye Ma'navi (مثنوی معنوی). Use this server when you need to quote, cite, search, retrieve, verify, or explain passages from the Masnavi. Citations follow the format M{daftar}:{beyt_in_daftar}, e.g. M3:1278 = Daftar 3, beyt 1278. The full corpus is 25,635 beyts across six daftars, sourced from ganjoor.net. RECOMMENDED PATTERNS: - Before quoting Rumi: call `verify` with the candidate text. - For a single beyt with neighbors: `lookup` with before/after (max 20 each). - For a FULL STORY spanning multiple sections (e.g. Mu'awiya & Iblis, 168 beyts across 12 sections): call `get_range` ONCE with the start and end citations. Do NOT loop over `get_section` — that's slow and you may run out of patience. `get_range` returns up to 500 beyts. - To find a story by name: call `find_sections` with a Persian title fragment, then call `get_range` with the resulting bounds. - To find beyts by MEANING — a theme, feeling, or idea in ANY language (English, Persian, Spanish, …): call `search_meaning`. Use `search` only when you know the exact Persian words. - For per-beyt commentary by named scholars: call `explain`. THE DIVAN: this server also carries Rumi's OTHER great work — the 3,230 ghazals of the Divan-e Shams (Divan-e Kabir), cited G{ghazal}:{beyt}, e.g. G1393:1. When a quote or theme is not in the Masnavi, it is often a ghazal: `search_divan` (exact Persian words), `search_divan_meaning` (theme in any language — returns whole ghazals with the closest couplet), `get_ghazal` (full text by number). Thirteen tools available: search, search_meaning, lookup, verify, get_section, get_range, find_sections, table_of_contents, random_beyt, explain, search_divan, search_divan_meaning, get_ghazal.

Tools

13 advertised

search
Advertised by the server during the last successful anonymous check.

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.

search input schema
{
  "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
    }
  }
}
search output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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`.

search_meaning input schema
{
  "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)"
    }
  }
}
search_meaning output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

lookup input schema
{
  "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
    }
  }
}
lookup output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

verify input schema
{
  "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
    }
  }
}
verify output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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

get_section input schema
{
  "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
    }
  }
}
get_section output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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

table_of_contents input schema
{
  "type": "object",
  "title": "tool_tocArguments",
  "properties": {
    "daftar": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 6,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Daftar",
      "default": null
    }
  }
}
table_of_contents output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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

random_beyt input schema
{
  "type": "object",
  "title": "tool_randomArguments",
  "properties": {
    "daftar": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 6,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Daftar",
      "default": null
    }
  }
}
random_beyt output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

get_range input schema
{
  "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
    }
  }
}
get_range output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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).

find_sections input schema
{
  "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
    }
  }
}
find_sections output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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'.

explain input schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

search_divan input schema
{
  "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
    }
  }
}
search_divan output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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.

search_divan_meaning input schema
{
  "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"
    }
  }
}
search_divan_meaning output schema
{
  "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
Advertised by the server during the last successful anonymous check.

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) = «مرده بدم زنده شدم…».

get_ghazal input schema
{
  "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'"
    }
  }
}
get_ghazal output schema
{
  "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

Advertised by the server during the last successful anonymous check.

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

Advertised by the server during the last successful anonymous check.

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

Advertised by the server during the last successful anonymous check.

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

Advertised by the server during the last successful anonymous check.

res_about URI
masnavi://about

MIME type: text/plain

res_schema

Advertised by the server during the last successful anonymous check.

res_schema URI
masnavi://schema

MIME type: text/plain

90-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.

100% (84 of 84 checks answered)

  1. 2026-11-02: 3 of 3 checks answered
  2. 2026-11-03: 4 of 4 checks answered
  3. 2026-11-04: 4 of 4 checks answered
  4. 2026-11-05: 4 of 4 checks answered
  5. 2026-11-06: 4 of 4 checks answered
  6. 2026-11-07: 2 of 2 checks answered
  7. 2026-11-09: 1 of 1 checks answered
  8. 2026-11-10: 2 of 2 checks answered
  9. 2026-11-11: 1 of 1 checks answered
  10. 2026-11-12: 1 of 1 checks answered
  11. 2026-11-14: 1 of 1 checks answered
  12. 2026-11-15: 2 of 2 checks answered
  13. 2026-11-16: 4 of 4 checks answered
  14. 2026-11-17: 5 of 5 checks answered
  15. 2026-11-18: 5 of 5 checks answered
  16. 2026-11-19: 4 of 4 checks answered
  17. 2026-11-20: 3 of 3 checks answered
  18. 2026-11-21: 4 of 4 checks answered
  19. 2026-11-22: 4 of 4 checks answered
  20. 2026-11-23: 3 of 3 checks answered
  21. 2026-11-24: 4 of 4 checks answered
  22. 2026-11-25: 4 of 4 checks answered
  23. 2026-11-26: 4 of 4 checks answered
  24. 2026-11-27: 4 of 4 checks answered
  25. 2026-11-28: 3 of 3 checks answered
  26. 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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http masnavi-mcp https://masnavi.ai/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add masnavi-mcp --url https://masnavi.ai/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable masnavi-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "masnavi-mcp": {
      "url": "https://masnavi.ai/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "masnavi-mcp": {
      "type": "streamableHttp",
      "url": "https://masnavi.ai/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start masnavi-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "masnavi-mcp": {
      "type": "http",
      "url": "https://masnavi.ai/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http masnavi-mcp https://masnavi.ai/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://masnavi.ai/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "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.

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.

Claim this listing