BarrelBrain MCP
Barrel Brain's tools for any MCP client: petroleum-engineering calculation as C# you write and run here, with the same engine and example catalog as the Barrel Brain desktop app.
Endpoint: https://mcp.barrelbrain.ai/
Connect
Add it to your MCP client as a remote server over Streamable HTTP. Calls need a bearer token:
Authorization: Bearer <token>. Account sign-in is on its way.
{
"mcpServers": {
"barrelbrain": {
"url": "https://mcp.barrelbrain.ai/",
"headers": { "Authorization": "Bearer <token>" }
}
}
}
Then start with barrelbrain_readme_get; app_tool_list lists the tools by toolset.
Toolsets
core
How to work here, the tools by toolset, and the versions that answered. Start with barrelbrain_readme_get.
barrelbrain_readme_getStart here.app_tool_listLists this server's tools, grouped by toolset: each toolset's name, what it is for, and its tools with their one-line descriptions.app_version_getReturns the server's build, and the scripting in use: the script engine, each calculation library with its package version (Team76.Engineering), and the example set.
scripting
Write and run C# against Team76.Engineering: search the scripting API and the example catalog, check a script, run it, and read typed results. Start with scripting_readme_get.
script_api_getDiscover the `ctx` API a `.script` can call — the curated context, its `ScriptResult` return type, and every domain facade reachable via `ctx.Get<T>()`.script_api_searchFind what a script can call by concept, when you don't know the class name: "bubble point", "decline fit", "Bourdet derivative", "ESP stages".scripting_readme_getHow to script in this app, read once before writing a script: the order to work in (search the API and the examples, write, check, run), how results come back, units, and the sandbox's limits.script_example_listEnumerate every curated in-process `.script` example in the bundled catalog, with metadata (name, title, category, description, tags) — but not the script text; `script_example_get` has that.script_example_getRetrieve one curated `.script` example in full by its exact name — metadata plus the complete in-process script source (a class implementing `IAppScript`).script_example_searchFind curated `.script` examples by keyword, tag, concept, or description when you don't know the exact name.script_validateCompile a script without running it, and return its errors with line numbers.script_code_runRun a script and return what it produced: blocks, the run as the desktop's result tabs show it (a table block per ScriptTable, a chart block per ScriptChart (series, axis titles, line or scatter, xScale and yScale linear or log; on a log axis a point at or below zero is left out), one object block for the rest of the result, a text block for a dump or an error), how long it took, and the versions it ran on.
Desktop only
Anything that needs a workspace (decks, grids, summaries, queries and dashboards over a model, files) runs in the Barrel Brain desktop app.