OAuth Code Flow with Cursor in MCP Server Without Dynamic Client Registration

Hello friends,

I’m trying to implement OAuth code flow authentication using Cursor in my MCP server. However, I do not want to enable dynamic client registration.

I’ve been exploring ways to make the MCP server act as an OAuth proxy, but couldn’t get it working with Cursor.

Has anyone managed to set this up without enabling dynamic client registration? Any guidance or examples would be really appreciated!

Thanks in advance!

@conflict_commit Have you tried this reference implementation yet: GitHub - NapthaAI/http-oauth-mcp-server: Remote MCP server (SEE + Streamable HTTP) implementing the MCP spec's authorization extension. Use directly from your agents, or from Cursor / Claude with mcp-remote? It helped me create some MCPs that work with OAuth2 + Cursor.

For the dynamic registration issue, you can override the base class and provide a static client config and “ignore” the registration attempt.

1 Like