Fetches and reads Jewish texts from the Sefaria library API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add sefaria --env PYTHONIOENCODING='<PYTHONIOENCODING>' -- uv --directory path/to/directory run sefaria_jewish_library~/.codex/config.toml
[mcp_servers.sefaria]
command = "uv"
args = ["--directory", "path/to/directory", "run", "sefaria_jewish_library"]
env = { PYTHONIOENCODING = "<PYTHONIOENCODING>" }
# codex mcp add sefaria --env PYTHONIOENCODING='<PYTHONIOENCODING>' -- uv --directory path/to/directory run sefaria_jewish_library~/.cursor/mcp.json
{
"mcpServers": {
"sefaria": {
"command": "uv",
"args": [
"--directory",
"path/to/directory",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "<PYTHONIOENCODING>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"sefaria": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"path/to/directory",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "<PYTHONIOENCODING>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"sefaria": {
"command": "uv",
"args": [
"--directory",
"path/to/directory",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "<PYTHONIOENCODING>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"sefaria": {
"command": "uv",
"args": [
"--directory",
"path/to/directory",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "<PYTHONIOENCODING>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"sefaria": {
"command": "uv",
"args": [
"--directory",
"path/to/directory",
"run",
"sefaria_jewish_library"
],
"env": {
"PYTHONIOENCODING": "<PYTHONIOENCODING>"
}
}
}
}Environment variables
PYTHONIOENCODING
Replace the placeholders with your own credentials and keep them out of version control.