biblical-linguistics-mcp
Provides Hebrew & Greek word study, full morphological parsing, cross-references, LXX alignment, and more from open-licensed data sources, usable by any MCP-compatible client.
README
Biblical Linguistics MCP
A production-quality Biblical Linguistic Research Agent exposed as a standalone MCP (Model Context Protocol) server in Python. Provides Hebrew & Greek word study, full morphological parsing, cross-references, LXX alignment, and more — all from free, open-licensed data sources.
Usable by any MCP-compatible client: Claude Desktop, Claude Code, OpenClaw, custom agents, etc.
Quick Start
# Clone the repo
git clone https://github.com/your-org/biblical-linguistics-mcp.git
cd biblical-linguistics-mcp
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
# Install dependencies
pip install -e ".[dev]"
# Bootstrap the database (downloads open datasets + builds SQLite DB)
python scripts/bootstrap.py
# Run the MCP server (stdio mode for Claude Desktop / Claude Code)
python -m biblical_linguistics_mcp --transport stdio
# Or run in SSE mode for network access
python -m biblical_linguistics_mcp --transport sse --port 8080
Configuration
| Option | CLI Flag | Env Var | Default |
|---|---|---|---|
| Transport mode | --transport stdio|sse |
— | stdio |
| SSE port | --port 8080 |
— | 8080 |
| SSE host | --host 0.0.0.0 |
— | 0.0.0.0 |
| Database path | --db /path/to/db |
BIBLICAL_LINGUISTICS_DB |
data/biblical_linguistics.db |
| Log level | --log-level DEBUG |
— | INFO |
MCP Integration Examples
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"biblical-linguistics": {
"command": "python",
"args": ["-m", "biblical_linguistics_mcp", "--transport", "stdio"],
"cwd": "/path/to/biblical-linguistics-mcp"
}
}
}
Claude Code
# Add as MCP server
claude mcp add biblical-linguistics -- python -m biblical_linguistics_mcp --transport stdio
Custom MCP Client (SSE)
from mcp import ClientSession
from mcp.client.sse import sse_client
async with sse_client("http://localhost:8080/sse") as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("parse_verse", {"reference": "John 1:1"})
print(result)
Tool Reference
| Tool | Description | Key Parameters |
|---|---|---|
parse_verse |
All words with full morphology for a verse | reference (str) |
lookup_word |
Full lexical entry by Strong's number | strongs (str), include_occurrences (bool) |
reverse_lookup |
English word → Hebrew/Greek lexemes | english_word (str), testament (OT/NT) |
search_by_root |
Find verses sharing a lexeme/root | strongs (str), book (str), testament (str) |
cross_reference_tsk |
TSK cross-references for a verse | reference (str) |
cross_reference_thematic |
Topical/thematic related passages | reference (str) or topic (str) |
lxx_alignment |
LXX Greek ↔ Hebrew alignment | reference (str), direction (str) |
word_frequency |
Frequency and distribution stats | strongs (str) |
compare_translations |
Verse across KJV, ASV, WEB | reference (str), versions (list) |
Example: parse_verse
// Request
{"reference": "John 1:1"}
// Response (abbreviated)
{
"reference": "John 1:1",
"testament": "NT",
"text_kjv": "In the beginning was the Word...",
"words": [
{
"position": 1,
"text": "Ἐν",
"morphology": {"part_of_speech": "preposition"}
},
{
"position": 2,
"text": "ἀρχῇ",
"strongs": "G746",
"gloss": "beginning, ruler",
"morphology": {
"part_of_speech": "noun",
"case_form": "dative",
"number": "singular",
"gender": "feminine"
}
}
]
}
Resource Reference
| URI Pattern | Description |
|---|---|
bible://books |
All Bible books with metadata |
bible://lexicon/hebrew/{strongs} |
Hebrew lexical entry |
bible://lexicon/greek/{strongs} |
Greek lexical entry |
bible://verse/{reference} |
Verse text in available translations |
bible://morphology-codes |
Hebrew & Greek morphology code reference |
Prompt Reference
| Prompt | Description | Arguments |
|---|---|---|
word_study |
Comprehensive word study report | strongs (required), depth (brief/full) |
passage_exegesis |
Exegetical analysis of a passage | reference (required) |
trace_theme |
Trace theme across both testaments | topic (required) |
lxx_quotation_analysis |
Analyze NT quotation of OT via LXX | nt_reference, ot_reference |
Data Sources & Licensing
All data is free and open-licensed:
| Dataset | License | Use |
|---|---|---|
| Open Scriptures Hebrew Bible (OSHB) | CC BY 4.0 | Hebrew text + morphology |
| Dodson Greek Lexicon | CC BY-SA 3.0 | Greek lexical data |
| Open Scriptures Hebrew Lexicon | CC BY 4.0 | Hebrew lexical data |
| Strong's Concordance | Public Domain | Numbering system, definitions |
| Treasury of Scripture Knowledge | Public Domain | Cross-references |
| King James Version | Public Domain | English Bible text |
| American Standard Version | Public Domain | English Bible text |
| World English Bible | Public Domain | English Bible text |
| scrollmapper/bible_databases | Public Domain | Structured Bible data |
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run with coverage
pytest --cov=biblical_linguistics_mcp --cov-report=term-missing
# Re-download data sources
python scripts/download_sources.py --force
# Re-bootstrap database
python scripts/bootstrap.py
Project Structure
src/biblical_linguistics_mcp/
├── __main__.py # CLI entry point
├── server.py # MCP server (tools, resources, prompts)
├── db/ # SQLite schema, connection, queries
├── morphology/ # Hebrew & Greek morphology parsers
├── lexicon/ # Hebrew & Greek lexicon access
├── crossref/ # TSK, thematic, root search, LXX
├── references/ # Bible reference parser
└── tools/ # MCP tool implementations
Requirements
- Python 3.11+
- No paid APIs or API keys required
- ~100 MB disk space for the full database
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 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。