Authentication uses your Perfai username and password via the
PERFAI_USERNAME / PERFAI_PASSWORD environment variables. Because these sit in plaintext, prefer global config and don’t commit credentials to a shared repo.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:
Enable the server in Windsurf
After saving the config:- Open Windsurf Settings → MCP Servers.
- Confirm perfai-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_USERNAME / PERFAI_PASSWORD from the config, signs you in, and saves the session locally. Confirm with:

