Advantages of Local Setup
- Full Control: Customize server configuration, add providers, and modify behavior
- Latest Features: Access development features before they reach Docker releases
- Multiple Transports: Choose stdio, SSE, or HTTP transport modes
- Development Ready: Debug, modify, and contribute to the codebase
Setup Steps
Running in API Mode
To connect the MCP server to an existing Cognee backend instead of running standalone:API_URL is set, the MCP server acts as an interface to the centralized backend. This allows multiple MCP instances and clients to share the same knowledge graph.
You can also pass these as command-line arguments:
- Team collaboration with shared memory
- Multiple AI clients accessing consistent data
- Centralized knowledge graph management
Further details
Transport Modes
Transport Modes
Choose the transport mode based on your client requirements:
- stdio (default)
- HTTP
- SSE
Default mode for most MCP clients. The client starts the server as a subprocess and communicates through standard input/output.Configure your MCP client to launch the server directly:Replace
/absolute/path/to/cognee-mcp with the actual path to your cloned cognee-mcp directory.Server Arguments Reference
Server Arguments Reference
All available arguments for
Example with all options:
python src/server.py:| Argument | Default | Description |
|---|---|---|
--transport | stdio | Transport protocol: stdio, http, or sse |
--host | 127.0.0.1 | Host to bind the server to (HTTP/SSE only) |
--port | 8000 | Port to bind the server to (HTTP/SSE only) |
--path | /mcp | URL path for the HTTP endpoint |
--log-level | info | Log verbosity: debug, info, warning, or error |
--no-migration | off | Skip database migrations on startup |
--api-url | — | URL of a running Cognee backend (enables API mode) |
--api-token | — | Auth token for the backend API (if required) |
Next Steps
After starting the server, configure your AI client to connect to it. See the integrations section for client-specific setup instructions.Need Help?
Join Our Community
Get support and connect with other developers using Cognee MCP.