How it runs
The server is distributed as the@perfai/mcp npm package and launched with npx:
Authentication
The server signs in with your Perfai username and password, supplied as thePERFAI_USERNAME and PERFAI_PASSWORD environment variables in the server’s env block. After the login tool runs, the session is saved locally.
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 env inside command. 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:
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.
env block, tell your AI assistant:
What's my Perfai auth status?.
Common prompts
Troubleshooting
could not determine executable to run
- You’re missing the binary name. Use
npx --yes --package=@perfai/mcp@latest perfai-mcp-server, notnpx @perfai/mcp.
Authentication Failed / Configuration Required
- The server didn’t find credentials. Confirm
PERFAI_USERNAMEandPERFAI_PASSWORDare set in the server’senvblock and restart the client.
- Confirm
node --versionreturns 18 or later. - Run
npx --yes --package=@perfai/mcp@latest perfai-mcp-serverin a terminal to test directly — startup messages and any errors appear in the output.
npx not found
- Install Node.js from nodejs.org.
npxis included automatically. - On macOS with Homebrew:
brew install node.

