Install guide · Claude Desktop
Install Alexandria for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
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 ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.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 | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |