Library of Alexandria

Official registry Search and web

Classic books in 25 languages: search, print editions, the free shelf. Read-only, no sign-in.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http library-of-alexandria 'https://mcp.libraryofalexandria.com/mcp'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "library-of-alexandria": {
            "type": "http",
            "url": "https://mcp.libraryofalexandria.com/mcp"
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Library of Alexandria for developers
  2. The eight tools
  3. Try it in a minute
  4. What is in this folder
  5. Rules of the library, for everyone who quotes it
  6. Versions
  7. Licence
  8. Registry entry

Library of Alexandria for developers

The library's catalogue, its free shelf and its print editions, as one small set of read-only tools that any program, assistant or model can call. There is no key and nothing to sign up for. The tools never sign anyone in, take a payment or change anything; every title they return carries the address of its page on libraryofalexandria.com, where a person reads, listens, prints or starts.

Three doors lead to the same eight tools:

DoorAddressFor
MCP (Streamable HTTP)https://mcp.libraryofalexandria.com/mcpClaude, ChatGPT, Gemini, Grok, Copilot, Perplexity, Le Chat, LM Studio, Open WebUI, Cursor, VS Code, Goose and every other MCP client
REST + OpenAPI 3.1POST https://api.libraryofalexandria.com/v1/<tool> and GET .../v1/openapi.jsonscripts, automation tools (n8n, Zapier, Make, Dify, Flowise), Open WebUI tool servers, Copilot Studio
Tool files for model makers`GET .../v1/tools?format=openaiopenai-chatanthropicgeminiollamamcp`any program that passes tool definitions to a model

The eight tools

ToolWhat it does
search_booksfind titles by words from a title, an author or a topic, in any language of the catalogue
get_bookthe facts of one title: author, original title, cover, print editions, its page in each language
get_summarythe first key idea of the 15-minute summary of one title in full, and the headings of the others (part chooses one)
get_samplethe free opening of one title, in pages of at most 400 words (page chooses one)
list_free_shelfthe titles on the free shelf, by language and subject
read_free_chapterone chapter of a free-shelf title, in pages of at most 400 words
get_print_optionsthe print editions of one title (standard and large print; paperback or hardcover) with the list price in US dollars
get_publisher_infowho publishes the library, the languages, the terms and privacy pages

A summary, a sample page or a free-shelf chapter that is not open yet (a title, a language, or all texts before they go online) answers plainly that it "opens here soon"; the tools then fill in without any change on your side. The text tools count the words they hand out for each client (72,000 a day and 48,000 an hour) and show what is left in budget.

Try it in a minute

curl -s https://api.libraryofalexandria.com/v1/search_books \
  -H 'content-type: application/json' -d '{"query":"moby dick","limit":3}'

The answer is {"ok": true, "data": {...}, "source": "Library of Alexandria, libraryofalexandria.com"}. A problem comes back as application/problem+json (RFC 9457) with a stable code; see openapi/loa-api.openapi.json.

What is in this folder

PathWhat
openapi/loa-api.openapi.jsonthe OpenAPI 3.1 file (also served live at /v1/openapi.json)
function-tools/*.jsonthe eight tools in the shapes of OpenAI (Responses and Chat Completions), Anthropic, Gemini, Ollama and MCP
cli/loa.mjsthe command line loa (Node 18 or newer, no dependencies)
sdk/typescript/loa.mjs, loa.d.tsthe JavaScript and TypeScript client (no dependencies; browsers, Node, Deno, Bun, Workers)
sdk/python/loa_library.pythe Python client (standard library only)
sdk/python/loa_tools.pyone plain Python function per tool, for Ollama and any framework that builds tool schemas from type hints
mcp-bridge/loa-mcp.mjsa stdio bridge for MCP clients that cannot reach a remote server
quickstarts/how to connect LM Studio, Open WebUI, Ollama, Goose, Claude, ChatGPT, Cursor, VS Code, LangChain and the OpenAI Agents SDK
AGENTS.md, SKILL.mdinstructions for coding agents and for assistants that help a person with the library
tests/the tests of this kit (node --test tests/*.test.mjs and python3 tests/test_python.py)

The generated files (openapi/, function-tools/) are made from the service's own code; a test in the service fails when they are out of date.

Rules of the library, for everyone who quotes it

  • Say what the answer says; use the url of a title as given; never invent a price or an offer.
  • The library is not the ancient library of Alexandria and not the Bibliotheca Alexandrina.
  • Payments and sign-up happen on libraryofalexandria.com only; a tool can hand over a link, never take a payment.
  • Please keep to a few requests a second and send a User-Agent that names your program.

Versions

The API version is a date, sent back in the LOA-Version header (2026-10-25). Changes are announced on the developer page.

Licence

MIT, see LICENSE. The library's tools return catalogue facts, short summaries and free parts as the service allows; the licence covers this code and these documents, not the books.

Registry entry

The description of the server for the official MCP Registry is in server.json.

Frequently asked questions

What is Library of Alexandria?

Classic books in 25 languages: search, print editions, the free shelf. Read-only, no sign-in.

How do I install Library of Alexandria?

It runs as a remote server. In Claude Code: claude mcp add --transport http library-of-alexandria 'https://mcp.libraryofalexandria.com/mcp'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Library of Alexandria need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Library of Alexandria open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Library of Alexandria?

It is published by ltvspot. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.