Guide

Gianna for AI agents

Connect Claude, ChatGPT, Codex, Cursor, or any MCP client to Gianna for the liturgical calendar, exact prayers and Scripture, novenas, Mass and Confession times, and your own reminders and tasks.

agentsmcpapidevelopers

Updated 2026-10-02 · View resource

Gianna runs an MCP server at https://gianna.chat/mcp. Connect your AI agent to it and the agent can:

General-purpose models often misremember prayers and feast days and make up Mass times. Gianna's tools return checked text and dates, with the source.

Catholic reference data (the liturgy, Scripture, prayers, teaching, churches, saints, relics, lineage, groups and jobs) is free with a Gianna account. Acting on a household needs a plan. The Terms do not allow reselling the data or copying it in bulk.

Connect by signing in

No key needed. Gianna asks you to sign in and approve the connection. If you have no account yet, create a free one on the same page. It needs no card.

On the approval page, leave Also add and change ticked if the assistant should set reminders, add tasks, and keep your novena. The connection appears in Settings, Developer access, where you can disconnect it.

A browser with a built-in agent that supports WebMCP can use the same tools while you are signed in to gianna.chat in that browser. It acts as you, with your plan's limits, and the browser asks you before it changes anything. In the app it can also open a section or send Gianna a message in your chat.

Sign in an agent with a code

Any agent that can make HTTP requests can sign you in without a key or a browser of its own, using the OAuth device flow (RFC 8628). Give it https://gianna.chat/onboard.md and it does this:

  1. It asks Gianna for a code: POST /oauth/device_authorization with {"client_name": "Claude Code"}.
  2. It shows you a link to https://gianna.chat/activate and a code such as BCDF-GHJK. Open the link, sign in or create a free account, check the code matches, and approve.
  3. It polls POST /oauth/token with grant_type=urn:ietf:params:oauth:grant-type:device_code and its device_code until you decide, then receives its key.

An agent you approve can do whatever you can do in Gianna. It appears in Settings, Developer access, where you can see what it changed and disconnect it. Codes expire after 30 minutes.

The Gianna skill

The skill tells an agent when to use Gianna's tools and how: quote prayers exactly, cite Mass time sources, and check that an action succeeded. It is at https://gianna.chat/skill.md in the Agent Skills format.

mkdir -p ~/.agents/skills/gianna
curl -o ~/.agents/skills/gianna/SKILL.md https://gianna.chat/skill.md

Coding agents and other clients: use a key

1. Create a key

In Gianna, open Settings, Developer access and create an API key. Tick Allow changes if the agent should add tasks, reminders, intentions, or novenas. Copy the key; it is shown once.

Set it in your shell so the examples below can read it:

export GIANNA_API_KEY=gianna_...

2. Connect your agent

Claude Code

claude mcp add --transport http gianna https://gianna.chat/mcp \
  --header "Authorization: Bearer $GIANNA_API_KEY"

Codex

To use a key instead of signing in, add to ~/.codex/config.toml:

[mcp_servers.gianna]
url = "https://gianna.chat/mcp"
bearer_token_env_var = "GIANNA_API_KEY"

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gianna": {
      "url": "https://gianna.chat/mcp",
      "headers": { "Authorization": "Bearer ${env:GIANNA_API_KEY}" }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "gianna": {
      "type": "http",
      "url": "https://gianna.chat/mcp",
      "headers": { "Authorization": "Bearer ${env:GIANNA_API_KEY}" }
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "gianna": {
      "httpUrl": "https://gianna.chat/mcp",
      "headers": { "Authorization": "Bearer $GIANNA_API_KEY" }
    }
  }
}

Any other MCP client

Use the Streamable HTTP transport and the URL https://gianna.chat/mcp, with either the header Authorization: Bearer <your key> or OAuth 2.1 sign-in (discovered from /.well-known/oauth-protected-resource/mcp).

Things to ask

Tools

ToolWhat it doesScope
get_liturgical_dayA day's celebration, rank, colour, saints, readings, or Office hourliturgy:read
get_scriptureExact Bible text with its citationliturgy:read
get_prayerExact text of a common prayer, in English or Latinliturgy:read
find_novenaFind a novena for a saint, feast, or needliturgy:read
find_church_teachingRead the Catechism and Church documents from vatican.valiturgy:read
find_catholic_sourcesFind reliable Catholic sources on a questionliturgy:read
find_churchesChurches near a placedirectory:read
get_church_timesA church's Mass and Confession times, with sourcedirectory:read
find_saints, get_saintSaints by name, title or patronage, and one saint's full recordreference:read
find_people, get_personShared profiles for saints, clergy and office holders, with exact linked recordsreference:read
find_offices, get_officeOffices with current, appointed and recorded previous holdersreference:read
find_relics, get_relicRelics, apparitions and Eucharistic miracles, by name, saint or placereference:read
get_lineageWho consecrated a bishop, back as far as the records goreference:read
find_diocesesSourced dioceses, offices of the Holy See and religious institutes, with current office holdersreference:read
find_groupsParish groups to joinreference:read
find_jobsCatholics hiring Catholics for paid jobs, contract work and volunteer roles in any fieldreference:read
list_tasks, list_reminders, list_routinesYour household's planshousehold:read
list_prayer_intentions, get_active_novenaYour prayer life in Giannahousehold:read
find_memories, get_parishWhat Gianna remembers, and your parishhousehold:read
add_task, complete_task, update_task, remove_task, reopen_taskChange taskshousehold:write
add_reminder, update_reminderSet and change remindershousehold:write
add_prayer_intention, update_prayer_intention, mark_prayer_intention_prayedKeep intentionshousehold:write
start_novena, complete_novena_day, update_novena_intention, add_novena_intentionKeep novenas and offer them for prayer-list intentionshousehold:write
add_memoryAsk Gianna to remember somethinghousehold:write
mark_relic_visitedRecord a visit in your pilgrimage journalhousehold:write
add_group_join_request, add_job_interest_requestAsk your approval to join a group or send interest in a jobhousehold:write
get_approval_requestWhether you approved, declined, or have not yet answeredhousehold:read
report_problemTell Gianna's maintainers that a tool errored or returned something wrongany key

reference:read covers every reference tool, including those marked liturgy:read and directory:read; keys made with those two scopes keep working. A key without a scope does not see that scope's tools.

Results

Every tool returns structuredContent in one shape, published as each tool's outputSchema:

FieldMeaning
textThe tool's full answer, the same text as the result's content, including prayers, passages and lists
statusWhat the tool did: observed, applied, no_change, or a failure such as invalid_arguments or rejected
state_changedtrue only when the call changed stored state
verifiedFor a change, true when Gianna read the records back and found them changed exactly as reported; null when there is nothing to check or it cannot be read back (memory)
recordsTyped items, each with a type and an id that never changes
sourcesTitles and links behind the answer
receiptA sentence safe to show the user
replayedtrue when this is the stored result of an earlier call with the same idempotency key

Record types: person (a shared person UUID), office (an institution/key), saint (the id is a slug such as therese-of-the-child-jesus), relic, bishop, see (a diocese or other see, with its office holders), group, job, location (a church or shrine, with its service times), and, for changes, task, reminder, intention, novena and relic_visit with change set to created, updated or removed.

Your approval

Connecting an agent already needs your sign-in and approval, and changes need Also add and change (or a key with Allow changes). Anything that would share your details with someone else, such as asking to join a group or sending interest in a job, goes further: the agent files a request, Gianna emails you, and nothing is sent until you approve it in Settings, Developer access, where you see exactly what would be shared and with whom. Requests expire after seven days. The same page lists every change agents made, and revoking a key stops its agent at once.

Safe retries

Send _meta.idempotencyKey with a change (or an Idempotency-Key header). If the connection drops, send the same call with the same key: Gianna returns the first result instead of acting twice. Completed receipts survive restarts and replay for 24 hours. Reusing a key for a different call is an error. If a request is still in progress or its outcome is uncertain, read the affected records before making another change. Do not bypass that result with a new key. After 24 hours, check the current state before repeating an action.

Read status alongside state_changed: observed is a read, applied reports a change, and no_change may mean the requested state already exists. Use the receipt to explain why nothing changed. A replay reports the original outcome; it does not mean a new action ran.

Adding saints and relics

POST /registry/v1/import adds or updates registry records in bulk, as the person who signed the agent in. Curators may add and update saints and relics; anyone may add relics, which show as not yet reviewed until a curator checks them, and may update their own until then. Send "dry_run": true first to see what would change.

Link a relic with saint_person_id, using the UUID returned by a people read. The legacy saint_slug remains supported as a stable page key. If both are provided they must identify the same person. Do not pass a display name.

{
  "dry_run": true,
  "saints": [
    { "slug": "therese-of-the-child-jesus", "biography": "…",
      "patronages": ["missions"], "death_date": "1897-09-30",
      "sources": [{ "citation": "…", "url": "https://…" }] }
  ],
  "relics": [
    { "id": "6f1c…", "name": "…", "kind": "first_class",
      "saint_slug": "therese-of-the-child-jesus",
      "latitude": 49.14, "longitude": 0.23, "place_name": "Lisieux",
      "sources": [{ "citation": "…", "url": "https://…" }] }
  ]
}

A saint's slug is the address of its page; a known slug is filled in (fields you leave out are kept), and a new one needs a name. A relic's id is yours to choose and stays its id; sending it again replaces the record. Dates are a year, a full date, or a century such as 13c. Each item's result is created, updated, unchanged, or skipped with the reason. Re-running the same import changes nothing.

Without MCP

Maintaining people and offices

Groups of saints have common person identities of kind group, linked to their individual members through group_memberships. Use relic_people to record each directly attributed saint or group, place_dedications for a church's dedication, and person_novenas for an exact novena catalogue association. Each relation has its own UUID and recorded source. A group's relic must not be silently attributed to every member. Saints and relics remain editable through the existing /registry/v1/import contract.

The Registry API reads and edits public people, institutions, offices, appointments, episcopal records and jurisdiction links. Use /registry/v1/{kind}, where kind is people, places, sees, offices, appointments, lineage_people, consecrations, transitions, group_memberships, relic_people, place_dedications or person_novenas. Office keys are {institution-slug}/{office-key}; other keys are UUIDs, except jurisdictions, which use slugs. These resources are separate from Gianna login accounts and household members.

places edits global churches, shrines, chapels and other locations. Supply name, kind, latitude and longitude when creating a record. Optional fields are also_known_as, website, address and notes. Services, contact details and enrichment controls are outside this write contract. The place UUID remains unchanged when its name changes; place_dedications.place_id uses that UUID. Enrichment also advances the edit timestamp. An outdated edit returns 409.

Reads require reference:read. Writes require an account-bound bearer token with household:write and the person's current curator or administrator role. The same free reference access applies to agents. A token grants no additional authority. Use POST to add a resource. To edit, read it first and send PUT with its latest resource.updated_at as expected_updated_at. Omitted fields are retained; explicit null clears an optional field. Send sources as sources: [{citation, url}]. Names do not establish identity links.

For a batch, use POST /registry/v1/resources/import with {resources: [{kind, key, data}], mode: "fill_missing", dry_run: true}. Each batch contains at most 500 resources. Inspect the results before repeating with dry_run: false. The default fill_missing preserves existing corrections and reviewed records. Keep explicit IDs and send an Idempotency-Key so retries do not duplicate work. Completed receipts survive restarts for 24 hours; stable resource keys remain necessary after that window. A partial failure returns 207 with complete: false, completed results and failed_index; inspect these before resuming. A batch is not one transaction across all resources. Server errors during read-only preflight release the key for a retry of the same request. Uncertain outcomes after application starts keep the key reserved; read the affected records before making another change.

Limits and privacy