Does Cognee MCP work with Cognee Cloud?
Cognee MCP and Cognee Cloud are complementary but separate systems. They are designed for different use cases and do not share the same backend connection mechanism.| Cognee MCP | Cognee Cloud | |
|---|---|---|
| Where it runs | Locally on your machine | Hosted by Cognee |
| Access method | MCP protocol | cogwit-sdk or Cloud UI |
| Authentication | Bearer token (self-hosted) | X-Api-Key header |
| API endpoints | /api/v1/add, /api/v1/search | /api/add, /api/search |
| Use case | AI IDE tools (Cursor, Claude Code, etc.) | Cloud-managed knowledge graphs |
Why API_URL only works with self-hosted Cognee backends
The MCP server’s API_URL / API_TOKEN mechanism is designed for self-hosted Cognee backends. When the MCP server runs in API mode, it:
- Sends requests to
/api/v1/add,/api/v1/cognify,/api/v1/search - Authenticates with
Authorization: Bearer <token>
- Endpoint paths strip the
/v1prefix (e.g.,/api/add,/api/cognify) - Authentication uses the
X-Api-Keyheader, not a Bearer token
API_URL at the Cognee Cloud endpoint and setting API_TOKEN to your Cognee Cloud API key will not work as expected.
Recommended approaches
Use Cognee MCP for local AI memory (standalone)
Use Cognee MCP for local AI memory (standalone)
Run the MCP server in direct/standalone mode (no This is the recommended way to add persistent memory to Cursor, Claude Code, Cline, and other MCP-compatible tools.
API_URL set). The server manages its own local knowledge graph.Use Cognee Cloud for hosted knowledge graphs
Use Cognee Cloud for hosted knowledge graphs
Access Cognee Cloud programmatically using the See the Cognee Cloud SDK guide for a complete walkthrough.
cogwit-sdk library, which handles authentication and communication with the hosted service.Connect MCP to a self-hosted Cognee backend
Connect MCP to a self-hosted Cognee backend
If you want multiple AI clients to share a single knowledge graph, run a self-hosted Cognee backend and point the MCP server at it using See the MCP Quickstart for full details on this pattern.
API_URL and API_TOKEN:For questions about future Cognee Cloud + MCP integration, join the Cognee Discord to discuss with the team.