Skip to content
Alexandria
Install guide · Cursor

Install Alexandria for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "the-40-thieves-alexandria-mcp": {      "command": "npx",      "args": [        "-y",        "@the-40-thieves/alexandria-mcp@11.0.0"      ],      "env": {        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",        "ALEXANDRIA_BASE_URL": "",        "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"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json