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.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "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
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |