A Cursor extension that automatically connects the Braintrust MCP server, giving Cursor's AI assistant access to your Braintrust projects, experiments, and logs.
- Cursor
- A Braintrust API key
Install from the Cursor extension marketplace:
- Open Cursor
- Go to Extensions (
Cmd+Shift+X/Ctrl+Shift+X) - Search for "Braintrust"
- Click Install
The extension reads your API key from the BRAINTRUST_API_KEY environment variable. Set this before launching Cursor.
Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):
export BRAINTRUST_API_KEY="your-api-key-here"Then restart your terminal and Cursor.
Set the environment variable via System Properties > Environment Variables, or in PowerShell:
[Environment]::SetEnvironmentVariable("BRAINTRUST_API_KEY", "your-api-key-here", "User")Then restart PowerShell and Cursor.
To allow the extension to authenticate without OAuth prompts:
- Open Cursor Settings (
Cmd+,/Ctrl+,) - Search for "trusted domains"
- Add
braintrust.devto the list of trusted domains - Restart Cursor
Once the extension is installed and BRAINTRUST_API_KEY is set, the Braintrust MCP server is automatically registered when Cursor starts. No manual steps required.
- Verify the variable is set:
echo $BRAINTRUST_API_KEY(macOS/Linux) orecho %BRAINTRUST_API_KEY%(Windows) - Cursor must be restarted after setting environment variables
- On macOS, launching Cursor from Spotlight/Dock may not inherit shell variables — launch from terminal instead
- This extension only works in Cursor, not vanilla VS Code
- Ensure you're running a recent version of Cursor that supports the MCP Extension API
See CONTRIBUTING.md for development setup and build instructions.
MIT