MCP Server Documentation

Model Context Protocol (MCP) integration for NuBerea — connect AI assistants like ChatGPT, Claude, and Cursor to Biblical study tools.

Overview

The NuBerea MCP server exposes Biblical study capabilities as tools and resources that any MCP-compatible client can use. It follows the Model Context Protocol specification with Streamable HTTP transport and OAuth 2.1 authentication.

Endpoint: https://mcp.nuberea.com/mcp

Transport: Streamable HTTP (JSON-RPC 2.0 over POST)

Auth: OAuth 2.1 with PKCE (Bearer token)

Client SDK: @modelcontextprotocol/client 2.0

The transport is sessionless: each POST is authenticated independently. There is no persistent GET event stream; GET /mcp returns 405 and DELETE /mcp is a compatibility no-op, not a session logout.

Connection

Configure your MCP client to connect to the NuBerea server. Most clients support JSON configuration:

MCP Client Configuration (e.g. Claude Desktop, Cursor)
{
  "mcpServers": {
    "nuberea": {
      "url": "https://mcp.nuberea.com/mcp",
      "transport": "streamable-http",
      "auth": {
        "type": "oauth",
        "authorization_url": "https://auth.nuberea.com/authorize",
        "token_url": "https://auth.nuberea.com/token",
        "client_id": "YOUR_CLIENT_ID",
        "scope": "openid mcp"
      }
    }
  }
}

For ChatGPT / OpenAI Actions, configure the OAuth settings in the GPT builder and point the MCP endpoint to https://mcp.nuberea.com/mcp.

Discovery Endpoints

EndpointDescription
GET https://auth.nuberea.com/.well-known/oauth-authorization-serverOAuth 2.1 server metadata (RFC 8414)
GET https://auth.nuberea.com/.well-known/openid-configurationOpenID Connect discovery
GET https://auth.nuberea.com/.well-known/jwks.jsonJSON Web Key Set for token verification
GET https://auth.nuberea.com/.well-known/oauth-protected-resourceProtected resource metadata (RFC 9728)
GET https://mcp.nuberea.com/.well-known/oauth-protected-resource/mcpDiscovery metadata for the canonical MCP resource
POST https://auth.nuberea.com/registerDynamic Client Registration (RFC 7591; JSON body)
GET https://mcp.nuberea.com/toolsAnonymous built-in tool metadata; signed-in results are tier/tenant-specific

The REST API reference covers native Study, tenant catalog management and standard auth routes. Study uses a Firebase ID token and requires paid access; MCP and tenant catalog operations use an OAuth access token. Tenant management can mutate the registry and is separate from the read-only built-in tools. See also the NuBerea SDK.

Authentication

The MCP server uses OAuth 2.1 with PKCE (Authorization Code flow). Users authenticate via NuBerea's Firebase-backed login, then the OAuth bridge issues MCP access tokens.

OAuth Flow

  1. Authorization Request — Client redirects user to /authorize with PKCE challenge
  2. User Login — User authenticates with Firebase credentials on NuBerea
  3. Authorization Code — Server redirects back with a one-time code (expires in 10 min)
  4. Token Exchange — Client exchanges code + PKCE verifier at /token for access & refresh tokens
  5. MCP Requests — Client sends POST /mcp with Authorization: Bearer <token>
Example: Token Exchange
POST https://auth.nuberea.com/token
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&code=<authorization_code>
&redirect_uri=<your_callback_url>
&client_id=<your_client_id>
&code_verifier=<original_pkce_verifier>
&resource=https%3A%2F%2Fmcp.nuberea.com%2Fmcp
Security notes:
  • PKCE (S256) is mandatory on all authorization requests
  • Authorization codes are single-use and expire after 10 minutes
  • Access tokens expire after 15 minutes; refresh tokens rotate on every renewal
  • The resource parameter identifies the canonical MCP endpoint and must match its authorization/token binding
  • Dynamic Client Registration uses POST /register; registration metadata is not durably persisted and client-management URIs are not implemented

Tools

The server exposes 18 built-in, read-only tools. Use GET /tools for the live schemas and availability metadata.

Anonymous discovery lists built-in metadata, not permission to invoke every tool. Signed-in discovery reflects the caller's plan and may include additional custom tools registered for their tenant. Those catalog-created tools are not built-ins and are intentionally excluded from this page. Clients should discover their available schemas at runtime.

Bible and text search

bible_getbible_list_bookssearch_text

Morphology

query_versesearch_morphologyget_word_by_ref

Lexicons

lexicon_lookuplexicon_searchlexicon_semantic_domain

Syntax

syntax_get_sentence_treesyntax_get_constituentssyntax_get_token_path

UBS parallel passages

parallel_passages_findparallel_passages_get

Manuscript transcriptions

transcription_cntr_get_versetranscription_cntr_list_manuscripts

Relationship graph

graph_expandgraph_list_edge_types

Bible text and UBS parallel passages are available without a paid plan. Original-language corpora, lexicons, syntax, manuscripts, graph traversal require a paid plan.

Errors

The MCP endpoint validates requests strictly before processing:

StatusConditionResolution
400Invalid JSON-RPC envelopeEnsure body has jsonrpc: "2.0", method, and valid id
401Missing / invalid / expired tokenRe-authenticate via OAuth flow
403Insufficient account or paid-plan accessCheck the account and tool entitlement
405GET /mcp is not supportedUse the sessionless POST transport
413Request body > 256 KBReduce payload size
415Content-Type not application/jsonSet Content-Type: application/json
503Authentication or a required service is unavailableRetry after service recovery
Corpus data from Macula Hebrew and Macula Greek by Clear Bible, Inc. (CC BY 4.0). Lexicon data derived from the Perseids Project LSJ dataset (CC BY-SA 3.0).