Add the Letta MCP server to Windsurf

Config last verified Nov 10, 2026

The exact config to run Letta in Windsurf — paste it in, restart, and the tools load.

Prerequisites

  • Windsurf installed.
  • LETTA_BASE_URL — URL of the Letta server's API, for example http://localhost:8283.
  • LETTA_PASSWORD — Letta server password. LETTA_API_TOKEN is accepted instead when LETTA_PASSWORD is unset.

Setup

1. Open ~/.codeium/windsurf/mcp_config.json

On Windows the file lives at %USERPROFILE%\.codeium\windsurf\mcp_config.json.

2. Add this configuration

Add to ~/.codeium/windsurf/mcp_config.json

~/.codeium/windsurf/mcp_config.json
json
{
  "mcpServers": {
    "letta": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "letta-mcp-server",
        "letta-mcp"
      ],
      "env": {
        "LETTA_BASE_URL": "<LETTA_BASE_URL>",
        "LETTA_PASSWORD": "<LETTA_PASSWORD>"
      }
    }
  }
}

3. Restart Windsurf and confirm the Letta tools load.

Gotchas

Windsurf's Cascade reads MCP servers from an "mcpServers" object in ~/.codeium/windsurf/mcp_config.json. Unlike most clients, remote servers are configured with the "serverUrl" field rather than "url", so a config that uses "url" silently fails to connect. Native remote transport is supported without an OAuth flow.

← Back to the Letta MCP server