Install for Windsurf IDE

Complete guide to install and configure ContextForge MCP on Windsurf (Codeium) IDE.

Prerequisites

Step 1: Install ContextForge MCP

Open your terminal and run:

npm install -g contextforge-mcp

Step 2: Verify Installation

# Check if contextforge-mcp is installed
which contextforge-mcp

# Should output the path to the executable

Step 3: Configure Windsurf

1. Locate the MCP config file

Windsurf uses a JSON configuration file for MCP servers:

# macOS
~/.codeium/windsurf/mcp_config.json

# Windows
%USERPROFILE%\.codeium\windsurf\mcp_config.json

# Linux
~/.codeium/windsurf/mcp_config.json

2. Create or edit the config file

Add the following configuration:

{
  "mcpServers": {
    "contextforge": {
      "command": "contextforge-mcp",
      "env": {
        "CONTEXTFORGE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Note: Replace your-api-key-here with your actual API key from your dashboard

3. Restart Windsurf

Close and reopen Windsurf IDE for the changes to take effect.

Using ContextForge in Windsurf

Once configured, you can use ContextForge tools in Windsurf's Cascade AI:

# Save knowledge to memory
"Remember this API endpoint documentation..."

# Query your memory
"What do we know about the authentication flow?"

# Create tasks
"Create a task: Fix the login bug"

# List your tasks
"Show my pending tasks"

Updating ContextForge MCP

When a new version is available, you can update with:

npm install -g contextforge-mcp

After updating, restart Windsurf for changes to take effect.

Troubleshooting

MCP not showing in Windsurf

Make sure the config file is in the correct location and has valid JSON:

# Validate JSON syntax
cat ~/.codeium/windsurf/mcp_config.json | jq .

# Check if contextforge-mcp is accessible
which contextforge-mcp

command not found: contextforge-mcp

Use the full path in the config:

# Find the full path
npm config get prefix

# Use full path in mcp_config.json
{
  "mcpServers": {
    "contextforge": {
      "command": "/usr/local/bin/contextforge-mcp",
      "env": {
        "CONTEXTFORGE_API_KEY": "your-api-key"
      }
    }
  }
}

Authentication errors

Verify your API key is correct and hasn't expired. You can generate a new key from your dashboard.

Next Steps