EGW Writings MCP Server
Complete offline research platform for Ellen Gould White's writings with PDF generation and Docker deployment
š Quick Start
Start MCP Server Locally (Recommended)
Start EGW Chat CLI (Interactive Interface)
š API Key Security: The chat CLI will prompt you for your DeepSeek API key at the start of each session. Your API key is used only for that session and is not stored anywhere. Get your free API key at: https://platform.deepseek.com/
Quick Test Commands
Start with Docker (Alternative)
Start with Docker
š | š
š Overview
EGW Writings MCP Server is a comprehensive platform for offline research of Ellen Gould White's writings, providing both Model Context Protocol (MCP) and HTTP REST API access with advanced PDF generation capabilities.
Key Components
š EGW Writings MCP Server: Dual-protocol server (MCP + HTTP API) with offline database
š„ Content Downloader: Bulk data extraction and database population tools
š Web Interface: Modern React-based research platform
š³ Docker Deployment: Production-ready containerization with GitHub Actions
Core Features
ā” Offline Operation: Complete independence from external services
š Advanced Search: FTS5 full-text search with sub-millisecond response times
š PDF Generation: On-demand PDF creation with customizable formatting
š Dual APIs: Both MCP and REST APIs for maximum compatibility
š³ Docker Ready: Multi-architecture containers (AMD64, ARM64)
š± Modern UI: Responsive web interface for research
š¦ Architecture
š Installation Options
Option 1: Docker (Recommended)
Option 2: Global NPM Installation
Option 3: Local Development
š§ Configuration
Environment Variables
NODE_ENV: Development/production modeLOG_LEVEL: Logging verbosity (debug, info, warn, error)PDF_CLEANUP_INTERVAL: PDF file cleanup frequency
MCP Client Configuration
Database Setup
š API Reference
HTTP REST API
MCP Tools
search_local- Full-text search with FTS5 highlightingget_local_book- Book information and metadataget_local_content- Chapter and paragraph contentlist_local_books- Paginated book listingsbrowse_by_reference- Navigation by EGW reference codesget_context- Contextual paragraph retrievalget_database_stats- Database metrics and statistics
š
š³ Docker & Production
Production Deployment
Build from Source
GitHub Actions
The project includes comprehensive CI/CD workflows:
šØ Build & Test: Automated testing and building on push/PR
š³ Docker Build: Multi-architecture container builds
š Security Scan: Vulnerability scanning with Trivy
š Documentation: Auto-deployment to GitHub Pages
š Release: Automated releases with Docker publishing
š Performance & Capabilities
Search Performance
Sub-millisecond search response times
FTS5 full-text search with ranking
Highlighted search results with context
Reference navigation (e.g., "AA 15.1", "DA 123")
PDF Generation
Customizable formatting: Page size, fonts, margins
Table of contents: Automatic generation with configurable depth
Background processing: Non-blocking PDF generation
Progress tracking: Real-time generation status
Automatic cleanup: Scheduled file cleanup
Database Features
SQLite with FTS5 full-text search
Efficient storage with reference indexing
Multi-language support (150+ languages)
Offline operation - no internet required after setup
šÆ Use Cases
Research Applications
Academic research on Ellen Gould White's writings
Topic compilation across multiple books
Reference verification and cross-referencing
Contextual analysis with surrounding paragraphs
Educational Use
Classroom instruction with offline access
Student research projects with PDF generation
Study materials creation with custom formatting
Reference lookup during presentations
Technical Integration
MCP clients (Claude, etc.) for AI-assisted research
REST API integration for custom applications
Docker deployment for institutional use
Batch processing for large-scale analysis
š¤ Contributing
We welcome contributions! Here's how to get started:
Development Workflow
Fork the repository
Create a feature branch from
mainMake your changes with tests
Run
pnpm lint && pnpm build && pnpm testSubmit a pull request
Development Commands
š Educational and Research Use
This platform is designed specifically for educational and research purposes related to Ellen Gould White's writings. The software:
Respects intellectual property rights and fair use guidelines
Provides tools for legitimate academic research
Enables offline access for educational institutions
Supports citation and reference verification
Key Benefits for Researchers
Complete offline access - No dependency on external services
Advanced search capabilities - Find specific passages quickly
PDF generation - Create formatted documents for study
Reference cross-linking - Navigate between related content
Context preservation - Maintain surrounding content for accuracy
Academic Citation
When using this software in academic work, please cite:
š Security & Privacy
No data collection: All processing happens locally
Open source: Fully auditable codebase
Security scanning: Automated vulnerability detection
Container security: Non-root user and minimal attack surface
š License
MIT License - Open source software for educational and research use.
See LICENSE for full terms.
šāāļø Support
š Documentation: https://surgbc.github.io/egh-research/
š Issues: GitHub Issues
š¬ Discussions: GitHub Discussions
š§ Email: Contact maintainers for security issues
Developed by
This server cannot be installed