Skip to content

MCP — AI Agent Integration

The Torch exposes an integrated Model Context Protocol (MCP) server alongside its REST API. Any MCP-compatible client — Claude Desktop, Cursor, Windsurf, or a custom agent — can query saints, Scripture, liturgical dates, and sacred sites without writing integration code.

One config block. The entire Tradition, in context.


The MCP server uses Streamable HTTP transport. Add this block to your client’s MCP configuration:

{
"mcpServers": {
"torch-and-lily": {
"type": "http",
"url": "https://api.torchandlily.com/mcp",
"headers": {
"x-api-key": "tl_your_key_here"
}
}
}
}

Replace tl_your_key_here with a real API key from your dashboard.

ClientConfig File Location
Claude Desktop~/.claude/mcp.json or project .mcp.json
Cursor.cursor/mcp.json in your project root
Windsurf.windsurf/mcp.json in your project root
Custom agentsConsult your MCP client library’s documentation

The MCP server exposes the same four read engines as the REST API, organized as callable tools. Each tool returns structured JSON.

ToolDescription
list_bible_booksList all books of the Bible with metadata
read_bible_chapterRead all verses in a chapter
read_bible_verseRead a specific verse with full metadata
read_bible_verse_textGet plain text of a verse
search_bibleFull-text search across Scripture
list_commentary_authorsList patristic commentary authors
search_commentariesSearch commentaries by book, chapter, verse, or author
list_summa_partsList the parts of the Summa Theologiae
list_summa_questionsList questions within a part
list_summa_articlesList articles within a question
read_summa_articleRead a full Summa article with objections and replies
search_summaFull-text search across the Summa
list_operaList all books in the theological library
search_operaSearch opera by title, author, or keyword
get_opusGet metadata for a specific book
get_opus_tocGet the table of contents for a book
read_opus_chapterRead a chapter from an opus
ToolDescription
search_saintsSearch saints by name, rank, or patronage
get_saintGet a saint by slug
get_saint_by_idGet a saint by database ID
get_saint_feastFind saints by feast date
list_saint_ranksList all canonical ranks
list_patronagesList all patronage categories
search_prayersSearch prayers by title or keyword
get_prayerGet a specific prayer by slug
get_random_prayerGet a random prayer
ToolDescription
get_daily_ordoGet today’s liturgical information
get_ordo_calendarGet the full calendar for a liturgical year
get_movable_feastsGet movable feast dates for a given year
ToolDescription
find_nearby_churchesFind churches near a lat/lon coordinate
get_churchGet details for a specific sacred site
ToolDescription
get_api_schemaRetrieve the full or engine-filtered OpenAPI schema
suggest_endpointFind relevant endpoints by keyword or natural language query

The MCP server also exposes two resources — static data an agent can read without making a tool call:

URIDescription
torch://api/openapi.jsonThe complete OpenAPI 3.1 specification
torch://api/engines/{engine}Filtered OpenAPI spec for a single engine (veritas, devotio, tempus, corpus, communio)

With the MCP server connected, an agent can answer queries like:

User: “What saint is celebrated on March 7?”

The agent calls get_saint_feast(month=3, day=7) and returns the result — no code, no HTTP client, no parsing.

User: “Draft a React component that shows today’s liturgical season and color.”

The agent calls get_daily_ordo to understand the response shape, then get_api_schema(engine="tempus") to confirm all available fields, and writes the component with accurate type definitions.


MCP tool calls consume the same rate limit budget as REST API calls: 200 requests per 15 minutes per API key. See Authentication & Rate Limits for details.