סוכן AI מבוסס דפדפן המשמש כתלמיד חכם, מופעל על ידי Gemini (Vertex AI) עם גישה לשרתי MCP של ספריא ו-HebCal.
A browser-based AI agent that serves as a Torah scholar, powered by Gemini/Vertex AI with access to the official Sefaria and HebCal MCP servers for Jewish texts and calendar data.
mcp.sefaria.org for 15 tools: text retrieval, search, commentaries, manuscripts, topics, and morehebcal.com/mcp for Jewish calendar, holidays, zmanim, and candle lighting timesThe project has two deployment modes:
docs/Browser (HTML/CSS/JS)
↕ Direct API calls
↓
┌──────────────────────┐ ┌──────────────────┐
│ Gemini REST API │ │ Sefaria REST API │
│ (user provides key) │ │ (6 tools, CORS) │
└──────────────────────┘ └──────────────────┘
server.jsBrowser (HTML/CSS/JS)
↕ NDJSON streaming
Express Server (Node.js)
↕ Gemini Function Calling (agent loop)
↕
Gemini / Vertex AI
↕ selects & calls tools
↓
┌─────────────────────────┐ ┌───────────────────┐
│ Sefaria MCP (SSE) │ │ HebCal MCP (SSE) │
│ mcp.sefaria.org/sse │ │ hebcal.com/mcp │
│ 15 tools - Jewish texts │ │ Calendar & zmanim │
└─────────────────────────┘ └───────────────────┘
↓ fallback
┌─────────────────────────┐
│ Sefaria REST API │
│ (direct, 6 tools) │
└─────────────────────────┘
Sefaria MCP (15 tools):
| Tool | Description |
|——|————-|
| get_text | Retrieve Jewish texts by reference |
| text_search | Full library search |
| english_semantic_search | Embeddings-based similarity search |
| get_current_calendar | Jewish calendar learning schedule |
| get_links_between_texts | Cross-references between texts |
| search_in_book | Targeted search within a book |
| search_in_dictionaries | Dictionary lookups |
| get_english_translations | Available translations |
| get_topic_details | Topics in Jewish thought |
| get_text_or_category_shape | Hierarchical text structure |
| get_text_catalogue_info | Bibliographic/structural data |
| get_available_manuscripts | Historical manuscript metadata |
| get_manuscript_image | Manuscript image access |
| clarify_name_argument | Autocomplete for titles/topics |
| clarify_search_path_filter | Book name validation |
HebCal MCP: Jewish holidays, Shabbat times, date conversion, zmanim, Torah readings
A fully static version is available at cohyos.github.io/takmid_chacham — runs entirely in the browser with no backend.
To deploy your own:
Deploy from a branch, branch main, folder /docsThe static version calls Gemini and Sefaria APIs directly from the browser (6 tools). For the full 15+ MCP tools, use the Node.js server below.
# Get a free API key at https://aistudio.google.com/apikey
npm install
GEMINI_API_KEY=your-key npm start
# Requires Google Cloud project with Vertex AI API enabled
gcloud auth application-default login
npm install
VERTEX_PROJECT=your-project-id npm start
Then open http://localhost:3000
To make the agent accessible over the internet:
# Build and deploy
gcloud run deploy takmid-chacham \
--source . \
--set-env-vars "GEMINI_API_KEY=your-key" \
--allow-unauthenticated \
--region us-central1
FROM node:20-slim
WORKDIR /app
COPY package*.json ./
RUN npm ci --production
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
Works on any Node.js hosting: Railway, Render, Fly.io, Vercel (with serverless adapter), etc.
Copy .env.example to .env and configure:
| Variable | Required | Description |
|---|---|---|
VERTEX_PROJECT |
Option 1 | Google Cloud project ID |
VERTEX_LOCATION |
No | Region (default: us-central1) |
GEMINI_API_KEY |
Option 2 | Gemini API key |
GEMINI_MODEL |
No | Model name (default: gemini-2.0-flash) |
PORT |
No | Server port (default: 3000) |
SEFARIA_MCP_URL |
No | Custom Sefaria MCP endpoint (default: https://mcp.sefaria.org/sse) |
HEBCAL_MCP_URL |
No | Custom HebCal MCP endpoint (default: https://www.hebcal.com/mcp) |