Skip to main content

the jewish library, accessible to LLMs

Project description

MseeP.ai Security Assessment Badge 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

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

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

mseep_sefaria_jewish_library-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

mseep_sefaria_jewish_library-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mseep_sefaria_jewish_library-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mseep_sefaria_jewish_library-0.1.1.tar.gz
Algorithm Hash digest
SHA256 88b854c00aa99acfbf2845afadd59c248709c87d489b34f2e27a53cbf8b7bccd
MD5 96015ae7d720eaf0ea271b2a82666b1e
BLAKE2b-256 fd97f43c505f5a64422fed3d8c654f36ec486fe38d9765b1609b095c645b2aba

See more details on using hashes here.

File details

Details for the file mseep_sefaria_jewish_library-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_sefaria_jewish_library-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 084b0ce5874574d20fe1abd25c2b99065380947cf85a346e99b77d828200df1a
MD5 cabbd1df3ec9255f4cd23006afa093a4
BLAKE2b-256 b8557dc7d1b106acfc21bbd6fef65a185dd9dfe90179d5b27f0ec2deb576cc8c

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