Skip to main content
Glama

Alexandria MCPサーバー

2万冊以上の古典哲学および人文学の著作から抽出された460万以上のテキストチャンクに対するセマンティック検索。HTTP経由でFastMCPを使用するAIエージェント向けに構築されています。

コレクションの内容

すべてのテキストはパブリックドメイン(1928年以前)であり、Internet Archive(americana、europeanlibraries、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

自然言語を使用してコレクションを検索します。クロスエンコーダーによるリランキングを伴う、密ベクトルと疎ベクトルのハイブリッド検索を使用します。

パラメータ

型

説明

query

string

検索内容

language

string

オプションの言語フィルター: eng, ger, lat, fre, ita, gre, rus

limit

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) — 特定のトピックについて2人の哲学者を比較する

アーキテクチャ

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

セルフホスティング

alexandriaコレクションが格納されたQdrantインスタンスの実行が必要です。

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 tools
get_book_listA
Read-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.

pingA
Read-only

Simple connectivity test. Returns a greeting to confirm the server is running.

Inputs: name. Returns: Generic wrapper for non-object return types.

search_textsA
Read-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

    A4.2/5.0

    Scored across 3 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A 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.
      2
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      17
      11
      MIT