Cline Integration
Cline is a VS Code extension that provides AI assistance with support for MCP servers. It enables natural language interactions with external tools directly in your development environment.Prerequisites
- Visual Studio Code installed
- Cognee MCP server running (see Quickstart or Local Setup)
- OpenAI API key
Setup Steps
1
Install Cline
- Open Visual Studio Code
- Go to the Extensions panel
- Search for “Cline” or visit the Marketplace page
- Click Install
2
Open Cline MCP Settings
Follow the Cline MCP configuration guide to access settings:
- Click the “MCP Servers” icon in the top navigation bar of the Cline extension
- Select the “Configure” tab
- Click the “Configure MCP Servers” button at the bottom of the pane
cline_mcp_settings.json file with the base structure:3
Add Cognee Server Configuration
Add the Cognee server inside the Save the file after adding your configuration. The Cognee server will appear in the MCP Servers panel. You can use the toggle to enable/disable it or click Restart if needed.
mcpServers object. Choose the configuration that matches how you started the Cognee MCP server:- Docker (SSE)
- Local (stdio)
Use this if you started the server with Docker:This configuration tells Cline to connect to the SSE endpoint exposed by the Docker container.
4
Use Cognee Tools
Open the Cline interface.Example commands:
- “Prune cognee” - Clear the database
- “Run codify in this repo” - Build a code knowledge graph
- “Find dependencies with CODE search” - Query the code graph
Where to Use This Configuration
Thecline_mcp_settings.json file is in your VS Code global storage directory. Cline reads this file when the extension starts and applies the configuration to all projects.
You can manage servers through the Cline UI - click the “MCP Servers” icon to enable/disable servers, restart them, or adjust settings without editing JSON directly. See the Cline MCP documentation for details.
Need Help?
Join Our Community
Get support and connect with other developers using Cognee MCP.