mcp.json file, edited from the Program tab and Perfai MCP is a remote server.
LM Studio’s own model is local and free to run — but tool-calling against an 18-tool MCP server needs a model that’s actually capable of structured tool use. Small quantized models can fail to respond at all.
Generate your Bearer token
Run this in your own terminal — substitute your Perfai email and password:- macOS / Linux
- Windows (PowerShell)
mcp.json as Bearer <base64>.
Installation
- Open LM Studio and go to Developer → Local Server.
- Click the Program tab.
- This opens (or lets you edit)
mcp.json. Add the following:
- Save the file. LM Studio reconnects to configured MCP servers automatically.
Verify the server is connected
- In the Program tab, check that perfai-cloud shows as connected with 18 tools listed.
- If it fails to connect, re-check the
Authorizationheader value and confirm there’s no trailing whitespace in the base64 string.
Login
The prompts below run inside LM Studio’s chat, not your terminal. The only file-based step is editing
mcp.json.login with no arguments, which opens a browser to Perfai’s own login page. Confirm the session with:

