Skip to main content
Glama
Sefaria Jewish Library MCP Server

Sefaria Jewish Library MCP Server

by Sivan22

значок кузнеца

Сервер MCP еврейской библиотеки Sefaria

Сервер MCP ( Model Context Protocol ), который обеспечивает доступ к еврейским текстам из библиотеки Sefaria . Этот сервер позволяет Large Language Models извлекать и ссылаться на еврейские тексты через стандартизированный интерфейс.

Функции

  • Получить еврейские тексты по ссылке

  • Получить комментарии к заданному тексту

  • Поиск в еврейской библиотеке по запросу

Related MCP server: Sefaria Jewish Library MCP Server

Установка

Требуется Python 3.10 или выше.

Клонировать репозиторий

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

Запуск сервера

Сервер можно запустить напрямую:

uv --directory path/to/directory run sefaria_jewish_library

Или через клиент MCP, который поддерживает протокол контекста модели. Для настольного приложения claude и cline следует использовать следующую конфигурацию:

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

Установка через Smithery

Чтобы автоматически установить еврейскую библиотеку Sefaria для Claude Desktop через Smithery :

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

Доступные инструменты

Сервер предоставляет следующие инструменты через интерфейс MCP:

получить_текст

Находит определенный еврейский текст по его ссылке.

Пример:

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

получить_комментарии

Извлекает список комментариев к заданному тексту.

Пример:

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

поиск_текстов

Поиск еврейских текстов в библиотеке Сефария на основе запроса.

Пример:

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

Разработка

В этом проекте используются:

  • MCP SDK для реализации сервера

  • API Sefaria для доступа к еврейским текстам

изображение

Требования

  • Питон >= 3.10

  • MCP SDK >= 1.1.1

  • API-интерфейс Sefaria

Лицензия

Лицензия Массачусетского технологического института

Available Tools

4 tools
get_commentariesC

get a list of references of commentaries for a jewish text

Inputs: reference (required).

get_daily_learningsC

get the daily or weekly learning schedule from Sefaria's calendar

Inputs: custom, day, diaspora, month, +2 more.

get_textC

get a jewish text from the jewish library

Inputs: reference (required).

search_textsC

search for jewish texts in the Sefaria library

Inputs: query (required), filters, size, slop.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: get_commentaries retrieves commentary references, get_daily_learnings fetches calendar schedules, get_text obtains specific texts, and search_texts performs library searches. The descriptions are precise, making it easy for an agent to select the correct tool without confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_commentaries, search_texts). The naming is uniform across all four tools, with 'get_' and 'search_' as clear action prefixes, enhancing predictability and readability.

    Tool Count4/5

    With 4 tools, the count is reasonable for a library server, covering core operations like retrieving texts, commentaries, schedules, and searching. It is slightly lean but well-scoped; adding tools for updates or user interactions could enhance it, but it's not incomplete.

    Completeness4/5

    The tool set covers essential read-only operations for a Jewish library domain: accessing texts, commentaries, schedules, and searches. Minor gaps exist, such as no update, delete, or user-specific functions (e.g., saving favorites), but agents can work effectively with the provided tools for core queries.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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.
      23
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables LLMs to access and search Jewish texts from the Sefaria library through 15 MCP tools, including text retrieval, search, and manuscript access.
      28
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to access and query the Sefaria digital library of Jewish texts through natural language or direct tool calls.
      65 npm
      1
      MIT