# Ganjoor Poetry

> Ganjoor Poetry is a free MCP server for public data. Read and search classical Persian poetry from Ganjoor in your AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/sepehr071/ganjoor-mcp
- **MCP Registry name:** io.github.sepehr071/ganjoor-mcp
- **Categories:** [public data](https://ai-powered.com/categories/public-data), [books and literature](https://ai-powered.com/categories/books-and-literature)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ganjoor-mcp -- uvx ganjoor-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ganjoor-mcp -- uvx ganjoor-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ganjoor-mcp]
command = "uvx"
args = ["ganjoor-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ganjoor-mcp uvx -- ganjoor-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ganjoor-mcp": {
      "command": "uvx",
      "args": [
        "ganjoor-mcp"
      ]
    }
  }
}
```

## Tools

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_search` (name suggests: reads): Poems containing all the given words, with the matching couplet
- `gj_semantic_search` (name suggests: reads): Poems close in meaning to a theme or question
- `gj_find_verse` (name 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_book` (name 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

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

## Alternatives

- [Ganjoor MCP Server](https://ai-powered.com/mcp/ganjoor-mcp-server): Ganjoor MCP Server is an open-source MCP server for books and literature.
- [PoetryDB MCP Server](https://ai-powered.com/mcp/poetrydb-mcp-server): PoetryDB MCP Server is an open-source MCP server for books and literature.
- [pplog](https://ai-powered.com/mcp/pplog): pplog is an open-source MCP server for books and literature.
- [Developer Poetry](https://ai-powered.com/mcp/developer-poetry): Developer Poetry is an MCP server for books and literature.
- [Jainebooks Catalogue](https://ai-powered.com/mcp/jainebooks-catalogue): Jainebooks Catalogue is a free MCP server for books and literature.
- [海棠诗社](https://ai-powered.com/mcp/listing-mwenxcq0): 海棠诗社 is a free MCP server for books and literature.
- [PoemShip](https://ai-powered.com/mcp/poemship): PoemShip is an MCP server for books and literature.

---
Source: https://ai-powered.com/mcp/ganjoor-poetry
