Skip to main content
Glama
GetBible MCP

GetBible MCP

Official
by getbible

GetBible MCP

test PyPI License: GPL v2+

Project and API documentation: getBible.net · MCP usage guide: getBible.net/mcp.

Read-only Model Context Protocol access to all nine GetBible API contracts over both standard MCP transports:

  • Streamable HTTP at the official endpoint https://mcp.getbible.net/, or another host's MCP URL

  • stdio for developers who install the package and let an AI client launch it locally

Both transports expose exactly the same tools, resources, prompts, validation, and scripture-cache integrity rules. Scripture tools default to upstream v3; select api_version: "v2" explicitly for upstream v2. Dictionary, commentary and bookmark operations use v1.

Connect to the official endpoint

GetBible's official MCP endpoint is https://mcp.getbible.net/. Add that exact URL to your AI application's remote MCP connections and select Streamable HTTP. The domain root is the protocol endpoint; do not append /mcp or an API version. The MCP usage page explains how to connect and use the service.

One connection provides Bible retrieval, reference lookup, full-text search, dictionaries, commentaries and public bookmarks across all supported API versions. Your client can discover tools, read the complete API contracts and use the integration-planning prompt. All operations are read-only; select upstream versions through tool arguments.

Public access is free and needs no account or token. It uses the same default anonymous traffic limits as GetBible search. Excess traffic receives HTTP 429; honor Retry-After and reduce your request rate. To request a token for MCP or another GetBible endpoint, contact the GetBible administrators. See the access policy for limits and client guide for connection and token instructions.

You can also connect to a privately operated instance using the URL supplied by its operator. The Python library supports configurable endpoint URLs and local stdio clients.

For ChatGPT and Codex, the plugin package includes GetBible branding and the official connection configuration. The publishing handoff contains listing text, client tests and the steps for the person submitting it. The package is prepared for review; this repository does not claim that the public directory listing is already approved.

For definitions and study material, follow the dictionary and commentary guide. It explains module discovery, entry identifiers, related entries, introductions and verse ranges.

Related MCP server: Bible MCP Server

API coverage

Service

Versions

Capabilities

Upstream contracts

api

v2, v3

Translation, book and chapter data; catalogs; checksums; v2 text indexes

v2, v3

query

v2, v3

Resolve individual, ranged and grouped scripture references

v2, v3

search

v2, v3

Full-text search, filters, ranking, pagination and reference lookup; GET and read-only POST

v2, v3

dictionaries

v1

Catalogs, metadata, word indexes, definitions, Strong's entries and checksums

v1

commentaries

v1

Catalogs, metadata, book/chapter commentary, introductions and checksums

v1

bookmarks

v1

Public topics, verse associations, localized names and checksums

v1

The package includes the complete upstream OpenAPI documents. Agents can discover services, inspect an operation's exact parameters and response schemas, then execute that operation. This covers the whole API surface without requiring a separate MCP tool for every HTTP route. Native upstream JSON is preserved, including v3 verse tokens, spans, paragraph markers and additional fields.

What the two transports mean

Transport

Who runs the server?

How a client connects

Best use

Streamable HTTP

GetBible or another service operator

https://mcp.getbible.net/ or the operator's MCP URL

Remote MCP clients

stdio

The developer installs this package locally

Client launches getbible-mcp --transport stdio

Desktop tools, private environments, local process control

stdio does not create a public endpoint. The MCP host starts the command as a child process and exchanges JSON-RPC messages over standard input and output. That local process still reads scripture from the public GetBible API.

Streamable HTTP connects to a remote MCP service using the same package and tool contract. The host chooses its endpoint path, including / or a named path such as /mcp. Use the supplied URL exactly; upstream API versions remain tool arguments.

Public API access and translation rights

Public access requires no account or token by default. Traffic limits, HTTP errors and upstream availability still apply; an integration must handle them instead of assuming every request succeeds. Administrators issue tokens for approved access to individual endpoints.

Use the translation catalog for copyright and rich translation metadata; query/search and chapter results carry compact metadata. Preserve and honor each translation's rights, and each study module's provenance and license. This repository's GPL license applies to the MCP software and does not relicense upstream content.

Correct API use is conditioned on honoring the hash-validation cycle described below. An integration that keeps cached scripture without revalidating its hashes is not complying with the GetBible API usage agreement.

MCP capabilities

Tools

Tool

Purpose

list_translations

Discover translations, copyright information, metadata, scope, and catalog hashes.

list_books

Discover numbered and localized book names and hashes.

list_chapters

Discover chapters and chapter hashes.

get_scripture

Retrieve a complete translation, book, or chapter with a consistency-checked hash.

query_verses

Resolve selected/grouped verses, retaining native version-specific data.

search_verses

Search scripture with the upstream filters and pagination.

search_dictionary_entries

Find a bounded page of dictionary entry IDs by key, alias or index search text; fetch definitions through the documented entry operation.

get_hash

Read one translation, book, or chapter .sha value.

get_hash_manifest

Read bulk checksum data for scheduled cache sweeps.

check_for_updates

Compare stored hashes and receive exact invalidation actions.

discover_apis

Discover services, supported versions and authoritative contracts.

describe_api_operation

List operations or inspect exact inputs, outputs and documented errors.

call_api_operation

Execute any operation in the supported contracts, including text, checksums and read-only search POST.

All tools are read-only, non-destructive, and idempotent. Scripture tools default to api_version: "v3"; use "v2" explicitly for v2 data. Generic operation tools require a service and version, because operation IDs and parameter names differ across contracts. HTTP POST search is a read operation and does not change server data.

For check_for_updates, specify api_version in each watched item so one batch can safely check several versions.

Resources

  • getbible://docs/api — complete integration guide

  • getbible://docs/cache-policy

  • getbible://docs/usage-policy

  • getbible://docs/study-workflows — dictionary entries, relationships and commentary coverage

  • getbible://openapi/{service}/{version} — complete contracts, for example getbible://openapi/search/v3

Prompt

  • design_getbible_integration

Mandatory scripture-cache integrity

The MCP server keeps no upstream result cache and recommends using query and search results directly. A downstream application choosing to cache an eligible response must:

  1. Include service, API version and all request inputs in the cache key; retain source HTTP freshness.

  2. Never retain data beyond 30 days (2,592,000 seconds); honor shorter HTTP freshness, Age, Expires, no-cache and no-store. An unchanged hash does not grant an indefinite lifetime.

  3. Invalidate the changed scope and every cached descendant.

  4. Validate the published checksum where available and fetch replacements into temporary storage.

  5. Atomically replace the stale record.

get_scripture checks the matching .sha value before and after retrieving JSON. If a build changes mid-request, it retries once instead of returning mismatched data and hash. Scripture .sha files contain SHA-1 values; dictionary, commentary and bookmark manifests use SHA-256. Query results have no chapter-hash envelope. Search query.sha describes the source translation, not the result payload. Query/search TTL comes from HTTP headers, not a promised JSON field.

See site/v2/cache-policy.md.

Quick local stdio setup

Clone the repository and build an isolated environment:

git clone https://github.com/getbible/mcp.git getbible-mcp
cd getbible-mcp
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m pip install --no-deps .

Configure the MCP client with the absolute executable path:

{
  "mcpServers": {
    "getbible": {
      "command": "/absolute/path/getbible-mcp/.venv/bin/getbible-mcp",
      "args": ["--transport", "stdio"]
    }
  }
}

Do not wrap or embed Python inside a shell configuration. The client launches the installed Python entry point directly.

See docs/CLIENTS.md for stdio, remote, and Inspector examples.

Python, JavaScript and PHP applications can connect to the same MCP endpoint using a compatible client. This project ships one Python server package; npm/Composer server packages are not required. Ordinary applications can also call the existing REST endpoints directly. The MCP endpoint uses versioned JSON-RPC discovery and tool requests. The documentation under site/v2/ describes MCP package 2.x and covers every supported upstream API version.

Python library interface

getbible_mcp.create_app(settings=None, api_client=None, *, path="/mcp") returns a standalone ASGI application. getbible_mcp.create_runtime(..., streamable_http_path="/mcp") returns the application, MCP server, client and settings for consumers needing the individual components. Importing the package does not create a default client or server.

The factory default is /mcp; the host can select / or another supported exact path. Clients use the complete endpoint URL published by that host, without appending an API version or assuming a suffix.

The embedding application owns the ASGI lifespan. If mounting the returned application in a parent, the parent must enter the child's app.router.lifespan_context(app) so MCP startup and HTTP client cleanup run correctly. See architecture for package boundaries and configuration for settings. API infrastructure setup is outside this package.

Downloadable packages, TestPyPI, and PyPI

Every successful test workflow run builds and smoke-tests one wheel and one source distribution. GitHub keeps them for 30 days in the run's Artifacts section under the name python-package-distributions. This includes runs started manually from Actions → test → Run workflow, so a package can be downloaded and tested without publishing anything.

The separate publish-testpypi workflow is manually triggered and publishes validated artifacts to TestPyPI. Production publishing runs only after a pull request is merged into main. GitHub must confirm that the triggering commit is that PR's final merge commit before the workflow validates and publishes the package and creates its GitHub tag/release. Open pull requests, direct pushes and manual dispatch cannot publish to production. Retry an incomplete release by rerunning its original post-merge workflow; matching existing PyPI files are not uploaded again.

TestPyPI uses Trusted Publishing. Production PyPI reads the project or account token only from the PYPI_MCP_TOKEN GitHub Actions secret in the protected pypi environment. See docs/PUBLISHING.md for the download, TestPyPI, secret setup, and production release procedures.

sync-openapi checks all nine upstream contracts daily and on demand. Changed contracts receive a coordinated patch-version bump and full validation before the workflow creates or updates one pull request. Review and merge that PR to release the update automatically. Unchanged contracts do nothing. The generic tools gain newly described API operations and schemas from the contracts; unsupported semantics fail validation and require a reviewed implementation change. The workflow does not auto-merge or rewrite curated convenience tools.

Development

python3 -m venv .venv
.venv/bin/python -m pip install -r requirements-dev.txt
.venv/bin/python -m pip install --no-deps -e .
chmod +x scripts/check
./scripts/check

The suite covers all bundled contracts, request validation and serialization, version-preserving responses, HTTP freshness, hash-consistent reads, MCP schema discovery, both transports, static documents, CLI behavior and release packaging. Tests use local fixtures and mock HTTP transports.

To test the official service explicitly, run .venv/bin/python scripts/check_endpoint.py. Add --upstreams to perform representative read-only requests across all nine API contracts, and --expect-version 2.1.1 when checking this release after deployment. The probe bounds requests, response sizes and timeouts; it never runs automatically in CI. A successful health response alone does not establish that API lookups work. See client testing.

Repository layout

src/getbible_mcp/       Python MCP implementation
site/                   Guides and all nine exact OpenAPI snapshots
docs/                   Package architecture, clients, configuration and publishing
tests/                  Unit and protocol integration tests

Documentation

Versioning

This package uses the stable official Python MCP SDK 2.3.0 and a host-selected HTTP endpoint. Package versions and upstream API versions are independent. Scripture tools default to v3; v2 remains fully available through explicit version selection. Never mix upstream v2 and v3 payloads under one cache key.

The nine packaged contracts and static snapshots are reviewed release inputs. Use .venv/bin/python scripts/refresh_contracts.py --check to check upstream drift, or --write to refresh the packaged and static copies together. Run the full checks before committing an API contract update. Do not handwrite reduced OpenAPI substitutes. The nine files under site/contracts/ are the complete static API catalog.

License

The GetBible MCP software is licensed under the GNU General Public License, version 2 or later. Scripture translations remain governed by the copyright information returned for each translation; the software license does not relicense scripture content.

Available Tools

13 tools
call_api_operationCall a documented GetBible operationA
Read-onlyIdempotent

Execute any operation discovered with describe_api_operation using its exact input schema.

Only reviewed routes and read-only methods are accepted. parameters holds named path/query inputs; body is only for documented search POST JSON. Native JSON/text is returned in data, with source/status/headers and cache advice. Redirects are reported without following them.

Inputs: service (required), api_version (required), operation_id (required), body, +1 more.

check_for_updatesCheck cached scopes for updatesB
Read-onlyIdempotent

Compare stored Bible hashes, each pinned to its own API version. This does not renew TTL.

Inputs: items (required). Returns: policy, results, checked_at, changed_count, +1 more

describe_api_operationDescribe GetBible API operationsA
Read-onlyIdempotent

List operations, or inspect one exact input schema, response schema and parameter meanings.

Use the returned input_schema for call_api_operation. Names are scoped by service/version.

Inputs: service (required), api_version (required), operation_id. Returns: object

discover_apisDiscover GetBible APIsA
Read-onlyIdempotent

Discover supported service/version contracts and their OpenAPI resources. Start here.

Inputs: service, api_version. Returns: object

get_hashGet one scope hashB
Read-onlyIdempotent

Fetch a Bible SHA-1 sidecar. A changed scope invalidates its cached descendants.

Inputs: kind (required), translation (required), book, chapter, +1 more. Returns: hash, cache, scope, source, +1 more

get_hash_manifestGet a bulk hash manifestB
Read-onlyIdempotent

Return Bible checksums at translation/book/chapter scope for efficient bulk checks.

Inputs: kind (required), book, api_version, translation. Returns: book, data, kind, cache, +3 more

get_scriptureGet complete scripture scopeA
Read-onlyIdempotent

Read a whole chapter, book or translation with before/after .sha consistency checks.

Omit chapter for a book, omit both for a translation. Native verse data is preserved, including v3 tokens and spans. Use query_verses for selected references.

Inputs: book, chapter, api_version, translation. Returns: data, hash, cache, scope, +5 more

list_booksList books in a translationB
Read-onlyIdempotent

Discover book numbers, localized names and hashes in the selected API version.

Inputs: api_version, translation. Returns: data, cache, source, hash_guidance

list_chaptersList chapters in a bookB
Read-onlyIdempotent

Return chapter mappings and hashes; discover identifiers before retrieving scripture.

Inputs: book (required), translation (required), api_version. Returns: data, cache, source, hash_guidance

list_translationsList GetBible translationsA
Read-onlyIdempotent

Discover translation abbreviations, languages, publisher metadata and catalog hashes.

Inputs: api_version. Returns: data, cache, source, hash_guidance

query_versesQuery selected or grouped versesA
Read-onlyIdempotent

Fetch native reference results without caching or inferred chapter hashes.

Invalid/unresolved references return errors, never fallback scripture. Translation defaults to kjv. Use v3 for richer verse data. TTL metadata is available in source response headers.

Inputs: references (required), api_version, translation. Returns: data, cache, source, references, +1 more

search_dictionary_entriesFind dictionary entry identifiersA
Read-onlyIdempotent

Find entry IDs by key, alias, search text or ID in a discovered dictionary module.

Discover modules with dictionaries/v1/listDictionaries first. Fetches the current index and filters it locally, returning a bounded page of unchanged records. Key, search and alias matching ignores case and combining accents using Unicode NFD; IDs match exactly, including case. This is not definition full-text search. Exact is the default; use prefix or contains explicitly if needed. Follow next_offset with the same inputs. Fetch definitions with dictionaries/v1/getDictionaryEntry and the returned exact ID; see_also and backlinks are directed links, not guaranteed synonyms.

Inputs: query (required), dictionary (required), limit, match, +1 more. Returns: A bounded selection of unchanged records from a freshly fetched dictionary inde…

search_versesSearch Bible textB
Read-onlyIdempotent

Search text with all native filters and pagination; results are never cached by MCP.

book/exclude repeat query keys; books is comma-separated. proximity requires words=all. A search recognized as a reference may bypass filters. Inspect native pagination metadata. Use describe_api_operation for the equivalent read-only JSON POST and aliases.

Inputs: search (required), book, sort, books, +11 more. Returns: Native upstream data with provenance and a separate cache contract.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    The set separates discovery, retrieval, search, and hashing clearly, but call_api_operation overlaps with the domain-specific scripture and dictionary tools, requiring careful reading of descriptions to choose the right path.

    Naming Consistency4/5

    Most tools follow verb_noun snake_case (list_*, get_*, search_*), but query_verses, search_verses, and get_scripture use near-synonymous verbs, and check_for_updates breaks the simple pattern slightly.

    Tool Count5/5

    Thirteen tools is a reasonable size for a Bible data server that includes API discovery, scripture access, dictionary lookup, and integrity checks; no tool feels superfluous.

    Completeness4/5

    The core workflows (discover versions, list structure, read scripture, search) are covered, and the generic API tools fill in gaps like dictionary entry retrieval. A dedicated get_dictionary_entry would make it fully first-class, but the surface is not incomplete.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides structured access to Scripture through the BibleBridge API, enabling semantic search, contextual verse retrieval, and cross-reference analysis. It supports natural language reference normalization and comparative theological exploration across different passages.
      1
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides tools to read and compare scripture text from local Paratext project folders, enabling natural-language queries for verses, chapters, books, and cross-project comparisons.
      2
      ISC