Skip to main content
Glama
README.md
# Sefaria MCP Server

[![npm version](https://img.shields.io/npm/v/sefaria-mcp-server.svg)](https://www.npmjs.com/package/sefaria-mcp-server)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

An MCP (Model Context Protocol) server that provides access to [Sefaria](https://www.sefaria.org)'s library of Jewish texts - Torah, Talmud, Mishnah, Midrash, and thousands of commentaries.

Use this server to give Claude, Cursor, Windsurf, or any MCP-compatible AI assistant the ability to search, read, and explore Jewish texts.

## Features

- 📖 **Read any text** - Torah, Talmud, Mishnah, Midrash, Halacha, Kabbalah
- 🔍 **Full-text search** - Search across all texts in English or Hebrew
- 📚 **Get commentaries** - Rashi, Ramban, Ibn Ezra, and hundreds more
- 📅 **Daily learning** - Daf Yomi, Parsha, daily Rambam, and more
- 🔗 **Cross-references** - Find connections between texts

## Installation

```bash
npm install -g sefaria-mcp-server
```

Or run directly with npx:

```bash
npx sefaria-mcp-server
```

The installed CLI binary is also available as `sefaria-mcp`:

```bash
npx -y -p sefaria-mcp-server sefaria-mcp
```

## Configuration

No API key is required. The server uses Sefaria's public API.

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%AppData%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "sefaria": {
      "command": "npx",
      "args": ["-y", "sefaria-mcp-server"]
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project:

```json
{
  "mcpServers": {
    "sefaria": {
      "command": "npx",
      "args": ["-y", "sefaria-mcp-server"]
    }
  }
}
```

## Tools

### get_text

Get text by reference with Hebrew and English.

```
Reference formats:
- Torah: "Genesis 1:1", "Exodus 20:1-10"
- Talmud: "Berakhot 2a", "Shabbat 31a"
- Mishnah: "Mishnah Avot 1:1"
- Midrash: "Genesis Rabbah 1:1"
- Commentary: "Rashi on Genesis 1:1"
```

### search

Full-text search across all texts.

```
Examples:
- "love your neighbor"
- "tikkun olam"
- "ואהבת לרעך כמוך"
```

### get_links

Get commentaries and cross-references for a verse.

### get_parsha

Get this week's Torah portion.

### get_calendars

Get today's learning schedule (Daf Yomi, Parsha, daily Rambam, etc.).

### get_book_info

Get metadata about a book (structure, categories).

### get_related

Get related topics and community source sheets.

## Examples

Ask Claude:

> "What does Genesis 1:1 say? Show me the Hebrew and commentaries."

> "Search for texts about loving your neighbor"

> "What's this week's parsha?"

> "What's today's Daf Yomi?"

> "Find all the commentaries on Leviticus 19:18"

## Development

```bash
git clone https://github.com/abeperl/sefaria-mcp-server
cd sefaria-mcp-server
npm install
npm run build
npm start
```

## Credits

- Powered by [Sefaria](https://www.sefaria.org) - the free, open-source library of Jewish texts
- Built with the [Model Context Protocol](https://modelcontextprotocol.io) SDK

## License

MIT

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation4/5

Most tools have clearly distinct purposes: search, get_text, get_links, get_related, get_book_info, get_parsha, and get_calendars each target different resource types or access patterns. There is minor overlap between get_parsha and get_calendars because the calendar includes Parashat Hashavua, but descriptions clarify the distinction.

Naming Consistency4/5

Six of seven tools follow a consistent get_* noun pattern, which is predictable and readable. The lone 'search' tool is a reasonable verb-only exception but is a minor deviation from the otherwise uniform convention.

Tool Count5/5

Seven tools is a well-scoped set for a Jewish text research server. Each tool supports a distinct study workflow, and the count avoids both thinness and excessive surface area.

Completeness4/5

The surface covers core research workflows: searching, retrieving text, finding links and related sources, getting book metadata, and accessing calendar/parsha information. Minor gaps exist, such as listing available books or retrieving translation/version details directly, but these are likely workable via search and metadata.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues