Put your agent to work on your models.
Features · MCP Server
Put your agent to work on your models.
Connect the MCP client you already use to Prediction Lab on your machine, and let it branch a model, run a fit, and open a review.
Your client
Claude Desktop connected to pl-mcp
local · 6 tool calls
Prompt: Try driver_age as a spline in the frequency model on a branch, refit, and open a review if it helps
Read the frequency model
describe_modelDoneAllow
create_branch?Allowed for this chat
Branched the model as driver-age-spline
create_branchDoneAdded driver_age as a natural spline
add_featureDone, allowed for this chatRefit on the branch
run_model_fitDone, allowed for this chatCompared the driver_age effect
compute_model_effectsDoneOpened a review into Default
create_reviewDone, allowed for this chat
Run complete. A review is open into Default.
driver_age effect
Model review
Opendriver-age-spline → Default
Setup
A few minutes, outside the app.
pl-mcp is opt-in. It runs in a separate MCP client such as Claude Desktop, Claude Code, Codex, or Cursor, not inside Prediction Lab. It is available on macOS and Windows.
Open the MCP Server page.
In the desktop app, choose MCP Server from the avatar menu at the bottom of the sidebar. The first time you open it, the app installs the signed pl-mcp binary on your machine.
Add pl-mcp to your MCP client.
Copy the path from the app's MCP Server page into the snippet shape shown for your client, add it to your client's config, then restart the client so it picks up the new server.
Keep Prediction Lab running.
pl-mcp talks to the desktop app on your machine. When the app is closed, the server has nothing to connect to.
{
"mcpServers": {
"prediction-lab": {
"command": "<path shown on the MCP Server page>"
}
}
}Capabilities
The same work you do in the app.
Your client works in your local workspaces, and its changes land in Prediction Lab like any other. Have your agent work on a branch and open a review when you want a teammate to check it first.
- Explore
- Browse your workspaces and datasets and read their rows.
- Example prompt: “Which of my datasets have a claim_count column?”
- Tools:
list_datasetslist datasetspreview_rowspreview rows
- Ingest
- Import a local file as a new dataset, or replace an existing dataset's file.
- Example prompt: “Import policies_2026.csv from my Downloads folder as a new dataset.”
- Tools:
ingest_datasetimport a filereplace_dataset_filereplace a file
- Prepare
- Set the target, add features, and filter the rows a model sees.
- Example prompt: “Add vehicle_age as a feature and leave out commercial policies.”
- Tools:
create_targetset the targetadd_featureadd a featureset_filterfilter rows
- Model & fit
- Create a model, run a fit, or have the app build a model for you.
- Example prompt: “Build an automated frequency model on claim_count and fit it.”
- Tools:
create_modelcreate a modelrun_model_fitrun a fitbuild_automated_modelbuild automatically
- Inspect
- Read a fit's results and compare how an effect changed.
- Example prompt: “How did the driver_age effect change between the last two fits?”
- Tools:
get_model_fitread a fitcompute_model_effectscompare effects
- Collaborate
- Work on a branch and open a review for a teammate to check.
- Example prompt: “Make this change on a branch and open a review into Default.”
- Tools:
create_branchbranchcreate_reviewopen a reviewdecide_reviewapprove or close
The server also ships ready-made prompts, such as analyze-dataset. Clients that support MCP prompts show them as slash commands.
Control
You decide what it can change.
- Read-only mode
- Write tools are on by default. Start pl-mcp with
--read-onlyand your client can read your data but can't change it. Add--allow-computeto turn compute back on under read-only. { "mcpServers": { "prediction-lab": { "command": "<path shown on the MCP Server page>", "args": ["--read-only"] } } }- Approval before writes
- pl-mcp marks every tool that changes your workspace as destructive, which is the signal MCP clients use to ask before running it.
- Local by design
- pl-mcp connects only to the app on your machine. There's no token to manage and nothing listens on the network. If your client is a hosted AI, what it reads through pl-mcp goes to that client's provider.
- Branch and review
- Your agent works on a branch. You merge it. How reviews work
Ready to ship better models?
Download Prediction Lab, or book a 15-minute demo with our team.