Connecting to Windsurf

Windsurf (by Codeium) supports MCP servers via its configuration files.

Step 1: Open the Config File

Locate the Windsurf configuration file:

  • Mac/Linux: ~/.codeium/windsurf/mcp_config.json
  • Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

(If the file does not exist, create it).

Step 2: Add the Configuration

Add the Libro MCP connection command.

{
  "mcpServers": {
    "libro": {
      "command": "npx",
      "args": ["-y", "libro-mcp-server@latest"],
      "env": {
        "LIBRO_API_KEY": "YOUR_API_KEY",
        "LIBRO_USER_ID": "YOUR_USER_ID",
        "LIBRO_BASE_URL": "https://www.libro.co.in"
      }
    }
  }
}

Step 3: Restart Windsurf

Restart the IDE. Windsurf's AI will now automatically invoke the Libro memory tools to store and retrieve your preferences.