Clément Godbarge
Clément Godbarge
Home
Zibaldone
Projects
Code
Light
Dark
Automatic
AI
tei-mcp v0.3: Encoding TEI Without Rewriting the Source
The new release of tei-mcp introduces span-locked composition, a system designed to prevent the most damaging class of hallucination in AI-assisted TEI encoding: silent rewrites of the source text. The model never types body text; it registers tags as offsets over the source, and the composer refuses to return any TEI whose flat text content differs from the original by a single byte.
Clément Godbarge
Last updated on May 5, 2026
4 min read
Digital Humanities
tei-mcp
An MCP server that helps AI agents read and write valid TEI XML, with 16 tools covering element lookup, attribute resolution, content model expansion, nesting validation, document validation, and ODD customisation.
Last updated on Mar 15, 2026
Code
PyPI
tei-mcp: TEI P5 for AI Agents
tei-mcp is an open-source MCP server that gives AI coding assistants direct access to the TEI P5 specification — element lookup, attribute resolution, nesting validation, document validation, and ODD customisation.
Clément Godbarge
Last updated on Mar 15, 2026
3 min read
Digital Humanities