Authentication uses your Perfai username and password via the
PERFAI_USERNAME / PERFAI_PASSWORD environment variables. Because these sit in plaintext in the config, 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:
~/.cursor/mcp.jsonProject-scoped installation
Add the config to.cursor/mcp.json at the root of your project. This makes the server available only when that project is open.
Enable the server in Cursor
After saving the config file:- Open Cursor Settings → MCP (or search “MCP” in the command palette).
- Confirm perfai-mcp appears in the server list with a green status indicator.
- If it shows as disconnected, click Restart next to the server entry.
Login
The prompts below run inside Cursor’s Agent 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:

