Skip to main content

the jewish library, accessible to LLMs

Project description

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:

  • MCP SDK for server implementation
  • Tantivy for full-text search capabilities

Requirements

  • Python >= 3.10
  • MCP SDK >= 1.1.1
  • Tantivy search engine

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_jewish_library-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_jewish_library-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mseep_jewish_library-0.1.0.tar.gz.

File metadata

  • Download URL: mseep_jewish_library-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_jewish_library-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fba6434f8023d3b76e64bb51c6c15ec371144bc3d8a8f011730781fb3fa64e86
MD5 0a8e070cf7907b32f54055ea726f9805
BLAKE2b-256 65c02ee2ff0d1792953e59c4c32df85289e53260bfff364533d1dec5a8f6f96a

See more details on using hashes here.

File details

Details for the file mseep_jewish_library-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_jewish_library-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 607d16601e387dd3cadf668b01104adb68b6136f0942683c4b060df22e82e001
MD5 b8c94158eefb89412cceeae968fcc436
BLAKE2b-256 65975d1b8e4fcb8579e11bb9db6d1f3bb577afb0e94199a3b8b54aba440ab6ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page