1
Create an MCP key
In Prefer, open Integrations → MCP in the left navigation and create a key on the Keys tab. See MCP keys.
2
Put the key in an environment variable
Add the key to your shell profile, for example Then restart Cursor so it picks up the variable.
~/.zshrc, so it stays out of your config files:3
Add Prefer to mcp.json
Edit Cursor replaces
~/.cursor/mcp.json to use Prefer in every project, or .cursor/mcp.json in a project for that project only:${env:PREFER_MCP_KEY} with the value from your environment.4
Ask
In Cursor’s agent, ask in plain words, for example “Which Prefer actions should we fix first?”. Cursor asks before it uses an MCP tool.
