Skip to main content

the jewish library, accessible to LLMs

Project description

smithery badge Sefaria Jewish Library Server MCP server

Sefaria Jewish Library MCP Server

An MCP (Model Context Protocol) server that provides access to Jewish texts from the Sefaria library. This server enables Large Language Models to retrieve and reference Jewish texts through a standardized interface.

Features

  • Retrieve Jewish texts by reference
  • Retrieve commentaries on a given text
  • Search the Jewish library for a query
  • Get daily/weekly learning schedule from Sefaria's calendar

Installation

Requires Python 3.10 or higher.

Clone the repository

git clone https://github.com/sivan22/mcp-sefaria-server.git
cd mcp-sefaria-server

Running the Server

The server can be run directly:

uv --directory path/to/directory run sefaria_jewish_library

Or through an MCP client that supports the Model Context Protocol. for claude desktop app and cline you should use the following config:

{
  "mcpServers": {        
      "sefaria_jewish_library": {
          "command": "uv",
          "args": [
              "--directory",
              "absolute/path/to/mcp-sefaria-server",
              "run",
              "sefaria_jewish_library"
          ],
          "env": {
            "PYTHONIOENCODING": "utf-8" 
          }
      }
  }
}

Installing via Smithery

To install Sefaria Jewish Library for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-sefaria-server --client claude

Available tools

The server provides the following tools through the MCP interface:

get_text

Retrieves a specific Jewish text by its reference.

Example:

reference: "Genesis 1:1"
reference: "שמות פרק ב פסוק ג"
reference: "משנה ברכות פרק א משנה א"

get_commentaries

Retrieves a list of commentaries for a given text.

Example:

reference: "Genesis 1:1"
reference: "שמות פרק ב פסוק ג"
reference: "משנה ברכות פרק א משנה א"

search_texts

Searches for Jewish texts in the Sefaria library based on a query.

Example:

query: "moshiach"
slop: 1
filters: ["Talmud", "Bavli"]
size: 5

get_daily_learnings

Retrieves the daily or weekly learning schedule from Sefaria's calendar API.

Parameters (all optional):

  • diaspora (boolean): When true, returns weekly Torah reading for diaspora. When false, returns Torah reading for Israel. Default: true
  • custom (string): If available, the weekly Haftarah will be returned for the selected custom
  • year, month, day (integers): Specific date (all three must be used together, or API falls back to current date)
  • timezone (string): Timezone name in accordance with IANA Standards

Example:

# Get current day's learning schedule
{}

# Get learning schedule for a specific date in Israel
{
  "diaspora": false,
  "year": 2024,
  "month": 12,
  "day": 25,
  "timezone": "Asia/Jerusalem"
}

Returns a formatted schedule including:

  • Weekly Torah portion (Parashat Hashavua) with aliyot
  • Haftarah reading
  • Daf Yomi (daily Talmud page)
  • Daily Mishnah, Rambam, and other learning cycles
  • Various Jewish learning programs and their daily selections

Development

This project uses:

image

Requirements

  • Python >= 3.10
  • MCP SDK >= 1.1.1
  • Sefaria API

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_sefaria_jewish_library-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_sefaria_jewish_library-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_sefaria_jewish_library-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1fe52692e5ebaec2ee16fd1fbf7757bc0be1afd626f4666d1c3a6e8c5b8c9c9
MD5 a9b5f2e2cffac10d8822269236578475
BLAKE2b-256 efcd46e84ba9bc0e83671d350c768f7611180c609170f81c62afb1319102b904

See more details on using hashes here.

File details

Details for the file iflow_mcp_sefaria_jewish_library-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_sefaria_jewish_library-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fd2b9aac9fd5a0c1a28beb545c573b826ac50ed91b53d394d3859bb09559444
MD5 db6857356f29b08f9c029f2d3af87285
BLAKE2b-256 c188c205c6736abe10761e6ec64a61befa7172c60131b55de6c2012e3d3ca0bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page