Continue provides a seamless interface to interact with Cognee’s MCP (Model Context Provider) server—much like Roo. This integration enables powerful knowledge graph capabilities directly within your IDE, enhancing code understanding and AI assistance. This guide walks you through setting up Continue and configuring Cognee’s MCP server for an optimized development experience.
Fill in the necessary details in the environment file.NOTE: Remove all quotations marks ( ” ” ) in the file!
DB_PROVIDER=“sqlite” will not work, it must be for example DB_PROVIDER=sqliteMake sure to also add the following embedding settings to the file:
Set necessary configurations and secrets in Continue for Continue to work with cognee.
Cognee specific environment secrets explained:
COGNEE_ENV_FILE_PATH: Points to the location of your Cognee environment file, which contains configuration settings for the Cognee MCP server. This file typically includes API keys, model preferences, and other operational parameters. This file must be filled properly for Cognee to work.
COGNEE_SHARED_DIR_PATH: This parameter specifies a local directory for data sharing between Cognee and Continue. It plays a critical role in exchanging knowledge graph details, caching results, and preserving session state. To enable Cognee to codify the repository you’re working on, the repo must be at this shared path location.
Verify the installation by opening the Continue panel in your IDE
Note: Continue will need to be configured to work with AI providers after installation
5. Use Continue + Cognee for Enhanced Code Assistance
Prompt Continue with exactly the following:
Copy
Codify the /data repo
If everything is properly connected it will start the codify process on your repo provided with COGNEE_SHARED_DIR_PATH.
The /data directory in the prompt is where your repo has been stored in the Cognee docker container.To ask questions about your codebase you can use the following kind of prompt:
Copy
CODE search for function names
Open your project and start a new Continue session to generate a knowledge graph:This prompt will let Cognee know to use the CODE search type to ask about function names.
Any other question can be asked about your code as well. For example:
Copy
CODE search for class names
The prompt above will return all classes in your code base
Get more accurate and contextually aware suggestions
6. (Optional) Deploy your own Cognee MCP Server locally
If you want to make custom changes to Cognee and the Cognee MCP Server, you can deploy it locally. This is an optional step if you are satisfied with the default Cognee configuration. Install Cognee MCP Server