The SCTA offers an MCP server: a set of tools that an AI assistant (Claude, ChatGPT, Cursor and others) can call while it answers you. With it connected, an assistant can look up a work's structure, read the Latin text of any question or paragraph, search the corpus and give exact references, instead of answering from memory.
Connecting #
The server is public and needs no account or key. Its address:
https://scta.info/mcp
- Claude (claude.ai and the desktop app): Settings → Connectors → Add custom connector, with the address above.
- Claude Code:
claude mcp add --transport http scta https://scta.info/mcp - Other clients: add a remote MCP server with the "Streamable HTTP" transport and the address above.
Then ask as you normally would, e.g. "What does Peter Plaoul say about whether charity can increase? Cite the paragraphs." The assistant decides which tools to call.
The tools #
| Tool | What it does |
|---|---|
get_text(id, offset, max_paragraphs) |
The Latin text of any resource (a work, question, article or paragraph), paragraph by paragraph, each with its id. Long texts come in pages. A manifestation id (e.g. lectio1/reims) gives that witness's text; a segment id (l1-eipdlt@20-25) gives just those words, with a few around them. |
get_structure(id, children, offset, limit) |
Where a resource sits and what it contains: what it is part of, its parts in order, its manifestations (manuscripts, printed editions, the critical edition), the default one marked. children="items" lists every question of a work at once. |
search_texts(query, author, within, search_in, offset, limit) |
Full-text search of the default edition of every text. Each result is a paragraph, with its work, author and question, and each match as a segment id. search_in="question_titles" searches the titles of questions instead, to find where a topic is treated. |
describe_resource(id) |
What the SCTA knows about anything with an id: a work, paragraph, person, codex, surface. Title, author, dates, description, what it is part of, and its links to other resources. |
locate_seg(id, substring) |
The segment id of a run of words in a paragraph: <paragraph id>@<first>-<last>. For citing or marking exactly part of a paragraph. |
get_line_image(id, padding) |
The page image of a line of a codex (cod-d04s02/2r/7), a few lines (cod-d04s02/2r/7-9), a paragraph in one witness (<paragraph id>/<witness>) or some of its words (<paragraph id>/<witness>@<first>-<last>), cropped from the IIIF image, with the transcribed text of each line. For codices whose line coordinates are in the SCTA. |
All the tools only read; none changes anything.
Conventions they share #
- SCTA ids. Every tool takes an id or its full URI (
http://scta.info/resource/l1-cpspfs). Every work, part of a work and paragraph has an id:plaoulcommentary(a work),lectio1(a part of it),l1-cpspfs(a paragraph). The same ids are in the resource URIs (https://scta.info/resource/l1-cpspfs) and in the other APIs, so whatever an assistant cites can be looked up. - Segment ids. A part of a paragraph is named by the paragraph's id,
@, and a word range:l1-eipdlt@32-38is words 32 to 38 of paragraphl1-eipdlt. Words are counted from 1 on the text with its punctuation removed. Search results andlocate_segboth count this way, so a range from one is valid in the other, andget_textreads it back. Segments exist only within a paragraph. A range that runs past the end of its paragraph is shortened to the last word, and the answer says so. - Spelling. Search and
locate_segignore case, punctuation and common spelling variants (v/u, j/i, ae/e, diacritics), so classical and medieval spellings both match. - Pages. No answer is the whole of a long text or list. Each says how many there are and how to ask
for the next page (
offset). - Text, not JSON. The tools answer in short readable text, made for a language model to read and quote. For data in bulk, use the REST APIs (corpus API, resource API) or the corpus as a dataset.
Examples #
These are real answers, shortened where marked ….
get_structure(id="plaoulcommentary", limit=4)
plaoulcommentary — Sentences Commentary (expression, structureCollection, level 1)
Part of: sententiae — Sentences Commentaries
Parts (1–4 of 8):
1. pp-principia — Principia
2. pp-deFide — de Fide
3. pp-deNotitia — de Notitia
4. pp-deFruitione — de Fruitione
(More: call get_structure with id='plaoulcommentary', children='parts', offset=4.)
Manifestations (witnesses):
plaoulcommentary/cod-mmppdi — Sentences Commentary, France, Montmorot, ms 32
plaoulcommentary/critical — Sentences Commentary, Critical Edition (Born Digital) [default]
plaoulcommentary/reims — Sentences Commentary, Reims
…
get_text(id="lectio1", max_paragraphs=2)
lectio1 (expression), text of transcription lectio1/critical/transcription: paragraphs 1–2 of 40.
[l1-cpspfs] Circa prologum Sententiarum in quo Magister dicit quod intentionis suae est "munire Davidicam
turrim vel potius munitam ostendere clypeis" etc., quaero istam quaestionem: …
[l1-eipdlt] Et inprimis protestatur quod fides non subicitur humano iudicio, et haec est una conclusio. …
(More: call get_text with id='lectio1' and offset=2.)
search_texts(query="caritas augeri", author="peter-plaoul", limit=2)
5 paragraphs match 'caritas augeri'; results 1–2.
1. [ppra-l86-rqifvs] Peter Plaoul, Reportatio A Sentences Commentary [plaoulreportatioA], Lectio 86, de Caritate [ppra-lectio86]
ppra-l86-rqifvs@6-6: …Respondetur quod licet isto modo »caritas« contingens videatur augeri per meritum…
ppra-l86-rqifvs@9-9: …licet isto modo caritas contingens videatur »augeri« per meritum non oportet quod…
2. …
(More: call search_texts again with offset=2.)
The query language: all words must occur in the paragraph; "a phrase" in double quotes; prefix*;
OR and NOT; NEAR(a b, 5) for words within 5 of each other. Matches on neighbouring words are shown
as one range.
describe_resource(id="peter-plaoul")
peter-plaoul (person)
title: Peter Plaoul
description: Bishop of Senlis; philosopher
dateOfBirth: 1353
dateOfDeath: 1415
sameAs (2):
http://dbpedia.org/resource/Peter_Plaoul
http://www.wikidata.org/entity/Q7176408
…
get_text(id="l1-eipdlt@20-25")
l1-eipdlt@20-25: words 20–25 of 104 in paragraph l1-eipdlt (transcription l1-eipdlt/critical/transcription).
…est una conclusio. Patet quia fides est donum »Dei supernaturale et est de illis« de quibus Iacobum Apostolus dicit quod "omne datum…
locate_seg(id="l1-eipdlt", substring="omne datum optimum et omne donum perfectum")
Found 1 time in l1-eipdlt:
l1-eipdlt@32-38: …Iacobum Apostolus dicit quod »omne datum optimum et omne donum perfectum« desursum est…
If the words aren't in the paragraph exactly (a different spelling, a word missing), it gives the closest passage of the same length and how similar it is, as long as it is at least 80% similar.
Trying it without an assistant #
The MCP Inspector lists the tools and calls them from a form:
npx @modelcontextprotocol/inspector
Choose the "Streamable HTTP" transport and enter https://scta.info/mcp.
Underneath, MCP is JSON-RPC 2.0: every call is a POST to the same address, with the method in the body.
The server is stateless and answers with plain JSON, so curl works too:
curl -s https://scta.info/mcp -H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"get_text","arguments":{"id":"l1-cpspfs"}}}'
"method":"tools/list" returns every tool with its full description and the JSON Schema of its
arguments: the same documentation the assistant reads.
Limits #
- The default edition.
search_textssearches the default (canonical) text of each work. The other witnesses can be read withget_text, but not searched. - New texts are searchable the day after the nightly build that adds them.
- Not available for a moment while a server starts (the texts load in about a minute) or while the nightly build swaps the triplestore; the tools say so, and a retry a few minutes later works.