What is Sefaria Jewish Library MCP Server?
Sefaria Jewish Library MCP Server is an MCP (Model Context Protocol) server that provides access to Jewish texts from the Sefaria library, enabling Large Language Models to retrieve and reference these texts through a standardized interface.
How to use Sefaria Jewish Library MCP Server?
To use the server, clone the repository from GitHub, navigate to the directory, and run the server using the provided commands. It can also be accessed through an MCP client that supports the Model Context Protocol.
Key features of Sefaria Jewish Library MCP Server?
- Retrieve Jewish texts by reference.
- Retrieve commentaries on a given text.
Use cases of Sefaria Jewish Library MCP Server?
- Accessing specific Jewish texts for study or research.
- Retrieving commentaries to enhance understanding of the texts.
- Integrating with AI applications for educational purposes.
FAQ from Sefaria Jewish Library MCP Server?
- What programming language is required to run the server?
Python 3.10 or higher is required to run the server.
- Can I run the server on my local machine?
Yes, you can run the server locally by following the installation instructions provided in the documentation.
- Is there any support for using this server with AI models?
Yes, the server is designed to work with Large Language Models through the Model Context Protocol.
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
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",
"C:/dev/mcp-sefaria-server",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}
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: "משנה ברכות פרק א משנה א"
Development
This project uses:
- MCP SDK for server implementation
- Sefaria API for accessing Jewish texts
Requirements
- Python >= 3.10
- MCP SDK >= 1.1.1
- Sefaria API
License
MIT License
