Cursor
Register pairag_mcp_cursor with audience=mcp and register Cursor's redirect URI before attempting OAuth.
One-click install in Cursor
Uses Cursor's official MCP install deeplink. Your system opens Cursor and registers Pairag with **url** + static **auth.CLIENT_ID** (public client). Then use **Settings → MCP → Connect** next to Pairag: the browser opens **app.pairag.com** for login/consent; when done, Cursor returns via **cursor://anysphere.cursor-mcp/oauth/callback** (must be allowlisted in **oauth_clients**).
Open Cursor and add PairagPrerequisites
- oauth_clients row client_id=pairag_mcp_cursor, redirect_uris includes cursor://anysphere.cursor-mcp/oauth/callback, audience=mcp.
- Issuer metadata must stay reachable at https://app.pairag.com/.well-known/oauth-authorization-server.
mcp.json template
Paste into ~/.cursor/mcp.json (macOS/Linux) or %USERPROFILE%\.cursor\mcp.json on Windows, then restart Cursor.
{
"mcpServers": {
"pairag": {
"url": "https://api.pairag.com/mcp"
}
}
}OAuth flow
Open Cursor Settings → MCP → Connect next to Pairag. Finish login/consent in the browser; Cursor exchanges the authorization code with PKCE.
Bearer fallback
If OAuth is unavailable, inject a static MCP access token or PAT using headers (rotate frequently).
{
"mcpServers": {
"pairag": {
"url": "https://api.pairag.com/mcp",
"headers": {
"Authorization": "Bearer ${PAIRAG_MCP_TOKEN}"
}
}
}
}${{PAIRAG_MCP_TOKEN}} is illustrative — export the variable in your shell or replace it manually after copying.
Verify credentials
curl with your MCP access token should return HTTP 200 JSON:
curl -sS -H "Authorization: Bearer <MCP_ACCESS_TOKEN>" https://api.pairag.com/api/v1/mcp/v1/me