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 Code (Recommended)
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/mcpcan work in Grok and still fail in Claude. The server logs a warning at startup whenMCP_BASE_URLhas a port.
- Copy
.env.exampleto.env. - Set
MCP_BASE_URLto your public origin, with no path and no port. Example:https://jw-mcp.example.com. - Set
MCP_AUTH_SECRETto a long access key (at least 16 characters). - Keep
MCP_AUTH=true. HTTP mode with auth off is loopback-only. Do not disable auth in Docker. - Set
MCP_TRUST_PROXY=trueonly when exactly one proxy sits in front of the server and sets or appends the real client IP inX-Forwarded-For(Caddy, nginx, or a Cloudflare Tunnel). Leave it unset otherwise. - 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.
安装
npx -y jw-mcp配置
{
"mcpServers": {
"jw-mcp": {
"command": "npx",
"args": ["-y", "jw-mcp"]
}
}
}