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
- Visual Studio Code installed
- Cognee MCP server running (see Quickstart or Local Setup)
- OpenAI API key
Setup Steps
1
Install Roo Code
- Open Visual Studio Code
- Go to the Extensions panel
- Search for “Roo Code” or visit the Marketplace page
- Click Install
- Complete the authentication process
2
Open MCP Settings
Follow the Roo Code MCP documentation to access settings:
- Click the MCP Servers icon in the top navigation of the Roo Code pane
- Scroll to the bottom of the MCP settings view
- 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)
- Edit Global MCP: Opens
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 list and connect automatically.
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 Roo Code to connect to the SSE endpoint exposed by the Docker container.
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.