Back to MCP directory
publicPublicdnsLocal runtime

sefaria-jewish-library-70v

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

article

README

🚀 Sefaria犹太图书馆MCP服务器

Sefaria犹太图书馆MCP服务器提供了对Sefaria图书馆中犹太文本的访问途径。它基于MCP(模型上下文协议),允许大型语言模型通过标准化接口检索和引用犹太文本,为相关研究和应用提供了便利。

smithery badge

✨ 主要特性

  • 按引用检索犹太文本
  • 获取特定文本的评论

📦 安装指南

需要Python 3.10或更高版本。

通过Smithery安装

要自动通过Smithery为Claude Desktop安装Sefaria犹太图书馆,可使用以下命令:

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

克隆仓库

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

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

可用工具

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

基础用法

get_text

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

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

获取给定文本的评论列表。

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

🔧 技术细节

该项目使用:

要求

  • 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