How it runs
The server is distributed as theperfai-cloud-mcp npm package and launched with npx:
Authentication
By default, thelogin tool opens a browser to Perfai’s own sign-in page (OAuth) and completes the session automatically — no credentials in your config required.
To skip the browser — for example on a headless machine or in CI — create a Perfai API key and add it to the server’s env block as PERFAI_API_KEY:
PERFAI_TOKEN also accepts an API key.
Standard config format
Most MCP clients use a JSON config with anmcpServers key:
VS Code uses
"servers" instead of "mcpServers" at the top level. See the VS Code setup guide for details.
Zed uses a nested "context_servers" object with a command object (path/args) inside it. See the Zed setup guide.Claude Desktop setup
- macOS
- Windows
- Linux
File:
~/Library/Application Support/Claude/claude_desktop_config.jsonRequirements
- Node.js 18+ — the server requires Node 18 or later. Run
node --versionto check. npxmust be on your system PATH. It comes bundled with Node.js.
Tools
Before login, onlylogin and auth_status are available. After authenticating, your client gains access to:
Authentication
Organization management
App management
Security testing
Vulnerability management
Login
The prompts below run inside your MCP client’s chat (Claude Desktop, JetBrains AI, Continue.dev, etc.), not your terminal. The only terminal/file steps are editing the config.
PERFAI_API_KEY if you set it). Confirm with What's my Perfai auth status?.
Common prompts
Troubleshooting
Server disconnects immediately /spawn npx ENOENT
- On Windows, wrap the command through
cmd:"command": "cmd", "args": ["/c", "npx", "-y", "perfai-cloud-mcp"].
MCP error -32000: Connection closed or a crash naming a missing file inside node_modules (e.g. axios/lib/adapters/...)
- This is usually a corrupted or partially-extracted
npxcache, often caused by the client spawning the server twice in quick succession. Clear the cache entry under~/.npm/_npx/(macOS/Linux) or%LOCALAPPDATA%\npm-cache\_npx\(Windows), or avoid the issue entirely by installing once (npm install -g perfai-cloud-mcp) and pointing your config atperfai-cloud-mcpdirectly instead ofnpx.
- Call
loginfirst. If you’re relying on the browser flow, make sure the popup wasn’t blocked.
- Fully restart your client (not just close the window) so it re-reads the config, then check the client’s MCP server logs for the actual error.
npx not found
- Install Node.js from nodejs.org.
npxis included automatically. - On macOS with Homebrew:
brew install node.

