Back to MCP directory
publicPublicdnsLocal runtime

mcp-sefaria-server

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

article

README

🚀 塞法里亚犹太图书馆MCP服务器

塞法里亚犹太图书馆MCP服务器是一个遵循模型上下文协议(MCP)的服务器,它提供了对Sefaria图书馆中犹太文本的访问途径。借助该服务器,大型语言模型能够通过标准化接口检索和引用犹太文本,为相关研究和应用提供了便利。

smithery badge

🚀 快速开始

本服务器允许大型语言模型通过标准化接口检索和引用犹太文本,为相关研究和应用提供了便利。

✨ 主要特性

  • 🔍 通过引用检索特定的犹太文本
  • 📝 获取给定文本的注释
  • 🔎 在犹太图书馆中搜索查询

📦 安装指南

需要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",
              "absolute/path/to/mcp-sefaria-server",
              "run",
              "sefaria_jewish_library"
          ],
          "env": {
            "PYTHONIOENCODING": "utf-8" 
          }
      }
  }
}

使用Smithery安装

通过Smithery自动为Claude桌面安装塞法里亚犹太图书馆:

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

💻 使用示例

可用工具

该服务器通过MCP接口提供以下工具:

get_text

通过引用检索特定的犹太文本。

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

get_commentaries

获取给定文本的注释列表。

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

search_texts

在塞法里亚图书馆中搜索犹太文本,基于查询。

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

🔧 技术细节

该项目使用:

image

要求

  • Python >= 3.10
  • MCP SDK >= 1.1.1
  • 塞法里亚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