Overview
Cursor supports MCP servers in its agent. This guide adds Ocean as a remote MCP server so Cursor can query threats, metrics, phishing reports, and allow/deny lists. For connection details and the full tool catalog, see the MCP Server Overview.Prerequisites
- Cursor installed.
- MCP access enabled for your tenant.
- An Ocean account to sign in with — or, if you’re using the API key method, an Ocean API key (see Authentication).
Where the config lives
Cursor reads MCP servers from anmcp.json file. Choose where to put the Ocean entry:
- Global (all projects):
~/.cursor/mcp.json - Project (this workspace only):
.cursor/mcp.jsonin the project root
Add with OAuth (recommended)
Add Ocean as a remote server with no credential, and let Cursor run the OAuth flow:mcp.json
ocean server prompts you to
log in; complete the browser sign-in with your Ocean account and approve the access Cursor
asked for. Cursor stores the token and refreshes it automatically.
Because there’s no secret in the file, this entry is safe to commit — each teammate
authenticates as themselves.
OAuth access to Ocean is read-only. If you need the allow/deny write tools, use an API
key instead — see Authentication.
Add with an API key
Put your API key in theheaders block instead:
mcp.json
Verify the connection
1
Check the server is enabled
In Cursor Settings → MCP, confirm
ocean shows a green (connected) status and that its
tools are listed.2
Ask a question
In the Cursor chat (Agent mode), try “Use Ocean to list recent phishing reports” and
confirm Cursor calls an Ocean tool.
Troubleshooting
- Server shows red / not connected. Confirm the URL is
https://api.ocean.security/mcp. Toggle the server off and on in MCP settings. - Stuck asking you to log in. Remove the
oceanentry, save, then add it back so Cursor re-runs the OAuth flow from scratch. - 401 on tool calls. With an API key, the key is missing, expired, or inactive — update it
in
mcp.json. With OAuth, log in again from MCP settings. - No Ocean tools listed. MCP access may not be enabled for your tenant, or your identity lacks the relevant permissions. See the overview troubleshooting.
