Library of Alexandria

io.github.ltvspot由 GitHub 账号 ltvspot 发布v0.1.0更新于 Oct 29, 2026

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

已验证Streamable HTTP可网页运行知识与记忆商业与电商媒体与设计

概览

AI 生成的概览

以只读方式访问某出版社多语种经典书目:搜索书名、阅读摘要与免费试读,并查询纸质版本。

可以做什么
  • 按书名、作者或主题词搜索书目,并浏览免费书架、阅读难度、热门等现成书架
  • 获取单本书的资料、封面、主题、章节列表与章节摘要,以及纸质版本与价格
  • 阅读 15 分钟摘要的第一个要点、免费开篇或免费书架中的某一章,每页不超过 400 词
  • 查找引文出处、解释成语俗语,并按喜欢的书、主题或心情获取推荐
  • 生成定制印刷报价,并取得由本人填写寄语并付款的页面地址
  • 面向已登录会员:查看套餐与每日剩余词数、列出收藏书籍、在已开放章节内搜索、阅读段落并获取阅读或收听链接
适用场景
适合让助手回答经典文学相关问题、推荐书目、定位或引用段落,或把用户引向免费阅读页与纸质版本。它是书目与阅读辅助工具,不是通用网页搜索,也不负责结账。
运行要求
远程 Streamable HTTP 端点;书目类工具无需密钥、账号或注册。会员类工具以已登录会员身份操作。文本类工具按客户端计算词数额度(每天 72,000 词、每小时 48,000 词)。
安装前请注意
工具为只读,不会收款或替人登录;下单与付款只在出版社网站上通过链接完成。文本工具会返回书籍摘录并计入词数额度。部分摘要、试读与章节尚未开放,会回答即将开放。请将请求控制在每秒几次,并发送标明程序名称的 User-Agent。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Library of Alexandria,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ltvspot%2Flibrary-of-alexandria/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "library-of-alexandria": {
      "type": "http",
      "url": "https://mcp.libraryofalexandria.com/mcp"
    }
  }
}

README

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-chat

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

bash
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.

来源:README.md,提交 53c8b98

工具

26

search_books

Search books

Search the catalogue of Library of Alexandria Press by words from a title or an author's name, or by a topic word, in any language of the catalogue (Chinese in simplified and traditional characters). Returns up to 8 titles with id, title, subtitle, author, language, whether print editions are available, and the address of the title page on libraryofalexandria.com. Pass the asker's language so titles and authors come back in it.

输入参数limitquery必填language

get_book

Get book facts

Get the catalogue facts of one title: title, subtitle, author and original title in the chosen language, the cover picture address, the print editions, and the title page address in each language in which libraryofalexandria.com has the page (a language without a page there is not listed, so the list can be shorter than the languages of the catalogue). `url_language` says when `url` is in another language than the one asked.

输入参数id必填language

get_summary

Get summary

Read the 15-minute summary of one title: the first key idea in full, with its heading, and the headings of the other key ideas, which open in the library. Choose a key idea with 'part'. A title or a language whose summary is not open yet answers that it opens here soon.

输入参数id必填partlanguage

get_sample

Get sample pages

Read the free opening of one title: the first chapter of its text, in pages of at most 400 words. Pass 'page' for the next page; every answer says how many pages there are and where the text continues. Until the text is open the answer says that it opens here soon.

输入参数id必填pagelanguage

list_free_shelf

List the free shelf

List the titles on the free shelf, optionally for one language and one subject, with the address of each reading page.

输入参数limitsubjectlanguage

read_free_chapter

Read a free chapter

Read one chapter of a title on the free shelf, in pages of at most 400 words. Chapter numbers are those of the reader's contents list; without 'chapter' the first chapter of the text is read. Every answer points to the next page. Until the text is open the answer says that it opens here soon.

输入参数id必填pagechapterlanguage

get_print_options

Get print options

Get the print editions of one title (standard and large print; paperback or hardcover) with the normal price in US dollars where it exists, ISBN-13 and page count where known, and the address of each product page.

输入参数id必填language

get_publisher_info

Get publisher info

Get the publisher's standard description, the languages of the catalogue and the address of the terms page.

无需输入参数。

browse_collection

Browse a collection

Browse a ready-made shelf of the library: the free books, the easy, medium or challenging reading levels, the lost books, the titles with a 15-minute summary, or the most popular titles. Returns up to 8 titles at a time, with a cursor for the next page.

输入参数limitcursorlanguagecollection必填

get_book_facts

Get reading facts

Get the reading facts of one title: its reading level, word count, estimated reading time at three paces, page counts of the print editions, audio length, number of chapters, year of first publication, and whether a 15-minute summary is open. Facts that are not known yet are listed as not available yet.

输入参数id必填language

get_themes

Get the study guide

Get the study guide of one title: its main themes, symbols, setting and recurring motifs, each in a few sentences, with the address of the full study guide. A title or language whose guide is not open yet says that it opens here soon.

输入参数id必填language

get_chapter_summary

Get a chapter summary

Get the summary of one chapter, act or section of a title, or, without a number, the list of its chapters with their titles. Each summary is a few hundred words at most and points to the next one. A title whose chapter summaries are not open yet says that they open here soon.

输入参数id必填chapterlanguage

find_quote_source

Find where a quotation comes from

Find where a quotation comes from: give at least six words of it and get the title, chapter and paragraph of the open texts of the library that contain it, with the address to read it there. It answers only for texts that are open and never returns the words of the book.

输入参数quote必填language

explain_phrase

Explain a phrase

Explain a saying or idiom: what it means, where it comes from, and which titles of the library use it. A phrase that is not in the collection gets the closest phrases that are.

输入参数phrase必填language

recommend_classics

Recommend classics

Recommend classics: give the title of a book you liked, or its id, and get the books its readers also enjoyed; or give a topic or a mood and get titles that match it. Filter by reading level or by the free shelf.

输入参数levellimitquery必填languagefree_only

quote_custom_print

Quote a personal print copy

Prepare a printed copy of one title with a personal message page, as a gift or for yourself: get the normal price of the paperback, hardcover or large print edition, the total for the number of copies, and the address of the page on libraryofalexandria.com where the message is written and the order is placed. Shipping and tax are shown at checkout.

输入参数id必填giftcovercountryeditionlanguagequantitydedication

create_custom_print_order

Continue to the order

Continue from a quote: get the address of the page on libraryofalexandria.com where the person writes the message, sees the proof and pays. Nothing is ordered or paid through the assistant, and no card or address is asked for here.

输入参数quote_id必填

get_order_status

Check an order

Check where a printed order stands. Today the answer points to the e-mail of the order and to the account on libraryofalexandria.com; tracking through an assistant opens here soon.

输入参数email必填languageorder_ref必填

get_my_plan

Get my plan

Read the plan and daily words left for the signed-in member. Passages come only from titles open to you, within a daily word limit.

无需输入参数。

list_my_library

List my library

List the saved books of the signed-in member with their reader addresses. Returns at most 50 books at a time and never returns book text.

输入参数limitoffsetstatus

get_book_outline

Get book outline

List the chapters and their access for the signed-in member. Only open titles are shown, and no chapter text is returned.

输入参数id必填language

search_in_book

Search in book

Find paragraphs by keywords in chapters open to the signed-in member. Returns at most five short snippets, within word and reading limits.

输入参数id必填limitquery必填language

get_passage

Get passage

Read a located paragraph with nearby paragraphs for the signed-in member. Access is checked again and each passage is limited to 400 words.

输入参数afterbeforelocator必填

open_in_reader

Open in reader

Get a chapter address for the signed-in member to open in the reader. Only open titles are linked, and the reader checks chapter access.

输入参数id必填chapterlanguageparagraph

版本历史

1
  1. v0.1.0最新Oct 29, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分