Skip to main content
Glama
stackpwnies

bible-mcp

by stackpwnies

Bible MCP 服务器

一个 MCP 服务器,允许任何 AI 助手查找圣经经文、跨译本搜索,并比较不同版本如何翻译同一段落。

基于 Bible-json 数据集构建。涵盖 38 种以上语言的 100 多个版本,全部本地化,无需 API 密钥。

为什么存在这个项目

大多数圣经 API 都有速率限制、需要密钥,或者只涵盖少数版本。实际的文本数据是免费提供的,但将其整合到 AI 工具中仍然很麻烦。

此服务器解决了这个问题。克隆数据,构建二进制文件,将你的 MCP 客户端指向它。搞定。你的 AI 现在可以在不访问远程服务的情况下提取任何版本的任何经文。

如果你正在构建圣经学习应用程序、进行神学研究,或者只是想让 Claude 能够查阅资料,这应该能为你节省一些时间。

Related MCP server: KARP Word Graph

你将获得什么

七个工具,全部只读,全部在本地运行:

工具

功能

bible_list_versions

查看可用的圣经版本,可按语言筛选

bible_list_books

列出给定版本中的所有书卷

bible_get_verse

获取单节经文

bible_get_chapter

获取整章经文

bible_get_passage

获取一段经文(例如 John 3:16-21)

bible_search

在版本内进行全文搜索

bible_compare

在多个译本中并排比较同一经文

版本名称非常灵活。使用 "KJV"、"King James Bible" 甚至部分匹配都可以。书卷名称的使用方式相同。

快速入门

1. 获取圣经数据

git clone https://github.com/Amosamevor/Bible-json.git ~/Bible-json

2. 安装与构建

git clone https://github.com/stackpwnies/bible-mcp.git
cd bible-mcp
bun install
bun run build

你需要 Bun。如果你还没有安装,请先安装它。你也可以跳过构建步骤,在开发过程中直接运行 bun run src/index.ts。

3. 添加到你的 MCP 客户端

Claude Code (~/.claude.json 或项目 .mcp.json):

{
  "mcpServers": {
    "bible": {
      "command": "/path/to/bible-mcp/bin/bible-mcp",
      "env": { "BIBLE_DATA_ROOT": "/path/to/Bible-json" }
    }
  }
}

Cursor / VS Code (.cursor/mcp.json):

{
  "mcpServers": {
    "bible": {
      "command": "/path/to/bible-mcp/bin/bible-mcp",
      "env": { "BIBLE_DATA_ROOT": "/path/to/Bible-json" }
    }
  }
}

不构建直接运行 (从源码运行):

{
  "mcpServers": {
    "bible": {
      "command": "bun",
      "args": ["run", "/path/to/bible-mcp/src/index.ts"],
      "env": { "BIBLE_DATA_ROOT": "/path/to/Bible-json" }
    }
  }
}

示例

连接后,你的 AI 助手可以处理如下请求:

"Look up John 3:16 in the KJV"

"Compare Psalm 23:1 across KJV, NIV, ESV, and NLT"

"Search for 'valley of the shadow of death' in the KJV"

"What English Bible versions are available?"

"Show me all of 1 Corinthians 13 in the NIV"

"How many books are in the King James Bible?"

语言

英语、中文、西班牙语、法语、德语、葡萄牙语、俄语、阿拉伯语、希伯来语、希腊语、韩语、意大利语、荷兰语、瑞典语、芬兰语、匈牙利语、捷克语、克罗地亚语、阿尔巴尼亚语、丹麦语、土耳其语、泰语、越南语、印尼语、巴斯克语、拉丁语、拉脱维亚语、毛利语、斯瓦希里语、乌克兰语、亚美尼亚语。某些语言有多个版本。英语有 44 个版本。

工作原理

服务器在首次访问时加载圣经 JSON 文件,并将最近使用的 5 个版本保留在内存中。没有数据库,没有运行中的服务器,没有网络调用。文件存储在磁盘上,按需读取,并进行缓存,以便快速重复查找。

版本解析支持缩写(KJV)、全名(King James Bible)和模糊匹配。书卷名称的处理方式相同。

要求

许可证

MIT

致谢

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    F
    maintenance
    Enables AI assistants to retrieve Bible passages from multiple translations (ESV, NIV, KJV, NASB, NKJV, NLT, AMP, MSG). Supports querying single or multiple passages and provides both MCP protocol integration and REST API endpoints.
    1
    10
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables semantic search of the KJV Bible and personal knowledge graph for scripture study, notes, prayers, and memory verses, all running locally with no cloud dependencies.
    MIT