Skip to main content

Roo Code Integration

Roo Code is a VS Code extension that provides AI-powered development assistance with support for MCP servers. It enables direct interaction with external tools through natural language.

Prerequisites

Setup Steps

1

Install Roo Code

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

Open MCP Settings

Follow the Roo Code MCP documentation to access settings:
  1. Click the MCP Servers icon in the top navigation of the Roo Code pane
  2. Scroll to the bottom of the MCP settings view
  3. Choose your configuration level:
    • Edit Global MCP: Opens mcp_settings.json (applies to all workspaces)
    • Edit Project MCP: Opens .roo/mcp.json (project-specific, can be committed to version control)
The file will have 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": {
      "type": "sse",
      "url": "http://localhost:8000/sse",
      "disabled": false
    }
  }
}
This configuration tells Roo Code 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 list and connect automatically.
4

Use Cognee Tools

Open the Roo Code interface and interact with Cognee:Example commands:
  • “Codify this codebase using Cognee” - Generate a knowledge graph from your code
  • “Use Cognee CODE search to find authentication logic” - Query the code graph
  • “List my Cognee datasets” - View stored data

Where to Use This Configuration

Global Configuration (mcp_settings.json): Settings apply across all your workspaces unless overridden by project configuration. Accessed via “Edit Global MCP” button. Project Configuration (.roo/mcp.json): Defined in your project root. Allows project-specific servers and can be committed to version control for team sharing. Accessed via “Edit Project MCP” button. If a server exists in both configurations, the project-level configuration takes precedence. You can manage servers through the Roo Code UI - use the toggle to enable/disable servers, click restart if needed, or adjust the network timeout. See the Roo Code MCP documentation for details.

Need Help?

Join Our Community

Get support and connect with other developers using Cognee MCP.