The Sefaria Jewish Library MCP Server allows Large Language Models to interact with Jewish texts through a standardized interface.
- Retrieve specific Jewish texts: Use the
get_text
tool to fetch a text by its reference (e.g., "Genesis 1:1" or "שמות פרק ב פסוק ג"). - Retrieve commentaries: Use the
get_commentaries
tool to get a list of commentaries for a given text reference. - Search Jewish texts: Use the
search_texts
tool to search the Sefaria library with a query, filters, and customizable parameters like result size and slop for word distance.
Provides access to Jewish texts from the Sefaria digital library through tools for retrieving specific texts by reference, obtaining commentaries on a given text, and searching the library with customizable filters.
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
Running the Server
The server can be run directly:
Or through an MCP client that supports the Model Context Protocol. for claude desktop app and cline you should use the following config:
Installing via Smithery
To install Sefaria Jewish Library for Claude Desktop automatically via Smithery:
Available tools
The server provides the following tools through the MCP interface:
get_text
Retrieves a specific Jewish text by its reference.
Example:
get_commentaries
Retrieves a list of commentaries for a given text.
Example:
search_texts
Searches for Jewish texts in the Sefaria library based on a query.
Example:
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: truecustom
(string): If available, the weekly Haftarah will be returned for the selected customyear
,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:
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:
- 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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
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.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that provides powerful search capabilities for Jewish texts and literature. This server enables Large Language Models to search and reference Jewish texts through a standardized interface.Last updated -17PythonMIT License
- AsecurityAlicenseAqualityA TypeScript-based server that enables interaction with Jira, providing tools to execute JQL queries, manage tickets, list projects and statuses through natural language.Last updated -1124JavaScriptMIT License
- AsecurityAlicenseAqualityEnables Large Language Models to retrieve Jewish texts and commentaries from the Sefaria library through a standardized interface.Last updated -2PythonMIT License
- -securityFlicense-qualityA server that provides a website fetching tool via SSE transport, allowing users to retrieve content from specified URLs.Last updated -Python