CodeIndex
← Back to Resources

How to set up the CIDX MCP on Windsurf

Follow these steps to connect the CIDX MCP to Windsurf and unlock powerful code search and documentation features.

Last Updated: May 13, 2025

  1. Open your Windsurf settings

    Navigate to the MCP configuration section.

  2. Add this snippet to your configuration file
    {
      "mcpServers": {
        "context7": {
          "command": "npx",
          "args": ["-y", "@upstash/context7-mcp@latest"]
        }
      }
    }
    If you already have other MCP servers configured, only add this part inside mcpServers:
      "context7": {
        "command": "npx",
        "args": ["-y", "@upstash/context7-mcp@latest"]
      }
    Example with another server:
    {
      "mcpServers": {
        "context7": {
          "command": "npx",
          "args": ["-y", "@upstash/context7-mcp@latest"]
        },
        "dummy-server": {
          "command": "dummy",
          "args": ["--mcp"]
        }
      }
    }
  3. Save the file and restart Windsurf

    Windsurf will load the new MCP configuration on start.

For more help, see the official Windsurf MCP documentation or visit our Resources page.