Ogma MCP Server Setup
MCP lets external AI clients such as Codex, Claude Code, and Cursor use Ogma's tools and captured traffic.
For the in-app assistant, see Workspace AI.
Quick Start: Desktop App
- Open Settings > MCP.
- Choose the required permissions and save. Browser interaction requires Replay send.
- Click Start and copy the Endpoint.
- Add it to your AI client as a Streamable HTTP MCP server.
Connection Addresses
| Connection | Address | Use |
|---|---|---|
| MCP client | http://127.0.0.1:3000/mcp by default | Connect external AI clients. Always copy the actual endpoint from Settings. |
Use a local MCP client or a supported desktop connector.
When to Use MCP
Use MCP to help an external agent inspect captured traffic, review findings, modify Replay requests, create workflows, or interact with Ogma Browser. The permissions you enable determine which actions it can perform.
For browser snapshots, forms, login journeys, and recovery, see Browser automation with MCP. For every tool and its inputs, see MCP resources and tools.
Tool Discovery
Ogma exposes its full tool catalogue.
Ask the agent to use ogma_explain_capabilities to understand the workspace and ogma_find_tools to find tools for a task. It can inspect ogma://project/current to confirm the active project. A tool may be listed even when permission to use it is disabled.
In-App MCP Settings
Use Start and Stop in Settings > MCP to control the server.
Saving settings while MCP is running restarts it. Reconnect your client afterward. Runtime diagnostics shows startup errors.
Claude Code
With MCP running in Ogma:
bash
claude mcp add --transport http ogma http://127.0.0.1:3000/mcpReplace the example endpoint with the one copied from Settings if different. Ask: "Which project is open in Ogma?"
Cursor
Add this entry to your project's .cursor/mcp.json or user-level ~/.cursor/mcp.json:
json
{
"mcpServers": {
"ogma": {
"url": "http://127.0.0.1:3000/mcp"
}
}
}Use your copied endpoint if different, then enable the connection in Cursor's MCP settings. Other MCP clients can use the same Streamable HTTP endpoint.
Permissions
All six privileged capabilities are disabled by default. Select the permissions you need in Settings > MCP, then save.
| Setting | Allows |
|---|---|
| Findings write | Create and edit findings and evidence links, and modify shared project data such as environment variables, scope, and Match & Replace rules. |
| Export data | Create export jobs. |
| Read secret values | Read unmasked environment variables marked as secret. |
| Replay send | Send requests, control the browser, run Automate, use authentication journeys, test WebSockets, and switch projects. |
| Workflow run | Preview, execute, and cancel workflows. |
| Intercept control | Inspect and control the intercept queue, including modifying, forwarding, or dropping traffic. |
Most inspection tools work without these permissions. A workflow that sends requests or creates findings also needs the corresponding sending or finding-write permission. Review workflows before letting an agent execute them.
Project switches and edits made by an agent affect your workspace. MCP session notes are separate from the application's saved Notes.
Example Prompts
- "Show me the last 20 HTTP requests to example.com."
- "Summarize the high and critical findings in this project."
- "Review the selected Replay request before sending it."
- "Create a workflow that saves JavaScript responses from this target."
- "Use Ogma Browser to inspect this authorized test page."
Troubleshooting
| Problem | What to check |
|---|---|
| Connection refused | Check the server status and endpoint in Settings > MCP. |
| A tool is denied | Enable its required permission in Settings > MCP and save. Reconnect if the server restarted. |
| Tools are missing | Refresh or reconnect the client. It must load every page of the tool catalogue, not only the first page. |
| Session or confirmation token is invalid | Reconnect after a restart and ask the agent to generate a new preview. |
| Browser is unavailable | Check Ogma Browser. See the browser automation guide for recovery. |
| Traffic results are empty | Capture traffic in the intended project first and check the active scope and filters. |