Claude Desktop Integration
Claude Desktop is Anthropic’s native app for macOS and Windows. It supports MCP servers through a config file that you edit manually — no command-line setup required after initial configuration.Prerequisites
- Claude Desktop installed
- Cognee MCP server available (see Quickstart or Local Setup)
- OpenAI API key (for standalone mode) or Cognee Cloud credentials (for Cloud-connected mode)
Config file location
Find theclaude_desktop_config.json file for your platform:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
Setup Steps
Add the Cognee server
Choose the mode that matches your setup:
- Cloud-connected
- Standalone (local)
Point the MCP server at your Cognee Cloud tenant using your API Base URL and API key from the API Keys page:Alternatively, set environment variables instead of inline args:
Restart Claude Desktop
Fully quit and reopen Claude Desktop. On macOS, use Cmd + Q (not just closing the window) to ensure the app reloads the config.
Verify the connection
Open a new conversation in Claude Desktop and ask:
“What Cognee tools do you have available?”Claude should list tools such as
remember, recall, and forget. If the tools don’t appear, check Troubleshooting below.Troubleshooting
Tools don't appear after restart
Tools don't appear after restart
- Confirm the config file is valid JSON (no trailing commas, correct bracket nesting).
- On macOS, make sure you fully quit the app with Cmd + Q.
- Check that
cognee-mcpis on yourPATH: runwhich cognee-mcpin a terminal. If it isn’t found, use the full path in thecommandfield. - For source installs, verify the
--directorypath points to the folder that containspyproject.toml.
Authentication errors (Cloud mode)
Authentication errors (Cloud mode)
- Confirm the
--serve-url(orCOGNEE_SERVICE_URL) value matches exactly the API Base URL on your API Keys page — no trailing slash. - Regenerate your API key if it may have expired and update the config.
- Verify the key value has no surrounding quotes or extra whitespace.
Server crashes on startup
Server crashes on startup
Run
cognee-mcp --transport stdio directly in a terminal to see error output. Common causes are a missing LLM_API_KEY in standalone mode or an unreachable --serve-url endpoint.Need Help?
Join Our Community
Get support and connect with other developers using Cognee MCP.