Bible MCP Server
Exposes Bible content from bible-api.com for LLMs, enabling retrieval of verses, chapters, random verses, and Bible study prompts with support for multiple translations.
README
Bible MCP Server
A Model Context Protocol server that exposes Bible content from bible-api.com for Large Language Models like Claude.
Features
- Access Bible verses and chapters as resources
- Tools for retrieving verses by reference and getting random verses
- Support for multiple translations
- Prompt templates for Bible study
- True random verse generation from any book in the Bible
- Testament filtering (OT/NT) for random verses
- Comprehensive error handling
Add to Claude config
"Bible MCP": {
"command": "uvx",
"args": [
"bible-mcp"
]
}
Installation
From PyPI (recommended)
The simplest way to install Bible MCP is via pip:
pip install bible-mcp
From Source
Clone the repository and install dependencies:
git clone https://github.com/trevato/bible-mcp.git
cd bible-mcp
pip install -e .
Requirements:
- Python 3.10+
- Dependencies are managed via
pyproject.toml
Usage
Running with MCP Development Tools
The fastest way to test the server is with the MCP Inspector:
mcp dev bible_server.py
This will run the server and open a web interface for testing.
Installing in Claude Desktop
To use this server with Claude Desktop:
mcp install bible_server.py
After installation, you can access Bible content in your Claude conversations.
Direct Execution
You can also run the server directly:
python -m bible_server
Available Resources
Bible MCP provides the following resources:
Chapter Resource
bible://{translation}/{book}/{chapter}
Example: bible://web/JHN/3 (John chapter 3 from the World English Bible)
Verse Resource
bible://{translation}/{book}/{chapter}/{verse}
Example: bible://kjv/JHN/3/16 (John 3:16 from the King James Version)
Random Verse Resource
bible://random/{translation}
Example: bible://random/web (Random verse from the World English Bible)
Available Tools
Get Verse by Reference
get_verse_by_reference(reference: str, translation: str = "web") -> str
Parameters:
reference: Bible reference (e.g., "John 3:16", "Matthew 5:1-10")translation: Translation ID (default: "web")
Example:
get_verse_by_reference("Psalm 23:1", "kjv")
Get Random Verse
get_random_verse_tool(translation: str = "web", testament: Optional[str] = None) -> str
Parameters:
translation: Translation ID (default: "web")testament: Optional filter for "OT" (Old Testament) or "NT" (New Testament)
Example:
get_random_verse_tool(translation="web", testament="NT")
List Available Translations
list_available_translations() -> str
Returns a formatted list of all available Bible translations.
Prompts
Analyze Verse Prompt
analyze_verse_prompt(reference: str) -> str
Creates a prompt for analyzing a specific Bible verse.
Example:
analyze_verse_prompt("John 3:16")
Find Verses on Topic Prompt
find_verses_on_topic_prompt(topic: str) -> str
Creates a prompt for finding verses on a specific topic.
Example:
find_verses_on_topic_prompt("love")
Supported Translations
Bible MCP supports multiple translations through the bible-api.com service:
- World English Bible (web) - Default
- King James Version (kjv)
- American Standard Version (asv)
- Bible in Basic English (bbe)
- And many more...
Run the list_available_translations tool to see all available translations.
Examples
Example: Getting John 3:16 from the Web UI
When running mcp dev bible_server.py, you can navigate to the Web UI and:
- Select the "Resources" tab
- Enter
bible://web/JHN/3/16in the URI field - Click "Read Resource"
Example: Using Bible MCP in an LLM Tool
from mcp import ClientSession, StdioServerParameters
import asyncio
async def use_bible_mcp():
server_params = StdioServerParameters(
command="python",
args=["bible_server.py"],
)
async with ClientSession.from_stdio_server(server_params) as session:
# Initialize session
await session.initialize()
# Get a verse
content, _ = await session.read_resource("bible://web/JHN/3/16")
print(content)
# Use a tool
result = await session.call_tool(
"get_random_verse_tool",
{"testament": "NT"}
)
print(result.content[0].text)
if __name__ == "__main__":
asyncio.run(use_bible_mcp())
Development
See CONTRIBUTING.md for details on how to contribute to this project.
Credits
This project uses the Bible API service provided by bible-api.com.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。