Ganjoor Poetry
Read and search classical Persian poetry from Ganjoor in your AI client
Ganjoor Poetry is a free MCP server for public data. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add ganjoor-mcp -- uvx ganjoor-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"ganjoor-mcp": {
"command": "uvx",
"args": [
"ganjoor-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"ganjoor-mcp": {
"command": "uvx",
"args": [
"ganjoor-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ganjoor-mcp": {
"command": "uvx",
"args": [
"ganjoor-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"ganjoor-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"ganjoor-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add ganjoor-mcp -- uvx ganjoor-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ganjoor-mcp]
command = "uvx"
args = ["ganjoor-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ganjoor-mcp": {
"command": "uvx",
"args": [
"ganjoor-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Or run: gemini mcp add -s user ganjoor-mcp uvx -- ganjoor-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ganjoor-mcp": { "command": "uvx", "args": [ "ganjoor-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
GANJOOR_MCP_PROXYOptional 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.
About Ganjoor Poetry
Ganjoor Poetry connects an AI assistant to Ganjoor, the open library of more than 240 poets and about 139,000 poems. It is an unofficial, read-only server, so it can look things up but cannot log in, comment, vote or upload.
Its 18 tools, all prefixed gj_, cover full-text and semantic search, finding the poem a quoted couplet comes from, reading a poem with the meaning of each couplet, and browsing poets and books. It also reaches into meters and rhymes, recitations with audio links, rhetorical devices, word frequency, people and family trees, places with coordinates, and manuscript scans.
It runs locally over stdio with uvx ganjoor-mcp and needs Python 3.10+ through uv. No API key or account is required; an optional proxy variable helps where direct access to Ganjoor is blocked. Poem text comes back verbatim in Persian as compact JSON.
Tools this server provides (18)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 18 tools changes data; 14 names don't say.
From the server's own tool labels and tool names; not verified by us.
- gj_searchName suggests: reads
- Poems containing all the given words, with the matching couplet
- gj_semantic_searchName suggests: reads
- Poems close in meaning to a theme or question
- gj_find_verseName suggests: reads
- The poem and couplet a quoted line comes from
- gj_poem
- A poem with couplet meanings, summary, meter and rhyme
- gj_poem_extras
- Recitations, images, songs, related and quoting poems, comments
- gj_poets
- Poets with ids, years and eras
- gj_poet
- A poet's biography and books
- gj_bookName suggests: changes
- A book or section with its sub-sections and poems
- gj_faal
- A Hafez faal or a random poem
- gj_tajik
- Poems in Tajik Cyrillic script
- gj_meters
- Poetic meters with couplet counts
- gj_similar
- Poems sharing a meter and rhyme
- gj_recitations
- Recitations with mp3 links, votes and verse timing
- gj_literary
- Rhetorical devices and literary tags
- gj_words
- Word frequency in a poet's work or a book
- gj_people
- People and characters, relations and family trees
- gj_places
- Places named in poems, with coordinates
- gj_museum
- Manuscript and artifact scans from the Ganjoor museum
What it does
- Search by words or meaning
- Find poems that contain all given words, or poems close in meaning to a theme or question.
- Quoted-line lookup
- Identify the poem and couplet a line comes from, with its meaning and other poems that quote it.
- Poems with couplet meanings
- Read a poem with its summary, meter, rhyme and the plain-Persian meaning of each couplet.
- Meters and similar poems
- List poetic meters and find poems that share a meter and rhyme.
- Recitations and audio
- Get recitations of a poem or book with mp3 links, votes and verse timing.
- Hafez faal
- Draw a Hafez faal or a random poem, optionally from a chosen poet, with meanings.
- People, places and manuscripts
- Explore people and family trees, places named in poems, and museum manuscript scans.
Good for
- Identify which poem a remembered Persian couplet comes from
- Ask what a classical poem means, couplet by couplet
- Find poems on a theme such as time passing
- Find poems with the same meter and rhyme as a ghazal
- Collect recitation links for a poem
- Get a Hafez faal and an explanation
Pricing
Free
Free for personal and non-commercial use; commercial use needs a licence
Ganjoor Poetry FAQ
Does Ganjoor Poetry need an API key?
No. It needs no key or account; an optional proxy variable can be set if direct access to Ganjoor fails.
How do I install Ganjoor Poetry?
Run `uvx ganjoor-mcp`, or add it to Claude Code with `claude mcp add ganjoor -- uvx ganjoor-mcp`. It needs uv and Python 3.10+.
Can Ganjoor Poetry change anything on Ganjoor?
No. It is read-only and cannot log in, comment, vote or upload.
Can I use Ganjoor Poetry commercially?
It is free for personal and non-commercial use under the PolyForm Noncommercial License 1.0.0; company, paid-product or client use needs a separate licence.
What happens if semantic search is down?
It tries a second Ganjoor endpoint and then falls back to word search, noting that in the response.
Is Ganjoor Poetry free?
Yes. Ganjoor Poetry is free to use.
How do I add Ganjoor Poetry to Claude Code?
Run this command in your terminal: claude mcp add ganjoor-mcp -- uvx ganjoor-mcp
What are the best alternatives to Ganjoor Poetry?
The closest alternatives to Ganjoor Poetry are Ganjoor MCP Server, PoetryDB MCP Server, pplog, Developer Poetry and Jainebooks Catalogue.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
