Back to MCP directory
publicPublicdnsLocal runtime

Sivan22_mcp-sefaria-server

一个基于MCP协议的服务器,提供对Sefaria犹太图书馆中犹太文本的访问服务,支持通过标准接口检索犹太文本及其注释。

article

README

🚀 Sefaria犹太图书馆MCP服务器

Sefaria犹太图书馆MCP服务器提供对Sefaria犹太文本库的访问,借助标准化接口,大型语言模型能够轻松检索和引用犹太教文本,为相关研究和应用提供有力支持。

点击访问

✨ 主要特性

  • 可按引用检索犹太教文本。
  • 能够检索特定文本的注释。

📦 安装指南

需要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桌面应用程序和命令行工具,请使用以下配置:

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

💻 使用示例

提供的工具

通过MCP接口提供了以下实用工具:

get_text

按引用检索特定犹太教文本。

示例:

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

get_commentaries

为给定的文本检索注释列表。

示例:

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

🔧 技术细节

该项目使用以下工具和接口实现:

要求

  • Python >= 3.10
  • MCP SDK >= 1.1.1
  • Sefaria API

📄 许可证

本项目采用MIT License授权。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client