Skip to main content
Glama

JW Research MCP

A remote Model Context Protocol server for traceable research across JW.org and the Watchtower Online Library. This project extends advenimus/jw-mcp with full WOL articles, publication pagination, direct library search, Study Bible footnotes, full-text cross-references, daily texts, caching, and optional server-side research synthesis with Kimi. Paragraphs, scriptures, related articles, and publication images retain direct source links for verification.

What is preserved

The original tool names and workflows remain available:

  • search_bible_books

  • get_bible_verse

  • get_verse_with_study

  • get_bible_verse_url

  • getWorkbookLinks / getWorkbookContent

  • getWatchtowerLinks / getWatchtowerContent

  • get_jw_captions

get_verse_with_study.fields now also accepts footnotes. WOL exposes translation footnotes separately from both study notes and marginal cross-references, so no content is duplicated between those fields.

Related MCP server: jw-org-mcp

Research tools

Tool

Purpose

get_footnotes

Full translation footnotes for a verse

get_article_full

Complete article with paragraph anchors, live inline links, images, and related material

get_article_media

Paginated full-size images, thumbnails, captions, alt text, and exact source anchors

get_related_content

Linked subheadings and WOL-recommended similar material

get_book_content

Bounded publication slices by sequential TOC entry and paragraph page

get_publication_toc

Direct article URLs, including natural TOC pages for large works

search_wol_library

Direct WOL full-text search

search_wol_media

Topic search for images across matching WOL articles

get_cross_references

Marginal references with complete cited verse text

get_daily_text

Daily scripture and comment for a date

analyze_research

Conversational Kimi K3 synthesis with evidence, URLs, confidence, gaps, and follow-ups

All network-backed responses contain:

{
  "metadata": {
    "source_url": "https://...",
    "timestamp": "2026-07-28T00:00:00.000Z",
    "cache_hit": false
  }
}

The default cache TTL is 15 minutes. Retrieval tools accept langwritten; supported WOL routes currently include E, S, F, X, I, T, J, KO, and U. Research retrieval tools support format: "json" and format: "markdown".

Markdown output uses clickable titles, paragraph source anchors, scripture references, footnotes, related articles, and image links. JSON output retains both plain text and source URLs for programmatic use.

Deep and conversational research

analyze_research supports four modes:

  • answer — direct evidence-based response

  • explore — map themes and connections

  • compare — contrast publications, passages, or time periods

  • verify — audit a claim and identify missing evidence

Use depth: "focused", "deep", or "exhaustive". For follow-up questions, pass a concise conversation_context; it preserves continuity but is never treated as source evidence. Every result includes a short answer, deep synthesis, source-linked key points, confidence ratings, consistency or tension findings, uncertainties, a source index, and suggested follow-ups.

For maximum accuracy, retrieve broad evidence in bounded pages first, include each block's source and source_url, and then call analyze_research.

Publication pagination

get_book_content treats chapter as a 1-based sequential entry in the publication TOC. A call returns at most three chapters and 25 paragraphs per chapter. Use page and next_page, or an explicit paragraph_range, to walk the content without placing an entire bound volume in one model context.

{
  "publication_code": "it",
  "chapter_range": "1-3",
  "page": 1,
  "page_size": 15,
  "langwritten": "E",
  "format": "json"
}

For large reference works such as Insight on the Scriptures, get_publication_toc also exposes WOL's natural TOC pages.

Local development

Requires Node.js 20 or newer.

npm install
npm run typecheck
npm test
npm start

To test Streamable HTTP:

cp .env.example .env
npm run build
MCP_TRANSPORT=http MCP_AUTH=false npm run start:http

Then run the MCP Inspector:

npx @modelcontextprotocol/inspector

Connect it to http://localhost:8080/mcp.

The live WOL smoke test is:

npm run build
node scripts/smoke-live.mjs

Environment variables

Variable

Default

Description

MCP_TRANSPORT

stdio

Use http for Railway

PORT / MCP_PORT

8080

HTTP listen port

MCP_BASE_URL

local URL

Public Railway URL used in OAuth metadata

MCP_AUTH

true

Set false only for isolated testing

MCP_AUTH_SECRET

—

Required when OAuth is enabled; minimum 8 characters

KIMI_API_KEY

—

Required only by analyze_research

KIMI_MODEL

kimi-k3

Kimi model used for research synthesis

KIMI_BASE_URL

https://api.moonshot.ai/v1

OpenAI-compatible Kimi API base URL

CACHE_TTL_SECONDS

900

In-memory fetch cache TTL

DEFAULT_LANGUAGE

E

Default langwritten value

Railway

The included multi-stage Dockerfile compiles TypeScript and the included railway.toml uses /health for deployment health checks. Configure the environment variables above, deploy, generate a Railway domain, then set MCP_BASE_URL to that exact https://... domain and redeploy.

The MCP endpoint is:

https://YOUR-RAILWAY-DOMAIN/mcp

Keep this connector separate from existing services until its retrieval and analysis behavior has been verified with your own research workflow.

Tests

The automated suite verifies:

  • footnotes remain distinct from study notes and cross-references

  • full-article paragraph numbering and marker preservation

  • linked paragraph citations, media captions, and related-material parsing

  • hard paragraph pagination bounds

  • cache-hit behavior

  • localized WOL route construction

  • schema-validated analyze_research JSON without Markdown fences

The live smoke test additionally verifies a real Insight TOC and pagination, WOL search, article media, related research trails, full-text cross-references, daily text parsing, and cached repeats.

Attribution and license

Forked from advenimus/jw-mcp. Licensed under the MIT license of the upstream project.

Available Tools

20 tools
analyze_researchB

Conduct conversational, evidence-bound JW research with Kimi K3. Supports deep synthesis, comparison, claim verification, source URLs, confidence, uncertainties, and follow-up questions.

Inputs: content (required), research_question (required), depth, research_mode, +1 more.

get_article_fullA

Get a complete WOL article with numbered paragraphs, exact paragraph source URLs, clickable inline references, images, and related material.

Inputs: url (required), format, langwritten.

get_article_mediaB

Get paginated images from one WOL article with full-size and thumbnail URLs, captions, alt text, dimensions, paragraph references, and exact source links.

Inputs: url (required), page, format, page_size, +1 more.

get_bible_verseA

Get plain Bible verse text from wol.jw.org. Returns just the verse text without study notes or additional content. For comprehensive study content including notes and cross-references, use get_verse_with_study instead.

Inputs: book (required), verse (required), chapter (required), langwritten.

get_bible_verse_urlA

Get the jw.org URL for a Bible verse or range of verses. Returns a direct link to view the scripture on jw.org. Supports single verses (e.g., verse: "18"), verse ranges (e.g., verse: "14-16"), and comma-separated verses (e.g., verse: "1,3,5" - will convert to range if contiguous). Use search_bible_books to find book numbers. Perfect for adding clickable scripture links to markdown documents.

Inputs: book (required), chapter (required), verse, langwritten.

get_book_contentA

Get a bounded, paginated slice of a publication. Chapter numbers are 1-based sequential TOC entries. At most 3 chapters and 25 paragraphs per chapter are returned per call.

Inputs: publication_code (required), page, format, chapter, +4 more.

get_cross_referencesA

Get Study Bible marginal cross-references for one verse, including the complete text of each referenced verse.

Inputs: book (required), verse (required), chapter (required), format, +1 more.

get_daily_textB

Get the daily text scripture and comment for a date.

Inputs: date, format, langwritten.

get_footnotesA

Get full Study Bible footnote text for one verse. Footnotes are kept distinct from study notes and marginal cross-references.

Inputs: book (required), verse (required), chapter (required), format, +1 more.

get_jw_captionsA

Fetches video captions from JW.org by video ID or URL. Accepts either a direct video ID (e.g., "pub-jwbvod25_17_VIDEO") or a JW.org URL (e.g., "https://www.jw.org/finder?srcid=jwlshare&wtlocale=E&lank=pub-jwbvod25_17_VIDEO")

Inputs: video_id (required), langwritten.

get_publication_tocC

Get a publication table of contents with direct article URLs. Large reference works expose natural TOC pages that can be walked with page/next_page.

Inputs: url, page, format, langwritten, +1 more.

get_verse_with_studyA

Get Bible verse(s) with comprehensive study content from wol.jw.org. Supports single verses or ranges (e.g., "14-16"). Returns verse text, study notes, cross-references, research articles from the Research Guide, and chapter outlines. Field selection allows you to customize what content is returned.

Inputs: book (required), verse (required), chapter (required), fetch, +3 more.

getWatchtowerContentA

STEP 2: Get the actual Watchtower article content after user chooses an article. Use this tool AFTER getWatchtowerLinks when user specifies which article they want (e.g., "Imitate the Faithful Angels" or "Look to Jehovah for Comfort"). Takes the RTF URL from Step 1 results, downloads the RTF file, parses it to clean plain text, and returns the formatted article content with proper structure and line breaks.

Inputs: url (required).

getWorkbookContentA

STEP 2: Get the actual CLM workbook content after user chooses a week. Use this tool AFTER getWorkbookLinks when user specifies which week they want (e.g., "May 5-11" or "June 30-July 6"). Takes the RTF URL from Step 1 results, downloads the RTF file, parses it to clean plain text, and returns the formatted workbook content with proper line breaks and structure.

Inputs: url (required).

search_bible_booksA

Search for Bible books by name or abbreviation. Returns book numbers (1-66) and names. Useful for finding the correct book number for other scripture tools. Examples: "matt" -> Matthew (40), "1 john" -> 1 John (62), "gen" -> Genesis (1).

Inputs: query (required), limit.

search_wol_libraryC

Search the Watchtower Online Library directly and return WOL article/topic results with excerpts and direct URLs.

Inputs: query (required), limit, format, language, +1 more.

search_wol_mediaA

Find relevant WOL publication images by topic. Searches WOL, scans matching articles, and returns bounded image results with captions and exact article/image links.

Inputs: query (required), format, language, image_limit, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: Bible verses, study content, publications, media, workbook/Watchtower materials, and research analysis. The step-by-step workflow tools (getWorkbookLinks/getWorkbookContent) are clearly paired, and overlapping tools like get_bible_verse vs get_verse_with_study are distinguished by depth of content. No confusion between tool purposes.

    Naming Consistency3/5

    The majority use a consistent 'verb_noun' pattern with snake_case (get_*, search_*), but three tools break this: getWorkbookLinks, getWorkbookContent (camelCase), and analyze_research (different verb). This inconsistency, while not severe, prevents a perfect score.

    Tool Count4/5

    20 tools is on the high end but appropriate for the broad scope of JW research, covering Bible study, publications, media, meeting materials, and AI-assisted analysis. Each tool serves a specific function without unnecessary redundancy, though a few could potentially be merged.

    Completeness5/5

    The tool surface covers all major JW research workflows: Bible verse access with study aids, publication browsing and content retrieval, media search, meeting materials (workbook and Watchtower), and advanced synthesis via analyze_research. The only possible gap is a more comprehensive publication search, but the library search and article tools mitigate this.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to the Watchtower Online Library (WOL) with advanced search capabilities, document retrieval, and multilingual support. Enables users to search and browse Jehovah's Witnesses publications through natural language interactions.
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that provides controlled, verifiable access to official jw.org content, enabling AI applications to search articles, retrieve full articles, and lookup scriptures without hallucinations.
      4
      16
      GPL 3.0
    • F
      license
      Not graded
      quality
      B
      maintenance
      An MCP server for Christian scholarship and research, providing read-only access to a SQLite corpus of 66-book BSB and 83-book WEB Bibles, original-language Greek/Hebrew word studies with Strong's and morphology, cross-references, patristic citations (Irenaeus, Justin Martyr, Apostolic Fathers), verse alignments, semantic and hybrid search over ~55,800 embeddings, and multi-work passage retrieval, interlinear lookup, and research-brief synthesis prompts.
      3
      -