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:
~/.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.
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 that config — add it to .gitignore or keep the key in your global ~/.cursor/mcp.json instead.Enable the server in Cursor
After saving the config file:- Open Cursor Settings → MCP (or search “MCP” in the command palette).
- Confirm perfai-cloud-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_API_KEY if you set it). Confirm with:

