# ganjoor-mcp-server

An MCP server for the Ganjoor API. Agents can read Persian classical poems, analyse metre and rhyme, and trace reply-poems. No API key needed.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: ganjoor
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ganjoor/ganjoor-mcp-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/ganjoor-mcp-server

## What it does

This server wires an agent into Ganjoor, a database of classical Persian poetry. It ships 44 tools: browsing poets and collections, reading a poem verse by verse, running prosody and rhyme analysis, tracing reply-poems between poets, and looking up recitations and commentary. Related-people and family-tree graphs are covered too.

Access is read-only and no API key is involved. The package runs through `npx` and needs Node.js 18.17 or newer. On Claude one line is enough: `claude mcp add ganjoor-mcp-server -- npx -y ganjoor-mcp-server`. Codex and Gemini CLI take their own commands; Cursor and GitHub Copilot expect a JSON config entry.

If your Node.js is older than 18.17, the server will not start — check the version first. The package installs locally and speaks stdio.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add ganjoor-mcp-server -- npx -y ganjoor-mcp-server
```

### Codex

**Platform CLI**
```bash
codex mcp add ganjoor-mcp-server -- npx -y ganjoor-mcp-server
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "ganjoor-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "ganjoor-mcp-server"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "ganjoor-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "ganjoor-mcp-server"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add ganjoor-mcp-server npx -y ganjoor-mcp-server
```

## When to use it
- find a poem by a Persian poet by title or number
- read a full poem with its verses split out
- analyse the metre and rhyme of a chosen poem
- trace reply-poems one poet wrote to another
- look up recitations and commentary for a poem

## Example prompts
- Find a Hafez poem about wine and list every verse
- Analyse the metre and rhyme of this poem
- Find reply-poems other poets wrote to this one

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
