Alexandria

io.github.The-40-Thieves/alexandria-mcp

Search, read, and cite across 152 libraries: 11 tools, 3 prompts, and a full-text resource.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "alexandria-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@the-40-thieves/alexandria-mcp@11.0.0"
      ],
      "env": {
        "OPENAI_API_KEY": "<your OPENAI_API_KEY>",
        "ALEXANDRIA_API_KEY": "<your ALEXANDRIA_API_KEY>",
        "CORE_API_KEY": "<your CORE_API_KEY>",
        "COURTLISTENER_API_KEY": "<your COURTLISTENER_API_KEY>",
        "GOVINFO_API_KEY": "<your GOVINFO_API_KEY>",
        "GOOGLE_BOOKS_API_KEY": "<your GOOGLE_BOOKS_API_KEY>",
        "GITHUB_TOKEN": "<your GITHUB_TOKEN>",
        "NASA_ADS_API_KEY": "<your NASA_ADS_API_KEY>",
        "EUROPEANA_API_KEY": "<your EUROPEANA_API_KEY>",
        "SEMANTIC_SCHOLAR_API_KEY": "<your SEMANTIC_SCHOLAR_API_KEY>"
      }
    }
  }
}
Environment variables
  • OPENAI_API_KEYsecretOpenAI key for routing (library_ask), synthesis (library_answer, library_research), and embeddings (library_ingest). Search and read tools work without it.
  • ALEXANDRIA_API_KEYsecretAPI key paired with ALEXANDRIA_BASE_URL. Falls back to OPENAI_API_KEY.
  • CORE_API_KEYsecretUnlocks the core source (CORE, 57M+ open access papers). Free key from core.ac.uk/services/api.
  • COURTLISTENER_API_KEYsecretUnlocks the courtlistener source (US federal and state court opinions). Free key from courtlistener.com.
  • GOVINFO_API_KEYsecretUnlocks govinfo (Congressional Record, Federal Register, US Code); also accepted by congress and regulations. Free key from api.data.gov.
  • GOOGLE_BOOKS_API_KEYsecretUnlocks the googlebooks source (40M+ books). Free key from the Google Cloud Console (Books API).
  • GITHUB_TOKENsecretUnlocks githubsearch and githubmcp (GitHub code search); optional for ghsa and openiti. Public-repo read scope is enough.
  • NASA_ADS_API_KEYsecretUnlocks the nasaads source (NASA Astrophysics Data System). Free key from ui.adsabs.harvard.edu.
  • EUROPEANA_API_KEYsecretUnlocks the europeana source (50M+ European cultural heritage items). Free key from apis.europeana.eu.
  • SEMANTIC_SCHOLAR_API_KEYsecretOptional for semanticscholar and library_recommend; raises the rate limit. Free key from semanticscholar.org/product/api.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
11.0.0
Registry
active
Published
9/5/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that Alexandria is listed here — it’s also the link we check for a free listing.

Alexandria — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-the-40-thieves-alexandria-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Alexandria — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Alexandria — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-the-40-thieves-alexandria-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.