library-of-babel-mcp

v2.0.0
library-of-babel-mcp Checked 3 days ago Published 4 months ago

An MCP server implementing a working Library of Babel: every possible page already exists, addressed by coordinates, derived deterministically and never stored.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_page Get page

Retrieve the exact text on a page at a given address in the Library of Babel. Every address always returns the same content (the library never changes). Coordinates: hexagon (base-36 string id), wall (1-4), shelf (1-5), volume (1-32), page (1-410). Almost every address is gibberish — meaningful pages are found via search_text, not by browsing.

ParameterTypeDescription
hexagon *stringBase-36 hexagon id (0-9, a-z), any length
pageinteger
shelfinteger
volumeinteger
wallinteger

search_text Search for text

Find the address of a page containing the given text (up to 3200 characters). The Library of Babel already contains every possible page, so 'search' doesn't scan anything: it constructs the exact page you asked for and inverts the address mapping to learn where that page sits. The returned address is a genuine location — get_page on it returns your text. Padding and offset are part of the page, so changing either yields a different address. Text is lowercased and restricted to the library's 29-symbol alphabet (a-z, comma, space, period); unsupported characters are dropped or converted to spa…

ParameterTypeDescription
text *stringThe text to locate in the library
offsetWhere the text starts on the page: a character offset, or "random"
paddingstringFill the rest of the page with spaces, or with random characters

lookup_page Look up an exact page

Given a complete 3200-character page, return the address it lives at. This is the exact inverse of get_page: the text must be exactly 3200 characters drawn from the library's alphabet (a-z, comma, space, period). For partial text, use search_text instead.

ParameterTypeDescription
text *stringThe full 3200-character page content

random_page Random page

Jump to a uniformly random address in the Library of Babel and return its content. Almost always gibberish — that's the point.