Overview
Configure Deepcon MCP in Windsurf (Codeium’s agentic IDE) through the MCP configuration file. Windsurf uses a similar setup to Cursor but with its own config file.Installation Methods
- Project-Level Configuration
- Global Configuration
Project-Level Configuration
Recommended for team projects1
Create Configuration Directory
Create the
.windsurf directory in your project root:2
Create Configuration File
Create
mcp_config.json in the .windsurf directory:3
Add Configuration
Add the following to
mcp_config.json:4
Add Your API Key
Replace
your-api-key-here with your actual API key5
Restart Windsurf
Completely restart Windsurf IDE
This configuration only applies to the current project and can be shared with your team via version control.
Replace
your-api-key-here with your actual API key from the dashboardVerify Connection
After configuration, verify the setup:1
Restart Windsurf
Completely quit and restart Windsurf IDE
2
Open Cascade
Open the Windsurf AI assistant (Cascade)
3
Check MCP Status
Look for MCP server indicators in the status bar
4
Check Available Tools
Verify Deepcon tools are available:
search_documentation
5
Test Search
Try asking: “Use Deepcon to search Next.js documentation for API routes”
Team Setup
For team collaboration, commit the project-level configuration:Terminal
Security Note: When sharing config files, use environment variables for API keys instead of hardcoding them.
Using Environment Variables
For team setups, reference an environment variable:.windsurf/mcp_config.json
.env or shell profile
Troubleshooting
MCP server not loading?
MCP server not loading?
Solution: Ensure Node.js is installed and accessibleCheck Node.js version (need 19+):Verify npx is available:Make sure Windsurf can access Node.js:
Authentication errors?
Authentication errors?
Solution: Verify your API key is correct
- Check the API key in
mcp_config.json - Ensure no extra spaces or quotes
- Get a fresh key from dashboard
- Restart Windsurf after updating
Config file not found?
Config file not found?
Solution: Check file location and namingWindsurf uses Ensure proper permissions:
mcp_config.json (with underscore), not mcp.jsonVerify the file exists:JSON syntax error?
JSON syntax error?
Solution: Validate your JSON configurationUse a JSON validator:Or use jsonlint.comCommon mistakes:
- Missing commas between entries
- Trailing commas at the end
- Unescaped quotes in strings
Changes not taking effect?
Changes not taking effect?
Solution: Fully restart Windsurf
- Close all Windsurf windows
- Quit the application completely
- Restart Windsurf
- Reopen your project
Windsurf-Specific Features
Windsurf’s Cascade AI assistant can use Deepcon tools in unique ways:Contextual Documentation
Cascade can automatically search relevant documentation based on your code context
Flow Integration
Use Deepcon searches as part of multi-step coding flows