Connect Cursor to Braintrust, giving Cursor's AI assistant access to your projects, experiments, and logs via MCP.
This repo provides two ways to install:
- Cursor Plugin — lightweight MCP config, installed via the Cursor Marketplace
- VS Code Extension — auto-registers the MCP server on startup via the Cursor Extension API
- Cursor
- A Braintrust API key
Install from the Cursor Marketplace:
- Open Cursor
- Run
/add-pluginand search for "Braintrust", or install fromcursor.com/marketplace - Set the
BRAINTRUST_API_KEYenvironment variable (see Setup)
The plugin adds the Braintrust MCP server to your Cursor environment. No build step required.
Install from the Cursor extension panel:
- Open Cursor
- Go to Extensions (
Cmd+Shift+X/Ctrl+Shift+X) - Search for "Braintrust"
- Click Install
The extension automatically registers the Braintrust MCP server when Cursor starts.
Both the plugin and extension read 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.
- 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
- The 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