No credentials are required in the config. Calling
login opens a browser to Perfai’s own sign-in page (OAuth) and completes automatically — see Login below.Global installation
- macOS / Linux
- Windows
File: Create the file if it doesn’t exist:
~/.codeium/windsurf/mcp_config.jsonProject-scoped installation
Add.windsurf/mcp.json to your project root:
Prefer not to use the browser login (headless machines, CI)? Create a Perfai API key and add
"env": { "PERFAI_API_KEY": "pfk_xxxxxxxxxxxx_..." } to the perfai-cloud-mcp entry. If you do, don’t commit .windsurf/mcp.json — add it to .gitignore, or keep the key in the global config instead.Enable the server in Windsurf
After saving the config:- Open Windsurf Settings → MCP Servers.
- Confirm perfai-cloud-mcp appears and shows a connected status.
- If it shows as disconnected, click Restart.
Login
The prompts below run inside the Windsurf Cascade chat, not your terminal. The only terminal/file steps are creating the config file.
PERFAI_API_KEY if you set it). Confirm with:

