Skip to main content
Glama

bible-cuv-mcp

和合本圣经 MCP 服务器 — 把完整的中文和合本圣经装进你的 AI 助手:本地运行、离线可用、零依赖。

English

底本口径(请先读) 本服务器的经文来自 bible-cuv-dataset, 底本为 1919 年和合本译文(圣经公会电子本字形):译文是 1919 年官话和合本, 字形为圣经公会通行电子本的规范化字形——不是 1919 年印本逐字原貌, 也不是 1988 年新标点本。全部已知偏离在数据集仓的 DEVIATIONS.md 中逐项公开。

这是什么

一个 Model Context Protocol(MCP)服务器, 把 66 卷 / 1,189 章 / 31,103 节和合本全文放在本地,供 Claude Code、Codex、 Cursor 等 MCP 客户端直接调用:查经文、搜关键词、取每日一节, 全程不联网、不调任何 API。

  • 纯 Python 标准库实现,无外部依赖,Python ≥ 3.9 即可运行;

  • 数据随仓自带(data/ 目录,约 11 MB),克隆下来就能用;

  • stdio 传输,手写 JSON-RPC(initialize / tools/list / tools/call)。

Related MCP server: Bible MCP

三个工具

工具

做什么

主要参数

get_passage

按书卷/章/节取经文,支持节范围

book(三字母码 JHN/中文名「约翰福音」/英文名 John)、chapter、verse_start、verse_end、script(simplified 默认/traditional)

search_verses

关键词检索(简繁双字段都查),返回命中总数与前若干节

keyword、limit(默认 20,上限 100)、testament(OT/NT,可选)

verse_of_the_day

每日一节:SHA-256(日期) mod 全经节数 确定性选取,同一日期在任何机器上永远同一节

date(YYYY-MM-DD,默认今天)

调用示例(经文为数据集原文):

  • get_passage {book: "约翰福音", chapter: 1, verse_start: 1, verse_end: 3} → 「太初有道,道与神同在,道就是神。……」

  • search_verses {keyword: "神爱世人"} → 共命中 1 节:约翰福音 3:16

  • verse_of_the_day {date: "2026-11-30"} → 历代志上 21:28

快速开始

git clone https://github.com/Ezra-Zhao/bible-cuv-mcp.git
cd bible-cuv-mcp
python3 server.py        # 启动后等待 MCP 客户端连接(stdio)
python3 test_mcp.py      # 自带实测:真调三个工具,21 项断言

接入配置

把下面片段里的路径换成你克隆到的实际路径。

Claude Code

claude mcp add bible-cuv -- python3 /path/to/bible-cuv-mcp/server.py

或写进 .mcp.json / ~/.claude.json:

{
  "mcpServers": {
    "bible-cuv": {
      "command": "python3",
      "args": ["/path/to/bible-cuv-mcp/server.py"]
    }
  }
}

Codex(~/.codex/config.toml)

[mcp_servers.bible-cuv]
command = "python3"
args = ["/path/to/bible-cuv-mcp/server.py"]

Cursor(.cursor/mcp.json,与上面的 JSON 片段同形)

{
  "mcpServers": {
    "bible-cuv": {
      "command": "python3",
      "args": ["/path/to/bible-cuv-mcp/server.py"]
    }
  }
}

数据与许可

  • 数据:来自 bible-cuv-dataset v1.0.0(66 卷 JSONL + 书卷索引,原样随仓附带),许可 CC BY 4.0(署名数据集仓),见 DATA-LICENSE.md。

  • 代码:MIT © 2026 Guangyi Zhao,见 LICENSE。

  • 经文本身为 1919 年译文,早已进入公有领域;本仓的标注口径见文首。

文件清单

server.py          MCP 服务器(标准库,手写 JSON-RPC)
test_mcp.py        实测脚本(21 项断言,期望值独立从数据重算)
data/books.json    书卷索引(66 卷)
data/books/*.jsonl 66 卷经文,一行一节(text 简体 / text_trad 繁体)

Available Tools

3 tools
get_passageA

按书卷、章、节取和合本经文(可给节范围;支持简体/繁体)。Get Bible verses by book/chapter/verse range (CUV).

Inputs: book (required), chapter (required), script, verse_end, +1 more.

search_versesB

按关键词检索和合本经文(简繁双字段都查),返回命中总数与前若干节。Search CUV verses by keyword.

Inputs: keyword (required), limit, testament.

verse_of_the_dayB

每日一节:按日期确定性选取一节经文(同一日期永远同一节)。Deterministic verse of the day for a date.

Inputs: date.

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 3 tools

    Disambiguation5/5

    Each tool targets a clearly different need: a deterministic daily verse, a reference-based passage lookup, and a keyword search. The descriptions make the boundary between 'known reference' (get_passage) and 'known words' (search_verses) explicit, so an agent can select reliably.

    Naming Consistency4/5

    All names are snake_case and readable, with get_passage and search_verses following a verb_noun pattern. verse_of_the_day is noun-only rather than verb-led, a minor deviation but still unambiguous.

    Tool Count4/5

    Three tools is at the thin end but justified for a read-only scripture lookup server—retrieval, search, and a daily verse cover the core use cases. A small addition (e.g., a book/chapter index) would round it out without bloat.

    Completeness3/5

    Lookup, range retrieval, keyword search, and a daily verse are covered, but there is no tool to list books/chapters or confirm valid book names and abbreviations, which is a common dead end for agents constructing references. No alternative translations or cross-reference support either, though those are secondary.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Bible verse lookup, search, and navigation, supporting multiple translations and books including Apocrypha.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Free, no-key MCP server for reading scripture from 35+ public-domain translations in 8 languages. Lets users fetch verses, chapters, and passages via natural language from any MCP client.
      7
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for Bible study, providing multi-version verse lookup, keyword/semantic search, cross-references, and word studies with original language and lexicon details.
      6
      MIT