
通过MCP协议使犹太图书馆对大型语言模型(LLM)开放
概览
一个MCP(模型上下文协议)服务器,提供强大的犹太文本和文学检索功能。该服务器使大型语言模型能够通过标准化界面搜索和引用犹太文本。 - 犹太文本和文学全文搜索 - 高级查询语法支持:- 字段特定搜索(text:term,reference:term,topics:term)- 布尔运算符(AND,OR)- 必缺词(+term,-term)- 短语搜索(“确切短语”)- 万用符(?,*)- 基于相关性的评分 - 丰富的搜索结果,包括参考文献、主题和高亮摘录 从这里下载并提取索引 或者通过支持模型上下文协议的MCP客户端。对于Claude桌面应用和Cline,你应该使用以下配置: 服务器通过MCP接口提供单一工具: 通过高级查询功能,对犹太图书馆进行全文检索。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,提供强大的犹太文本和文学检索功能。该服务器使大型语言模型能够通过标准化界面搜索和引用犹太文本。
特色
- 犹太文本和文学全文检索
- 高级查询语法支持:
- 特定领域搜索(文本:术语,参考文献:术语,主题:术语)
- 布尔算子(AND,OR)
- 必需/排除条款(+术语,-术语)
- 短语搜索(“精确短语”)
- 万能牌(?, *)
- 基于相关性的评分
- 丰富的搜索结果,包括参考文献、主题和高亮摘录
安装
需要 Python 3.10 或更高版本。
克隆仓库
获取索引
从这里下载并提取索引
安装依赖
运行服务器
服务器可以直接运行:
或者通过支持模型上下文协议的MCP客户端。 对于Claude桌面应用和Cline,你应该使用以下配置:
可用工具
服务器通过MCP接口提供单一工具:
full_text_search
通过高级查询功能,对犹太图书馆进行全文检索。
查询格式示例:
本页由 AI 翻译,技术细节请以原文为准。
README
Jewish Library MCP Server
An MCP (Model Context Protocol) 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.
Features
- Full-text search across Jewish texts and literature
- Advanced query syntax support:
- Field-specific search (text:term, reference:term, topics:term)
- Boolean operators (AND, OR)
- Required/excluded terms (+term, -term)
- Phrase search (‘exact phrase’)
- Wildcards (?, *)
- Relevance-based scoring
- Rich search results including references, topics, and highlighted excerpts
Installation
Requires Python 3.10 or higher.
Clone the repository
git clone https://github.com/sivan22/mcp-otzaria-server.git
cd mcp-otzaria-server
Get the index
download and extract the index from here
Install dependencies
pip install .
Running the Server
The server can be run directly:
uv --directory path/to/directory run jewish_library
Or through an MCP client that supports the Model Context Protocol. for claude desktop app and cline you should use the following config:
{
"mcpServers": {
"jewish_library": {
"command": "uv",
"args": [
"--directory",
"your/path/to/directory",
"run",
"jewish_library"
],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}
Available tools
The server provides a single tool through the MCP interface:
full_text_search
Performs a full-text search across the Jewish library with advanced query capabilities.
Example query formats:
# Basic search
"maimonides on prayer"
# Field-specific search
text:"love your neighbor" AND topics:mitzvot
# Required terms
+shabbat +candles
# Phrase search with topic filter
"four species" AND topics:sukkot
# Wildcard search
pray* AND reference:psalms
Search results include:
- Reference information
- Relevant topics
- Highlighted excerpts showing query matches
- Relevance score
Development
This project uses:
Requirements
- Python >= 3.10
- MCP SDK >= 1.1.1
- Tantivy search engine
License
MIT License
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →