How to Set Up Raygun's Remote MCP Server in Cursor and Codex
Posted Apr 14, 2026 | 2 min. (327 words)From zero to AI-powered debugging
After introducing Raygun’s original MCP server and our new remote-first version, the most common question we hear is: “How do I actually set this up and start using it?”
This guide covers exactly that, two short videos walking through setup and a real error being solved in both Cursor and Codex.
Setting up Raygun MCP in Cursor
Cursor Setup Steps
- Open Cursor Settings → Tools & MCP → Add Custom MCP
- Use the following configuration:
{
"mcpServers": {
"Raygun": {
"url": "https://api.raygun.com/v3/mcp",
"headers": {
"Authorization": "Bearer YOUR_PAT_TOKEN"
}
}
}
}
Tip: Create a Personal Access Token in your Raygun account
Once added, Cursor can immediately start querying your live Raygun error data, deployments, breadcrumbs, and customer context.
Setting up Raygun MCP in Codex
Codex Setup:
In the setup and demo we showed the new Codex app MCP installation method, but for the CLI you can follow the instructions below.
Add this to your Codex’s config.toml configuration file (learn more):
[mcp_servers.raygun]
enabled = true
url = "https://api.raygun.com/v3/mcp"
[mcp_servers.raygun.http_headers]
Authorization = "Bearer YOUR_PAT_TOKEN"
Try it yourself
In both videos all we had to do was give the link to an error to our coding agent, and it used the context in Raygun to go find the issue in the codebase and fix it.
This isn’t all that the Raygun MCP can do though, you can check deployments for new errors or regressions, investigate what errors a customer is encountering + related sessions, and so much more.
Almost anything is possible now with our MCP server.
All you have to do is:
- Generate a Personal Access Token in Raygun (Account settings → Personal Access Tokens)
- Add the Raygun MCP server to your agent of choice
- Start debugging
Want to go further?
- Here’s a list of common assistants and updated instructions: github.com/MindscapeHQ/mcp-server-raygun
- Questions or ideas? Open an issue on the repo or contact us
We’re excited to see what you build with the Raygun MCP