1. Conduid
  2. Developer Tools
  3. Sefaria MCP
MCP server · Developer Tools

Sefaria MCP

FastMCP Server for Sefaria

Unclaimed devtools
39Low

Scored 7 months ago · breakdown

About Sefaria MCP

Sefaria MCP is an MCP server published by Sefaria in the Developer Tools category: fastMCP Server for Sefaria.

The repository has 26 stars and 14 forks, with the last commit 15 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/Sefaria/sefaria-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Sefaria MCP

Powered by Claude · Grounded in docs

I know everything about Sefaria MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Sefaria MCP Server

A modern MCP (Model Context Protocol) server for accessing the Jewish library via the Sefaria API.

What does this server do?

This server exposes the Sefaria Jewish library as a set of 15 MCP tools, allowing LLMs and other MCP clients to:

Primary Tools:

  • get_text - Retrieve Jewish texts by reference (e.g., "Genesis 1:1")
  • text_search - Search across the entire Jewish library
  • get_current_calendar - Get situational Jewish calendar information
  • english_semantic_search - Semantic similarity search on English text embeddings (Currently only works from official Sefaria MCP)

Core Tools:

  • get_links_between_texts - Find cross-references and connections between texts
  • search_in_book - Search within a specific book or text work
  • search_in_dictionaries - Search Jewish reference dictionaries

Support Tools:

  • get_english_translations - Retrieve all available English translations for a text
  • get_topic_details - Retrieve detailed information about topics in Jewish thought
  • clarify_name_argument - Autocomplete and validate text names, book titles, and topics
  • clarify_search_path_filter - Convert book names to proper search filter paths

Structure Tools:

  • get_text_or_category_shape - Explore the hierarchical structure of texts and categories
  • get_text_catalogue_info - Get bibliographic and structural information (index) for a work

Manuscript Tools:

  • get_available_manuscripts - Access historical manuscript metadata and image URLs
  • get_manuscript_image - Download and process specific manuscript images

All endpoints are optimized for LLM consumption (compact, relevant, and structured responses).

What is MCP?

MCP (Model Context Protocol) is an open protocol for connecting Large Language Models (LLMs) to external tools, APIs, and knowledge sources. It enables LLMs to retrieve, reference, and interact with structured data and external services in a standardized way. Learn more in the MCP documentation.

How to Run

Prerequisites

  • Python 3.10+
  • Docker (optional, for containerized deployment)

Local Development

  1. Install dependencies:
    pip install -e .
    
  2. Run the server:
    python -m sefaria_mcp.main
    
    The server will be available at http://127.0.0.1:8088/sse by default. Set SEFARIA_MCP_PORT to override the SSE/API port (e.g., SEFARIA_MCP_PORT=8089 python -m sefaria_mcp.main). Prometheus metrics bind separately on SEFARIA_MCP_METRICS_PORT (default 9090).

Docker

  1. Build the image:
    docker build -t sefaria-mcp .
    
  2. Run the container:
    docker run -d --name sefaria-mcp \
        -e SEFARIA_MCP_PORT=8089 \
        -e SEFARIA_MCP_METRICS_PORT=9090 \
        -p 8089:8089 \
        -p 9090:9090 \
        sefaria-mcp
    
    The server will be available at http://localhost:8089/sse and metrics at http://localhost:9090/ (adjust the port mappings as needed).

Usage

  • Connect your MCP-compatible client to the /sse endpoint.
  • All tool endpoints are available via the MCP protocol.

Monitoring

  • Prometheus metrics are exposed via the standalone HTTP server started on SEFARIA_MCP_METRICS_PORT (defaults to 9090).
  • Scrape http://localhost:9090/ (or your configured host/port). Metrics include:
    • mcp_tool_calls_total{tool_name,status} – call counts per tool and status.
    • mcp_tool_duration_seconds{tool_name} – histogram of per-call durations.
    • mcp_tool_payload_bytes{tool_name} – histogram of response payload sizes.
    • mcp_errors_total{tool_name,error_type} – per-tool error counts.
    • mcp_active_connections – current SSE connection gauge.
    • Standard FastAPI instrumentation (request rate, latency, status codes, in-progress requests, etc.) from prometheus_fastapi_instrumentator.

Commit Hygiene

This repo uses semantic commits with the fix, feat, and chore keywords.

Acknowledgments

Special thanks to @Sivan22 for pioneering the first Sefaria MCP server (mcp-sefaria-server), which inspired this project and the broader effort to make Jewish texts accessible to LLMs and modern AI tools.

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Sefaria MCP

How do I install Sefaria MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Sefaria MCP safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Sefaria MCP still maintained?

Yes — the last commit was 15 days ago. The repository has 26 stars and 14 forks.