/v1/mcp. This lets any MCP-compatible AI tool — Claude, Cursor, VS Code, or a custom agent — connect to your Corsa platform and query it using natural language via the ask_corsa tool.
Authentication
The MCP endpoint supports two authentication methods.Option 1: Bearer token (API key)
Use the same Bearer token format as the REST API:Option 2: OAuth (Authorization Code + PKCE)
For interactive tools like Claude Desktop, Cursor, or Notion AI, Corsa supports standard OAuth 2.0 Authorization Code flow with PKCE (no client secret required). MCP clients that support OAuth will discover and use this flow automatically.How it works
- Your MCP client sends an unauthenticated request to
/v1/mcp. - The server responds with
401and aWWW-Authenticateheader pointing to the protected resource metadata: - The client fetches the metadata, discovers the authorization server, and initiates Authorization Code + PKCE with the Corsa Auth0 tenant.
- After the user authorizes, the client receives an access token and uses it for all subsequent MCP requests.
Discovery endpoints
| Endpoint | RFC | Purpose |
|---|---|---|
GET /.well-known/oauth-protected-resource | RFC 9728 | Lists the authorization server and supported scopes |
GET /.well-known/oauth-authorization-server | RFC 8414 | Returns authorization and token endpoint URLs |
POST /oauth/register | RFC 7591 | Dynamic client registration — returns the public client_id |
OAuth parameters
| Parameter | Value |
|---|---|
| Grant type | authorization_code |
| PKCE method | S256 |
| Client type | Public (no client_secret) |
| Scopes | openid profile email |
| Token type | Bearer (JWT) |
Endpoint
Configuration
Claude Desktop
Add toclaude_desktop_config.json:
headers — Claude Desktop will discover and initiate the OAuth flow automatically.
Claude Code
Add to.claude/settings.json (project) or ~/.claude/settings.json (global):
Cursor
Add to.cursor/mcp.json:
headers and Cursor will initiate the OAuth flow on first use.
EU region
For EU-hosted platforms, usehttps://api.eu.corsa.finance/v1/mcp instead.
What you can do
Once connected, your AI tool can use theask_corsa tool to query your platform in natural language:
- “Show me the last 10 high-priority alerts”
- “How many open cases are assigned to me?”
- “Find clients with a risk score above 80”
- “What alerts were created in the last 24 hours?”
- “Summarize the investigation for case CASE-1234”
What’s next
Authentication
Create API keys and understand the Bearer token format.
AI Skills
Install skills into your coding tool for guided API integration.
API Reference
Full OpenAPI spec (requires API credentials).
Webhooks
Receive real-time events from Corsa in your application.