MCP server for AI assistants
Connect Claude, Cursor, VS Code or your own agent to OpsBrain, so it answers with the procedures your teams actually run.
OpsBrain's MCP server gives AI assistants a set of tools for your organization: look up a workflow, check runs and open flags, see where people get stuck, and, if you allow it, queue runs. It uses the same API keys and limits as the REST API.
What an assistant can do
Once it's connected, you can ask questions like these and get answers from your own data:
"What are the steps for receiving a pallet, and which ones need a photo?"
"Which flags are still open for the dock crew?"
"How is the cycle count going this month, and where do people skip steps?"
"Queue a receiving run for PO-77821 for the dock crew."
The server's address is url. It speaks MCP over Streamable HTTP and takes an API key as a Bearer token.
Connect your assistant
First, a manager creates an API key for the assistant. Read only suits most teams. Choose Read and queue runs if you want it to queue work. See
API keys
Claude (claude.ai and the desktop app): add a custom connector in Settings, Connectors, with the address url. Open the request headers, add header, and set its value to value with your key.
One key for the whole Claude organization
On Claude Team and Enterprise plans, an owner adds the connector once and everyone in that Claude organization uses the same key. Choose its scopes with all of them in mind.
Claude Code: run this once in a terminal.
Cursor: add OpsBrain to file.
VS Code: add this to file. VS Code asks for the key the first time and stores it for you, so it stays out of the file.
Other clients and your own agents: any MCP client that supports Streamable HTTP and custom headers can connect the same way. ChatGPT needs a sign-in flow (OAuth) that OpsBrain doesn't offer yet.
Tools
An assistant only sees the tools its key's scopes allow. Lists return 20 items at a time.
Tool
What it does
Scope
Makes changes
Finds workflows by name, status or team.
One workflow with its live steps, choices, decisions and which steps ask for evidence.
Recent runs, filtered by status, workflow, team, reference or date.
One run step by step: answers, skips and reasons, notes, flags and timing.
Flags nobody has resolved yet.
Health score, completion, and the steps where people skip or raise flags.
Teams in the organization.
Runs waiting in a team's queue.
Suggestions to improve workflows, pending by default.
Puts a run in a team's queue, with answers filled in ahead.
Resolves a flag.
Starts a draft workflow from a description and returns a link where a manager reviews it.
Safeguards
The key's scopes decide which tools exist for the assistant. A Read only key doesn't even see the three tools that make changes.
The server tells the assistant to check with you before it queues a run, resolves a flag or starts a draft. Those tools take an field, so a retry never does the same thing twice.
No tool publishes a workflow, deletes anything, or changes members, billing or settings. A manager does that in OpsBrain.
Changes are recorded with the key's name, the same as API calls.
Photos and files only come as links that last an hour, and only when the key has the evidence scope.
Your team's text is treated as data
Step instructions, notes and flag messages are written by people, and someone could write something that reads like an order to an AI. Every tool result is marked as your organization's data, and the server tells the assistant never to follow instructions inside it. Give write scopes only to assistants you trust.
Limits and usage
Each tool call counts against the key's limits: 120 reads a minute, and 30 writes a minute and 500 a day for the tools that make changes. The organization's plan limit applies too. See
rate limits
Lists return 20 items by default and 50 at most, which keeps answers small. The assistant asks for more with field when it needs them.
The key's usage shows up in Integrations, API keys, like any other key. When a tool fails, its error starts with the same code as the API. See
error codes