Ganjoor Poetry MCP Server
Read-only Ganjoor (ganjoor.net) Persian poetry: poems with meanings, search, meters, audio.
Ganjoor Poetry scores 59 (Fair), with no SPDX license recorded and written in Python. It installs as a local process. It declares 18 tools. Filed under Search. GitHub shows 5 stars. Package registries report about 170 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
59 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Where the 59 comes from
22 + 20 + 3 + 0 + 4 + 10 = 59. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "sepehr071-ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ], "env": { "GANJOOR_MCP_PROXY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GANJOOR_MCP_PROXY | Optional | Optional HTTP proxy URL for the Ganjoor requests; system proxy settings are ignored. Also accepts a comma-separated list: one is used until it gets blocked or fails to connect, then the next. |
Tools18Tool docs quality grade C
All capabilitiesgj_booktoolA book or section: sub-sections and poems, paged
gj_faaltoolA Hafez faal, or a random poem (optionally of one poet), with meanings
gj_find_versetoolThe poem and couplet a quoted line comes from, with its meaning and other poems quoting it
gj_literarytoolRhetorical devices and literary tags of a poem, or lookups and stats
gj_meterstoolPoetic meters with couplet counts
gj_museumtoolManuscript and artifact scans from the Ganjoor museum
gj_peopletoolPeople and characters: info, relations, family trees, a book's cast
gj_placestoolPlaces named in poems, with coordinates
gj_poemtoolA poem by id or ganjoor.net path: couplets with meanings, summary, meter, rhyme, source, previous/next
gj_poem_extrastoolA poem's recitations, images, songs, related and quoting poems, comments
gj_poettoolA poet's biography and books
gj_poetstoolPoets with ids, years and eras, filtered by name or century
About
ganjoor-mcp: Ganjoor (گنجور) Persian poetry MCP server for AI agents
ganjoor-mcp is an unofficial, read-only MCP server that lets an AI agent read, search and explain classical Persian poetry on Ganjoor (گنجور, ganjoor.net), the open library of 240+ poets and 139,000 poems. Its 18 tools search poems by words or by meaning, find the poem a quoted line comes from, read a poem with the plain-Persian meaning of every couplet, browse poets and books, and explore meters, rhymes, recitations, rhetorical devices, word use, people, places and manuscript scans. No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client.
For AI agents · Quick start · Tools · Limits · فارسی
For AI agents
- What: unofficial MCP server (model context protocol) for ganjoor.net: full-text and semantic poem search, quoted-line lookup, poems with couplet meanings and summaries, poets, books, Hafez faal, meters and rhymes, recitations with verse timing, literary devices, word frequency, people and family trees, places, museum manuscripts, Tajik Cyrillic text.
- Install:
uvx ganjoor-mcporclaude mcp add ganjoor -- uvx ganjoor-mcp. Transport: stdio. Needs uv (Python 3.10+). - Auth: none. Optional
GANJOOR_MCP_PROXY(HTTP proxy URL, or a comma-separated list); system proxy settings are ignored. - Access: read-only. It cannot log in, comment, vote or upload. Works from any country.
- Tools: 18, all prefixed
gj_. Typical sequences:gj_semantic_searchorgj_search->gj_poem;gj_find_verse;gj_poets->gj_poet->gj_book->gj_poem->gj_poem_extras;gj_meters->gj_similar;gj_faal. - Use when: the user quotes a Persian couplet, asks what a poem means, wants a poem on a theme, asks about a poet, a meter, a recitation or a manuscript, or wants a Hafez faal.
- Output: compact JSON. Poem text is Persian and verbatim; numbers are ASCII. Meanings that start with «هوش مصنوعی:» are AI-written (Ganjoor regenerated them with Claude Opus 5.5 in November 2026); others are written by people.
Quick start
You need uv. No API key or account.
Claude Code:
claude mcp add ganjoor -- uvx ganjoor-mcp
Claude Desktop, Cursor, VS Code and other clients:
{
"mcpServers": {
"ganjoor": { "command": "uvx", "args": ["ganjoor-mcp"] }
}
}
Example prompts:
- "Which poem is «الا یا ایها الساقی ادر کاسا و ناولها» from, and what does it mean?"
- "Find Persian poems about the passing of time and seizing the moment."
- "Give me a Hafez faal and explain it."
- غزلهایی هموزن و همقافیهٔ این غزل سعدی پیدا کن.
- خوانشهای غزل اول حافظ را با لینک صوتی بیاور.
Real answer (21 Nov 2026): gj_find_verse(text="الا یا ایها الساقی ادر کاسا و ناولها") returned Hafez, ghazal 1, couplet 1, and listed five later poems that quote the line (Jami, Helali and others) under also_in.
Tools
| Tool | What it returns |
|---|---|
gj_search | Poems containing all the given words, with the matching couplet |
gj_semantic_search | Poems close in meaning to a theme or question, with score, summary and opening couplets |
gj_find_verse | The poem and couplet a quoted line comes from, with its meaning and other poems quoting it |
gj_poem | A poem by id or ganjoor.net path: couplets with meanings, summary, meter, rhyme, source, previous/next |
gj_poem_extras | A poem's recitations, images, songs, related and quoting poems, comments |
gj_poets | Poets with ids, years and eras, filtered by name or century |
gj_poet | A poet's biography and books |
gj_book | A book or section: sub-sections and poems, paged |
gj_faal | A Hafez faal, or a random poem (optionally of one poet), with meanings |
gj_tajik | Poems in Tajik Cyrillic script: search, or one poem |
gj_meters | Poetic meters with couplet counts |
gj_similar | Poems sharing a meter and rhyme, with their first couplet |
gj_recitations | Recitations of a poem or book, or the newest, with mp3 links, votes and verse timing |
gj_literary | Rhetorical devices and literary tags of a poem, or lookups and stats |
gj_words | Word frequency in a poet's work or a book, or the count of one word |
gj_people | People and characters: info, relations, family trees, a book's cast |
gj_places | Places named in poems, with coordinates |
gj_museum | Manuscript and artifact scans from the Ganjoor museum |
Limits
- Semantic search runs on a separate Ganjoor service (ganjgah.ir) that is sometimes down; the tool then tries api.ganjoor.net and falls back to word search, saying so in
note. - Word search is an AND match on normalized text: all words must appear. Quote the line or use fewer words.
- Recitations carry no duration (only file size); verse timing is per hemistich for the best-voted recitation.
- Literary-device tags cover only part of the corpus (mostly Hafez so far). Relation types
siblingandspouseingj_peopleare inferred, not documented by the API. - Long sections (Shahnameh, Masnavi) return 80 couplets by default; raise
max_coupletsup to 500.
فارسی
در آزمون ۲۳ نوامبر ۲۰۲۶، فهرستی که دستیار برای شناختن ۱۸ ابزار این پروژه گرفت ۱۲٬۹۱۲ بایت بود. فهرست ۴۴ ابزار سرور رسمی گنجور ۷۸٬۱۰۰ بایت بود. از هر دو سرور متن و معنی غزل ۱۷۰ حافظ را هم خواستیم. هر دو هر هشت بیت را با معنی آنها برگرداندند. طول پاسخ JSON در این پروژه ۲٬۲۰۲ نویسه و در سرور رسمی ۴٬۸۴۷ نویسه بود.
ganjoor-mcp یک سرور MCP غیررسمی و فقطخواندنی برای گنجور (ganjoor.net) است. با آن یک عامل هوش مصنوعی میتواند شعرها را با واژه یا با معنا جستوجو کند، شعرِ یک بیتِ از حفظخوانده را پیدا کند، شعر را با معنی سادهی هر بیت بخواند، میان شاعران و کتابها بگردد، فال حافظ بگیرد و وزنها، قافیهها، خوانشها، آرایههای ادبی، بسامد واژهها، شخصیتها، مکانها و نسخههای خطی موزه را ببیند. بدون حساب کاربری و کلید API کار میکند. نصب در Claude Code:
claude mcp add ganjoor -- uvx ganjoor-mcp
Development
uv sync
uv run ruff check . && uv run ruff format --check .
uv run python -m pytest -q # offline tests on recorded fixtures
uv run python -m pytest -m live -q # live calls to api.ganjoor.net and ganjgah.ir
Releases: bump the version in pyproject.toml and server.json, run uv lock, then push a v* tag; GitHub Actions publishes to PyPI.
Disclaimer
Unofficial and not affiliated with or endorsed by Ganjoor. It is read-only and uses the public API of ganjoor.net, which can change without notice. The poems are in the public domain; the compilation, meanings, summaries, recitations and scans are the work of Ganjoor and its contributors: please credit ganjoor.net when you use them, and consider supporting Ganjoor.
Author
Built and maintained by Sepehr Radmard (سپهر رادمرد). LinkedIn · GitHub · more servers in iran-mcp.
مجوز استفاده (License)
استفادهٔ شخصی و غیرتجاری رایگان است. استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه لینکدین یا گیتهاب با سپهر رادمرد تماس بگیرید. متن کامل: PolyForm Noncommercial 1.0.0.
Free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0. Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on LinkedIn or GitHub.
Frequently asked questions
What is Ganjoor Poetry MCP Server?
Read-only Ganjoor (ganjoor.net) Persian poetry: poems with meanings, search, meters, audio.
How do I install Ganjoor Poetry MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Ganjoor Poetry MCP Server runs locally from the PyPI package ganjoor-mcp with the command uvx ganjoor-mcp.
Does Ganjoor Poetry MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Ganjoor Poetry MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Ganjoor Poetry MCP Server provide?
Ganjoor Poetry MCP Server provides 18 tools, including gj_book, gj_faal, gj_find_verse, and gj_literary. See the full tool list for descriptions and parameters.
How is Ganjoor Poetry MCP Server's trust score calculated?
Ganjoor Poetry MCP Server scores 59 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.