Sefaria/sefaria-mcp
If you are the rightful owner of sefaria-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Sefaria MCP Server provides access to the Jewish library through the Sefaria API, enabling interaction with Jewish texts and resources via the Model Context Protocol.
Sefaria MCP Server
A modern MCP (Model Context Protocol) server for accessing the Jewish library via the Sefaria API.
What does this server do?
This server exposes the Sefaria Jewish library as a set of 15 MCP tools, allowing LLMs and other MCP clients to:
Primary Tools:
- get_text - Retrieve Jewish texts by reference (e.g., "Genesis 1:1")
- text_search - Search across the entire Jewish library
- get_current_calendar - Get situational Jewish calendar information
- english_semantic_search - Semantic similarity search on English text embeddings (Currently only works from official Sefaria MCP)
Core Tools:
- get_links_between_texts - Find cross-references and connections between texts
- search_in_book - Search within a specific book or text work
- search_in_dictionaries - Search Jewish reference dictionaries
Support Tools:
- get_english_translations - Retrieve all available English translations for a text
- get_topic_details - Retrieve detailed information about topics in Jewish thought
- clarify_name_argument - Autocomplete and validate text names, book titles, and topics
- clarify_search_path_filter - Convert book names to proper search filter paths
Structure Tools:
- get_text_or_category_shape - Explore the hierarchical structure of texts and categories
- get_text_catalogue_info - Get bibliographic and structural information (index) for a work
Manuscript Tools:
- get_available_manuscripts - Access historical manuscript metadata and image URLs
- get_manuscript_image - Download and process specific manuscript images
All endpoints are optimized for LLM consumption (compact, relevant, and structured responses).
What is MCP?
MCP (Model Context Protocol) is an open protocol for connecting Large Language Models (LLMs) to external tools, APIs, and knowledge sources. It enables LLMs to retrieve, reference, and interact with structured data and external services in a standardized way. Learn more in the MCP documentation.
How to Run
Prerequisites
- Python 3.10+
- Docker (optional, for containerized deployment)
Local Development
- Install dependencies:
pip install -e .
- Run the server:
The server will be available at
python -m sefaria_mcp.main
http://127.0.0.1:8088/sse
by default.
Docker
- Build the image:
docker build -t sefaria-mcp .
- Run the container:
The server will be available at
docker run -d --name sefaria-mcp -p 8089:8088 sefaria-mcp
http://localhost:8089/sse
.
Usage
- Connect your MCP-compatible client to the
/sse
endpoint. - All tool endpoints are available via the MCP protocol.
Commit Hygiene
This repo uses semantic commits with the fix
, feat
, and chore
keywords.
Acknowledgments
Special thanks to @Sivan22 for pioneering the first Sefaria MCP server (mcp-sefaria-server), which inspired this project and the broader effort to make Jewish texts accessible to LLMs and modern AI tools.
License
MIT