Sefaria Mcp Server

by abeperl

1 stars
264 downloads
Not rated
GitHub

About

MCP server for Sefaria - Access Jewish texts via Model Context Protocol

Details

Author
abeperl
GitHub stars
1
Downloads
264
Categories
Other

- Read any text – Torah, Talmud, Mishnah, Midrash, Halacha, Kabbalah.
- Full-text search in English or Hebrew across all texts.
- Retrieve commentaries (Rashi, Ramban, Ibn Ezra, and hundreds more).
- Daily learning schedules (Daf Yomi, Parsha, daily Rambam).
- Cross-references and links between texts.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Sefaria Mcp Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install globally with npm install -g sefaria-mcp-server or run directly via npx sefaria-mcp-server. No API key required. Configure in your MCP host (e.g., Claude Desktop, Cursor) by adding a JSON entry citing the server command and arguments as shown in the README.

get_text

Get Jewish text by reference. Supports Torah, Talmud, Mishnah, Midrash, and commentaries. Reference formats: - Torah: "Genesis 1:1", "Exodus 20:1-10", "Deuteronomy 6:4-9" - Talmud: "Berakhot 2a", "Shabbat 31a", "Bava Metzia 59b" - Mishnah: "Mishnah Avot 1:1", "Mishnah Berakhot 1:1" - Midrash: "Genesis Rabbah 1:1", "Tanchuma Bereshit 1" - Commentaries: "Rashi on Genesis 1:1" Returns Hebrew and English text with metadata.

search

Full-text search across all Jewish texts in Sefaria's library. Searches Torah, Talmud, Midrash, Halacha, and more. Supports English and Hebrew queries. Examples: "love your neighbor", "tikkun olam", "ואהבת לרעך כמוך"

get_links

Get all texts linked to a reference - commentaries (Rashi, Ramban, Ibn Ezra), cross-references, and related sources. Essential for deep Torah study and finding multiple perspectives on a verse.

get_parsha

Get this week's Torah portion (Parashat Hashavua) with Hebrew and English names.

get_calendars

Get today's Jewish learning schedule including: - Daf Yomi (daily Talmud page) - Parashat Hashavua (weekly Torah portion) - Haftarah - Daily Mishnah, Rambam, and more

get_book_info

Get metadata about a Jewish text - structure, categories, and length.

get_related

Get related topics and community source sheets for a reference.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

Sefaria MCP Server

npm version
License: MIT

An MCP (Model Context Protocol) server that provides access to Sefaria'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

npm install -g sefaria-mcp-server

Or run directly with npx:

npx sefaria-mcp-server

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

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):

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

Cursor

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

{
  "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

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

Credits

- Powered by Sefaria - the free, open-source library of Jewish texts
- Built with the Model Context Protocol SDK

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.