Sefaria

live Utility

Sefaria MCP — the free digital library of Jewish texts.

3 tools
0ms auth
free tier 50 calls/day

Tools

get_text

Fetch a passage of Jewish text from Sefaria by reference, in Hebrew and/or English. Works for Torah/Tanakh, Talmud, Mishnah, Midrash, Halacha, Kabbalah, and commentaries. Keyless.

No parameters required.

Try it
lookup_ref

Validate or autocomplete a Sefaria reference or title (e.g. "Genesis", "Rashi", "Berakhot"). Returns whether it is a valid reference/book and a list of completions. Keyless.

No parameters required.

Try it
get_commentaries

List the commentaries and cross-references on a passage (e.g. Rashi, Targum, quoting commentaries) from Sefaria's link graph. Keyless.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/sefaria/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/sefaria/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_text","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("get_text", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("sefaria mcp — the free digital library of jewish texts");