> For clean Markdown of this page, append .md to its URL. For the complete documentation index, see https://www.superagent.sh/llms.txt.


Connect Cursor to Superagent MCP and complete a finding-to-report workflow.

# Set up Cursor

Connect Cursor to Superagent, then use a Cursor automation to receive findings and return structured agent reports.

## Prerequisites

- A Superagent organization API key
- Connected software in Superagent
- A Cursor environment that can access the same software

## Connect Superagent MCP

Select **Add to Cursor** on the [Superagent listing in Cursor Marketplace](https://cursor.com/marketplace/superagent). In Cursor, open **Plugins → Superagent → Configure**, enter the key as `SUPERAGENT_API_KEY`, and reload Cursor.

For manual setup, set `SUPERAGENT_API_KEY` in the environment that launches Cursor and add this server to Cursor's `mcp.json`.

```json
{
  "mcpServers": {
    "superagent": {
      "url": "https://www.superagent.sh/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SUPERAGENT_API_KEY}"
      }
    }
  }
}
```

Do not put the key in chat, source control, or the MCP URL.

## Configure the finding handoff

Create a Cursor automation with a webhook trigger. Add the generated endpoint as a [Superagent webhook](https://www.superagent.sh/docs/webhooks), subscribe to finding events, and store Cursor's authentication value as an encrypted custom header.

## Test the complete loop

1. Send a Superagent webhook test event and confirm the Cursor automation receives it.
2. To test MCP retrieval, use a real finding from the connected software. The test event contains a sample finding ID.
3. Ask Cursor to retrieve the finding and return a structured agent report through MCP. Confirm Superagent links the report to the finding.
4. Leave any pull request for CI and human review.

## Next steps

- [Build an always-on pentester with Cursor](https://www.superagent.sh/docs/use-cases/continuous-adversarial-testing-with-cursor)
- [Use Superagent MCP](https://www.superagent.sh/docs/mcp)
- [Subscribe to events with Webhooks](https://www.superagent.sh/docs/webhooks)

---
Source: https://www.superagent.sh/docs/connect/cursor
Index: https://www.superagent.sh/llms.txt
