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:
If the file does not exist yet, create it (and any missing parent directories).
Setup Steps
1
Open the config file
- macOS
- Windows
claude_desktop_config.json in your editor of choice.2
Add the Cognee server
Choose the mode that matches your setup:
- Cloud-connected
- Standalone (local)
- Remote / self-hosted URL
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:
3
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.
4
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.5
Use Cognee tools
Claude Desktop will use Cognee tools automatically when relevant. You can also prompt explicitly:
- “Remember this in Cognee: we use PostgreSQL for the main database”
- “Recall what you know about our database choices from Cognee”
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_BASE_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.
Can't connect to a remote MCP URL
Can't connect to a remote MCP URL
- Confirm the URL path matches the server transport:
/mcpfor HTTP,/ssefor SSE. - Make sure
npx(Node.js) is installed and on yourPATH— runnpx --version. - If the connection is rejected, whitelist your public hostname on the server with
MCP_ALLOWED_HOSTSand setMCP_CORS_ALLOW_ORIGINS. See Transport Security. - Open the URL’s health endpoint in a browser (e.g.
https://cognee.example.com/health) to confirm the server is reachable from outside your network.
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.