How to Use the Braintrust MCP in Cursor
Let Cursor inject live Braintrust datasets and experiments directly into your active code files.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Braintrust MCP to Cursor
Create your Vinkius account to connect Braintrust to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Inject Braintrust datasets into Cursor code
This MCP Server uses `get_dataset` and `list_datasets` to pull ground truth text banks directly into your Cursor editor. When writing unit tests, your agent reads the exact schemas bounding your LLM outputs and writes test fixtures using real dataset rows. You no longer have to mock dataset payloads or guess test schemas. Cursor queries your Braintrust datasets on the fly, populating your editor with live production-grade test cases that match your active branch configurations.
Run Braintrust experiments from Cursor Agent
The `create_experiment` and `list_experiments` tools let Cursor track code changes against historical evaluation runs. As you refactor your model pipelines, the Cursor agent triggers a new experiment to log your local test scores. This tight loop gives you instant feedback inside the editor. You see exactly how your local code edits impact accuracy metrics, with the agent automatically mapping the results to your central Braintrust dashboard using the active MCP connection.
Pull active prompt contexts into Cursor
The `get_prompt` and `list_prompts` tools fetch version-controlled system prompts directly into your active coding session. Cursor reads the literal templates, allowing the agent to write typescript or python wrapper code that matches your production prompt schemas. This prevents syntax mismatches when updating LLM calls. The editor updates your local prompt variables to match the exact context expected by Braintrust, reducing integration errors before you commit.
Set up Braintrust MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Braintrust MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Braintrust transactions." If the MCP tools are loaded correctly, Cursor will call the Braintrust tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"braintrust-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Braintrust. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Braintrust MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Braintrust MCP today
We host it, we monitor it, we maintain it. You just paste one token.