alexandria-mcp
Alexandria MCP 服务器
对来自20,000多部古典哲学和人文著作的 460万个文本片段 进行语义搜索。专为使用 FastMCP 通过 HTTP 运行的 AI 智能体构建。
馆藏内容
所有文本均为公有领域(1928年前),来源于 Internet Archive(Americana、European Libraries、Gutenberg 馆藏)。
哲学: 亚里士多德、柏拉图、康德、黑格尔、尼采、叔本华、笛卡尔、斯宾诺莎、洛克、休谟、穆勒、维特根斯坦、阿奎那、奥古斯丁、莱布尼茨、卢梭、伏尔泰、马克思等数百位思想家
主题: 伦理学、形而上学、认识论、逻辑学、政治哲学、神学、斯多葛主义、新柏拉图主义、存在主义、思想史
语言: 英语、德语、拉丁语、法语、意大利语、希腊语、俄语
Related MCP server: food-recipe-mcp
连接到服务器
远程(托管):
claude mcp add --transport http alexandria https://alexandria.aidatanorge.no/mcp通过 MCP 配置:
{
"mcpServers": {
"alexandria": {
"type": "http",
"url": "https://alexandria.aidatanorge.no/mcp"
}
}
}工具
search_texts
使用自然语言搜索馆藏。使用混合稠密+稀疏检索以及交叉编码器(cross-encoder)重排序。
参数 | 类型 | 描述 |
| string | 您要查找的内容 |
| string | 可选语言过滤器: |
| int | 结果数量(默认 5,最大 20) |
示例查询:
"Nietzsche will to power eternal recurrence""Kantian categorical imperative duty""Platonic theory of forms and the Good""Stoic virtue and the sage""Hegel dialectics spirit history"
每个结果包含:title(标题)、creator(作者)、date(日期)、language(语言)、subject(主题)、text(文本片段)、rerank_score(重排序得分)、vector_score(向量得分)。
ping
连接测试。
提示词
philosopher_analysis(philosopher)— 深入探讨某位哲学家的核心思想topic_exploration(topic)— 跨多位思想家探索某个主题compare_philosophers(philosopher_a, philosopher_b, topic)— 在特定主题上比较两位哲学家
架构
Archive.org (13,000+ books)
↓
Text extraction + chunking
↓
Qdrant (4.6M vectors)
↓
Hybrid search: intfloat/multilingual-e5-large (dense) + Qdrant/bm25 (sparse)
↓
Cross-encoder reranking: mmarco-mMiniLMv2-L12-H384-v1
↓
FastMCP 3.2 over HTTP自托管
需要一个正在运行的 Qdrant 实例,并填充 alexandria 集合。
pip install -r requirements.txt
python alexandria_mcp_server.py
# Server starts at http://localhost:8005/mcp环境变量(可选):
QDRANT_HOST=localhost
QDRANT_PORT=6333
MCP_PORT=8005许可证
MIT
Available Tools
3 toolsget_book_listARead-only
List books in the Alexandria collection, optionally filtered by author, subject or language.
Returns unique books (one entry per Archive.org identifier) with metadata. At least one filter parameter is recommended — without filters, results are arbitrary.
Args: author: Filter by author/creator name, e.g. 'Kant', 'Nietzsche', 'Plato'. Case-insensitive substring match against the creator field. subject: Filter by subject keyword, e.g. 'ethics', 'logic', 'metaphysics'. Case-insensitive substring match against the subject field. language: Filter by language code, e.g. 'eng', 'ger', 'lat', 'fre', 'gre', 'rus'. limit: Maximum number of distinct books to return (default 20, max 100).
Returns: List of books with title, creator, date, language, subject, identifier and total_chunks.
Inputs: author, subject, language, limit. Returns: Generic wrapper for non-object return types.
pingARead-only
Simple connectivity test. Returns a greeting to confirm the server is running.
Inputs: name. Returns: Generic wrapper for non-object return types.
search_textsARead-only
Search 4.6 million classical philosophy and humanities texts from Archive.org.
The collection contains public domain books (pre-1928) covering:
Philosophy: Aristotle, Plato, Kant, Hegel, Nietzsche, Schopenhauer, Descartes, Spinoza, Locke, Hume, Mill, Wittgenstein, Aquinas and many more
Ethics, metaphysics, epistemology, logic, political philosophy
Sacred and religious texts, stoicism, neoplatonism, existentialism
Classical literature, history of ideas, social theory
Sources: Internet Archive (americana, europeanlibraries, gutenberg)
Texts are in original languages — primarily English, German, Latin, French, Italian, Greek, Russian. Queries in any language work due to multilingual embeddings.
Args: query: What you are looking for, e.g. 'Nietzsche will to power eternal recurrence', 'Kantian categorical imperative duty ethics', 'Platonic theory of forms and the Good', 'Stoic virtue and the sage', 'Aristotle eudaimonia flourishing', 'Hegel dialectics spirit history', 'free will determinism compatibilism' author: Optional — filter results to a specific author/creator, e.g. 'Kant', 'Nietzsche', 'Aristotle'. Case-insensitive substring match. language: Optional — filter by language code, e.g. 'eng', 'ger', 'lat', 'fre', 'ita', 'gre', 'rus' limit: Number of results after reranking (default 5, max 20)
Returns: List of relevant text excerpts with metadata, reranked by relevance. Each result includes rerank_score, vector_score, title, creator, date, language, subject and the full text chunk.
Inputs: query (required), author, language, limit. Returns: Generic wrapper for non-object return types.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
ping is clearly a health check, while search_texts and get_book_list serve distinct purposes: one returns text excerpts, the other lists book metadata. The overlap is minimal and the descriptions clearly differentiate them.
All tools use lowercase with underscores and follow a verb-based pattern (ping, search_texts, get_book_list). The pattern is consistent enough, though the noun structure varies slightly.
With 3 tools, the server is minimal but well-scoped for its search-focused purpose. ping is a standard utility, and the two search-related tools cover the core functionality without excess.
The server supports searching and listing books, but lacks operations like fetching a full text by identifier or retrieving detailed metadata for a single book. This leaves notable gaps for a library-like service.
Maintenance
Related MCP Connectors
Search 15K rare pre-modern texts translated to English: philosophy, religion, science, literature.
Complete classical & world literature — search + cite exact passages, facing sources, 50+ languages.
Semantic search and citation of Stoic texts: Marcus Aurelius, Seneca and Epictetus.
Public, read-only search and cited passages from The Old Ways historical-text and mythology reference library. Covers Norse, Greek/Hellenic, Egyptian/Kemetic, Celtic and Zoroastrian traditions. No account or API key required. Imported editions may contain transcription errors; editorial summaries are reading aids rather than passage-level verification. Connection and source policy: https://theoldways.co/ai
Related MCP Servers
- AlicenseAqualityDmaintenanceSemantic search over Nordic economic data — market announcements, quarterly reports (162 companies), macro data (NO/SE/DK/FI), commodity prices, and press releases. 180,000+ vectors.6MIT
- AlicenseAqualityDmaintenanceA production-grade semantic search server for food recipes — built for AI agents using the Model Context Protocol (MCP). Search across 50,000+ recipes with hybrid dense + sparse retrieval and cross-encoder reranking.22MIT
- AlicenseAqualityDmaintenanceProvides access to philosophy texts including scholarly papers from PhilPapers/PhilArchive and classic books from Project Gutenberg, SEP, and other open-access sources, all without requiring an API key.1712MIT
- AlicenseNot gradedqualityCmaintenanceSemantic search and comparative retrieval over a multi-tradition corpus of sacred and foundational texts, exposed as an MCP server.MIT