Skip to main content

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

Setup Steps

1

Install Cline

  1. Open Visual Studio Code
  2. Go to the Extensions panel
  3. Search for “Cline” or visit the Marketplace page
  4. Click Install
2

Open Cline MCP Settings

Follow the Cline MCP configuration guide to access settings:
  1. Click the “MCP Servers” icon in the top navigation bar of the Cline extension
  2. Select the “Configure” tab
  3. Click the “Configure MCP Servers” button at the bottom of the pane
Cline will open the cline_mcp_settings.json file with the base structure:
{
  "mcpServers": {
    
  }
}
3

Add Cognee Server Configuration

Add the Cognee server inside the 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:
{
  "mcpServers": {
    "cognee": {
      "url": "http://localhost:8000/sse",
      "disabled": false
    }
  }
}
This configuration tells Cline to connect to the SSE endpoint exposed by the Docker container.
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.
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

The cline_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.