✦ Semantic AI Search · 507 Books · Any Language

Search Ellen G. White
writings with AI precision

A production-ready MCP server that brings semantic search, multi-query expansion, and LLM-powered re-ranking across the full corpus of Ellen G. White writings into any AI agent or workflow.

Try Live Search How it works
https://egw.integrateflowsystems.com/mcp/ click to copy
507
Books indexed
5-step
AI pipeline
Any
Language
MCP
Protocol

Pipeline

How the search works

Every query goes through a 5-step AI pipeline designed to find the most relevant passages — not just keyword matches.

1
🧠
Query understanding
Intent parsing
Before any search happens, the model parses the query to extract structured intent — in any language. It detects whether a specific EGW book is mentioned ("in the Great Controversy", "в великой борьбе", "en El Gran Conflicto"), resolves it to an internal book code (GC, DA, SC…), and if a chapter number is mentioned ("chapter 3", "глава 3"), converts it to the actual chapter title ("An Era of Spiritual Darkness") so the search can find the right content.
Book name detection (any language) Chapter number → title mapping Pinecone metadata filter
2
HyDE — Hypothetical Document Embedding
HyDE
The single highest-impact retrieval technique for EGW texts. Instead of embedding the user's question (which sits in a different semantic space than 19th-century theological prose), the model generates a hypothetical 3–5 sentence passage written in Ellen White's own voice that would answer the question. This synthetic passage embeds much closer to real EGW text in Pinecone — dramatically improving recall for questions phrased in modern language.
GPT writes in EGW style Bridges semantic gap Highest recall improvement
3
Multi-query parallel search
Multi-query expansion
In parallel with HyDE, the model generates 3 alternative formulations of the query — different angles, synonyms, and EGW-specific vocabulary. All 4–5 queries (original + HyDE + alternatives) are embedded and sent to Pinecone simultaneously. This covers different corners of the semantic space and retrieves passages that a single query would miss.
4–5 Pinecone queries in parallel Azure text-embedding-3-small Book + chapter filters applied
4
⚖️
Reciprocal Rank Fusion
RRF merge
Results from all queries are merged using Reciprocal Rank Fusion (RRF) rather than simple max-score. RRF scores each passage as the sum of 1/(k + rank) across all result lists — meaning a passage that ranks highly in multiple queries scores much higher than one with a single strong match. This surfaces passages that are consistently relevant, not just accidentally similar to one query variant.
Consistent relevance over accidental similarity No score normalization needed
5
🎯
LLM Re-ranking + Answer generation
Cross-encoder re-rank
The top 2× candidates from RRF are presented to GPT which evaluates each passage for relevance to the original question — reading the actual text, not just comparing vectors. The re-ranked top-K passages are then used to generate the final answer. If include_answer: true, gpt-5.3-chat produces a deep theological response with verbatim quotes, bilingual citations (original English + translation into the user's language), and commentary.
GPT evaluates text quality directly Bilingual quotes (EN + user language) gpt-5.3-chat synthesis

Corpus

Available books

507 Ellen G. White books, letters, and manuscripts are indexed. Here are the major works.

GCProphecy
The Great Controversy
The cosmic conflict from apostolic times to the end of the world
PPProphecy
Patriarchs and Prophets
From Creation to the reign of Israel's first king
PKProphecy
Prophets and Kings
From Solomon to the restoration after Babylon
EWProphecy
Early Writings
First visions and prophetic experiences
SRProphecy
The Story of Redemption
The great controversy from creation to the new earth
DAChrist
The Desire of Ages
The life, ministry, and sacrifice of Jesus Christ
SCChrist
Steps to Christ
The path to personal relationship with Jesus
AAChrist
Acts of the Apostles
The early church from Pentecost onward
COLChrist
Christ's Object Lessons
Studies in the parables of Jesus
MBChrist
Thoughts from the Mount of Blessing
Commentary on the Sermon on the Mount
MHHealth
The Ministry of Healing
Health principles, healing ministry, and wholeness
CHHealth
Counsels on Health
Practical guidance on physical and spiritual health
CDHealth
Counsels on Diet and Foods
Dietary principles and health reform
HLHealth
Healthful Living
A compilation on health and temperance principles
EdEducation
Education
True education: mental, physical, and spiritual development
CGFamily
Child Guidance
Principles for raising and educating children
AHFamily
The Adventist Home
Christian home, marriage, and family life
AYYouth
Messages to Young People
Counsel for youth on character, temptation, and purpose
FEEducation
Fundamentals of Christian Education
Philosophy and practice of Christian schools
1T–9TTestimonies
Testimonies for the Church (9 vols)
Personal and corporate counsel for the SDA church
1SM–3SMTestimonies
Selected Messages (3 vols)
Compiled doctrinal and practical counsel
TMTestimonies
Testimonies to Ministers
Guidance for church leadership and ministry
SpMTestimonies
Spalding and Magan Collection
Previously unpublished EGW materials
GWMinistry
Gospel Workers
Practical guidance for ministers and evangelists
EvMinistry
Evangelism
Methods and principles of soul-winning ministry
CSMinistry
Christian Service
Every member's call to active service
WMMinistry
Welfare Ministry
Ministry to the poor, sick, and marginalized

Plus hundreds of letters, manuscripts, periodical articles, and minor compilations — 507 sources total. Use get_book_list tool to query the full index.


Reference

Available tools

Read-only, idempotent tools exposed over the MCP protocol.

egw_search
semantic + page filter

Universal search. Auto-detects page references and switches to exact metadata filter; otherwise runs the full 5-step AI pipeline.

Parameters
queryreq
string
Question in any language. Min 3 / max 500 chars.
top_k
integer
Results to return, 1–20. Default 5.
book_id
string
Filter by book code e.g. "GC". Optional.
include_answer
boolean
Generate a deep GPT answer from passages. Default false.
json
{
  "name": "egw_search",
  "arguments": {
    "query": "что Елена Уайт писала о молитве",
    "top_k": 8,
    "include_answer": true
  }
}
egw_search_topic
all mentions

Comprehensive topic search — returns all passages on a theme. Higher default top_k. Use when you want a full collection of quotes on a subject.

Parameters
topicreq
string
Topic in any language. Examples: "prayer", "воспитание детей".
top_k
integer
Passages to return, 1–20. Default 10.
book_id
string
Optional book filter.
include_answer
boolean
Synthesized GPT answer from all passages. Default false.
egw_get_page
exact page

Returns the full content of a specific page using exact Pinecone metadata filter. Fast and precise when you already know the page reference.

Parameters
pagereq
integer
Page number, 1–9999.
book_id
string
Book code e.g. "DA". Optional.

Integration

How to connect

Streamable HTTP transport — the modern MCP standard. Works with Claude, n8n, Python, and any MCP client.

🖥 Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "egw": {
      "type": "http",
      "url": "https://egw.integrateflowsystems.com/mcp/"
    }
  }
}

⚡ n8n

In an MCP Client Tool node, set transport to Streamable HTTP:

url
https://egw.integrateflowsystems.com/mcp/

🐍 Python SDK

Use the official mcp library:

python
from mcp.client.streamable_http import streamablehttp_client

async with streamablehttp_client(
  "https://egw.integrateflowsystems.com/mcp/"
) as (r, w, _):
  # use r/w session
  ...

📡 Raw HTTP

Initialize a session with a POST to the endpoint:

http
POST /mcp/ HTTP/1.1
Host: egw.integrateflowsystems.com
Content-Type: application/json
Accept: application/json, text/event-stream

{"jsonrpc":"2.0","method":"initialize",
 "id":1,"params":{"protocolVersion":"2025-03-26",
 "clientInfo":{"name":"my-client","version":"1.0"},
 "capabilities":{}}}

Examples

What you can ask

The engine understands natural language in any language — English, Russian, Spanish, German, and more.

EN · search "What did Ellen White write about the Sabbath and true worship?"
EN · topic "prayer and morning devotion"
EN · page "Page 145 from The Desire of Ages"
RU · search "Что написала Елена Уайт о молитве и общении с Богом?"
RU · topic "воспитание детей и семейная жизнь"
RU · search "В великой борьбе глава 3 — о чём она?"
UA · search "Що Єлена Уайт писала про суботу і поклоніння?"
UA · topic "виховання дітей та сімейне життя"
ES · search "¿Qué escribió Elena White sobre la segunda venida de Cristo?"
ES · topic "oración y devoción matutina"
DE · search "Was schrieb Ellen White über Gesundheit und Enthaltsamkeit?"
DE · topic "Gebet und Morgenandacht"

Try it

Live search

Test the full pipeline live — query understanding, HyDE, multi-search, re-ranking, and answer generation. Sources appear instantly, answer streams in real time.

Sources
5
Filter
All categories
All categories
Prophecy & History
Life of Christ
Health & Lifestyle
Education & Family
Testimonies
Ministry & Church
No matches
All books
No matches