AJ

advenimus/jw-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

43 stars 6 forks 质量 69 趋势 20

MCP耶和华见证人工具

概览

一个用于处理 JW.org 内容的MCP服务器——包含学习笔记、练习册材料、守望台文章和视频字幕的圣经查阅。 从Releases下载最新的jw-mcp.mcpb并打开——Claude Desktop会自动安装。 或者手动添加到配置中(~/Library/Application Support/Claude/claude_desktop_config.json 在 macOS,%APPDATA%\Claude\claude_desktop_config.json 在 Windows 上): 在一台带有公共HTTPS URL的机器上运行这个服务器,然后把这个URL粘贴到Grok、Claude.ai 或ChatGPT中作为自定义连接器。 Compose 将容器绑定为仅环回(127.0.0.1:8080)。不要在公共互联网上发布 8080 端口。在主机上放置反向代理,终止 TLS,并代理到 127.0.0.1:8080。 1. 将 .env.example 复制到 .env。2. 将 MCP_BASE_URL 设置为你的公开来源,没有路径。示例:https://jw-mcp.example.com. 3.将 MCP_AUTH_SECRET 设置为长访问密钥(至少 16 字符)。4. 保持 MCP_AUTH=true。

概述(AI 翻译)

一个用于处理 JW.org 内容的MCP服务器——包含学习笔记、练习册材料、守望台文章和视频字幕的圣经查阅。

快速启动

克劳德代码(推荐)

克劳德桌面

从Releases下载最新的jw-mcp.mcpb并打开——Claude Desktop会自动安装。

或者手动添加到你的配置中(macOS 上的 ~/Library/Application Support/Claude/claude_desktop_config.json,Windows 上的 %APPDATA%\Claude\claude_desktop_config.json):

其他MCP客户端(光标、风浪冲浪等)


Docker(自架)

在一台带有公共HTTPS URL的机器上运行这个服务器,然后把这个URL粘贴到Grok、Claude.ai 或ChatGPT中作为自定义连接器。

Compose 将容器绑定为仅环回([127.0.0.1:8080)。不要在公共互联网上发布端口 8080。在主机上放置反向代理,终止 TLS,并代理至 127.0.0.1:8080。

使用 443 端口。 Claude.ai 永远不会连接到其他端口的自定义连接器。它只显示“无法访问 MCP 服务器”。Grok 接受其他端口,所以像 https://host:18443/mcp 这样的 URL 在 Grok 中可能有效,但在 Claude 中仍然失败。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

JW MCP Server

An MCP server for working with JW.org content — Bible scripture lookup with study notes, workbook materials, Watchtower articles, and video captions.

Quick Start

claude mcp add jw-mcp -- npx -y jw-mcp

Claude Desktop

Download the latest jw-mcp.mcpb from Releases and open it — Claude Desktop will install it automatically.

Or add manually to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "jw-mcp": {
      "command": "npx",
      "args": ["-y", "jw-mcp"]
    }
  }
}

Other MCP Clients (Cursor, Windsurf, etc.)

npx -y jw-mcp

Docker (self-hosted)

Run this server on a machine with a public HTTPS URL, then paste that URL into Grok, Claude.ai, or ChatGPT as a custom connector.

Compose binds the container to loopback only (127.0.0.1:8080). Do not publish port 8080 on the public internet. Put a reverse proxy on the host, terminate TLS there, and proxy to 127.0.0.1:8080.

Use port 443. Claude.ai never connects to a custom connector on any other port. It only says “Couldn’t reach the MCP server”. Grok accepts other ports, so a URL like https://host:18443/mcp can work in Grok and still fail in Claude. The server logs a warning at startup when MCP_BASE_URL has a port.

  1. Copy .env.example to .env.
  2. Set MCP_BASE_URL to your public origin, with no path and no port. Example: https://jw-mcp.example.com.
  3. Set MCP_AUTH_SECRET to a long access key (at least 16 characters).
  4. Keep MCP_AUTH=true. HTTP mode with auth off is loopback-only. Do not disable auth in Docker.
  5. Set MCP_TRUST_PROXY=true only when exactly one proxy sits in front of the server and sets or appends the real client IP in X-Forwarded-For (Caddy, nginx, or a Cloudflare Tunnel). Leave it unset otherwise.
  6. Start it:
docker compose up --build -d

The connector URL is:

https://your-host/mcp

When you add the connector, the AI site opens a login page. Type the same access key you put in MCP_AUTH_SECRET.

Client Where to add it
Grok grok.com/connectors → New Connector → Custom
Claude.ai Customize → Connectors → Add custom connector
ChatGPT Settings → enable Developer mode → add the server URL

Local HTTP (http://localhost:8080) is fine for testing because compose binds loopback. Claude, ChatGPT, and Grok must reach a public HTTPS URL. A tunnel such as ngrok or Cloudflare Tunnel can expose that loopback port for a live click-test. Do not publish 8080 on 0.0.0.0.

在 GitHub 查看完整 README

安装

npx -y jw-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "jw-mcp": { "command": "npx", "args": ["-y", "jw-mcp"] } } }