Skip to main content
Cursor supports MCP servers via a JSON config file. You can register Perfai globally (available in every workspace) or per-project (checked into your repo).
The package binary is perfai-mcp-server. Always launch it with npx --yes --package=@perfai/mcp@latest perfai-mcp-servernpx @perfai/mcp alone fails with “could not determine executable to run.”
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

File: ~/.cursor/mcp.json
Create the file if it doesn’t exist:

Project-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.
Do not commit .cursor/mcp.json if it contains your PERFAI_PASSWORD. Add it to .gitignore, or keep credentials in your global ~/.cursor/mcp.json instead.

Enable the server in Cursor

After saving the config file:
  1. Open Cursor SettingsMCP (or search “MCP” in the command palette).
  2. Confirm perfai-mcp appears in the server list with a green status indicator.
  3. 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.
In Cursor’s Agent mode, type:
The server reads PERFAI_USERNAME / PERFAI_PASSWORD from the config, signs you in, and saves the session locally. Confirm with:

Select an organization and app


List issues

Findings are grouped into security, design, and quality categories.

Generate fixes

By ID (sequence number, issue ID, or description):
By category:
For all / by severity — ask Cursor to iterate: