# Integrating Google OAuth for MCP SSE Connections in Cursor

**URL:** <https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189>\
**Category:** Discussions\
**Created:** [February 9, 2025, 12:27am UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189 "2025-02-09T00:27:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielKnight](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gabrielknight/32/25348_2.png) [@GabrielKnight](https://forum.cursor.com/u/GabrielKnight)\
**Post date:** [February 9, 2025, 12:27am UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/1 "2025-02-09T00:27:01Z")

</div>

Hi everyone,

I’m facing an authentication challenge with our MCP integration in Cursor and would appreciate your insights.

We have an MCP server built with FastAPI that exposes our “chat” tool via SSE. For our web UI (powered by NextAuth), we rely on Google authentication to ensure the proper username and email context. However, when it comes to the MCP connection from Cursor, the usual Google OAuth flow isn’t triggering, leaving us without an authenticated user context on the server.

In essence, while our MCP server expects Google OAuth credentials (either via an external flow or token injection), Cursor’s MCP client currently appears not to support custom auth headers, token injection, or automatic redirection to a Google login page. We’re exploring options like:

1. **Pre-authentication:** Running a one-time OAuth flow externally to obtain a token (or refresh token) that the server can use for subsequent MCP requests.
2. **Proxy/Wrapper:** Setting up a proxy that injects the necessary auth headers into the SSE connection from Cursor.
3. **Awaiting Native Support:** Looking for future enhancements in Cursor that might allow for an integrated OAuth flow or custom header/token support.

Has anyone successfully tackled this issue or have recommendations on integrating Google authentication with MCP in Cursor? Any pointers on workarounds or upcoming features would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [February 19, 2025, 9:32pm UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/2 "2025-02-19T21:32:28Z")

</div>

This is a pretty complex setup you’re working with. Currently, Cursor’s MCP implementation is fairly basic and doesn’t support OAuth flows or custom auth headers out of the box

Your best bet is probably going with the pre-authentication approach - having users authenticate once through your web UI to generate a long-lived token, then using that token in your MCP server implementation. You could store this in a config file that your MCP server reads

The proxy approach could work too, but adds more complexity to maintain. I wouldn’t wait for native support as this is a pretty niche use case that likely won’t be prioritized soon

Check out our MCP docs for the current implementation details: [Cursor – Model Context Protocol](https://docs.cursor.com/context/model-context-protocol)

---

<div class="post-metadata">

**Author:** ![GabrielKnight](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gabrielknight/32/25348_2.png) [@GabrielKnight](https://forum.cursor.com/u/GabrielKnight)\
**Post date:** [February 19, 2025, 10:23pm UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/3 "2025-02-19T22:23:42Z")

</div>

Thanks!

In regards to Native support, we did see that the MCP standard are busy thinking/wokring on an OAuth solution - see [Authentication · modelcontextprotocol/specification · Discussion #64 · GitHub](https://github.com/modelcontextprotocol/specification/discussions/64).

You believe perhaps Cursor will follow suit?

---

<div class="post-metadata">

**Author:** ![yu-iskw](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yu-iskw](https://forum.cursor.com/u/yu-iskw)\
**Post date:** [June 5, 2025, 12:03am UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/4 "2025-06-05T00:03:23Z")

</div>

If the GitHub tool which is listed in the docs supports the OAuth-based authentication in addition to the PAT-based authentication, it would be awesome as the Notion MCP tool already supports the OAuth-based authentication. In an enterprise, we don’t want employees to create their own PAT. That can increase security risks. By the OAuth-based authentication, we don’t have to manage GitHub personal access tokens.

> **[Cursor – MCP Directory](https://docs.cursor.com/tools)**
>
> Explore and install MCP servers for Cursor

---

<div class="post-metadata">

**Author:** ![ruixingshi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ruixingshi/32/24699_2.png) [@ruixingshi](https://forum.cursor.com/u/ruixingshi)\
**Post date:** [June 5, 2025, 9:01am UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/5 "2025-06-05T09:01:25Z")

</div>

hi, do you have the mcp server demo code that has implemented OAuth?

---

<div class="post-metadata">

**Author:** ![netcaster](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/netcaster/32/6215_2.png) [@netcaster](https://forum.cursor.com/u/netcaster)\
**Post date:** [June 6, 2025, 1:22am UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/6 "2025-06-06T01:22:50Z")

</div>

Same here. My MCP tool with google authentication works in Claude desktop/website but fail in Cursor. I don’t think the issue is in my side.

Checked [Cursor – Deeplinks](https://docs.cursor.com/deeplinks) documents and not able to find any clue on this. Below is related msg in cursor MCP logs.

2025-06-06 10:20:54.175 [error] rver: Client error for command Incompatible auth server: does not support dynamic client registration

2025-06-06 10:20:54.176 [error] rver: Error connecting to SSE server after fallback: Incompatible auth server: does not support dynamic client registration

- client version  
Version: 1.0.0 (user setup)  
VSCode Version: 1.96.2  
Commit: 53b99ce608cba35127ae3a050c1738a959750860  
Date: 2025-06-04T19:44:25.253Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.22631

---

<div class="post-metadata">

**Author:** ![tomasfejfar](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tomasfejfar/32/62942_2.png) [@tomasfejfar](https://forum.cursor.com/u/tomasfejfar)\
**Post date:** [June 11, 2025, 9:14pm UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/7 "2025-06-11T21:14:05Z")

</div>

After strugling with integrating our Oauth authorized hosted SSE MCP, we reverted to using npx+remote\_mcp, which works kinda nice, but is not ideal from the user standpoint. We’re seeing more and more non-technical people using Cursor and installing node+npx is a needless hurdle for them.

---

<div class="post-metadata">

**Author:** ![Mario\_Guerra](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Mario\_Guerra](https://forum.cursor.com/u/Mario_Guerra)\
**Post date:** [February 13, 2026, 5:59pm UTC](https://forum.cursor.com/t/integrating-google-oauth-for-mcp-sse-connections-in-cursor/49189/8 "2026-02-13T17:59:50Z")

</div>

I had a similar issue with Azure OAuth. There’s essentially a standards mismatch between what Azure provides vs what Cursor expects, and I’m guessing it’s a similar situation with Google. You might be able to take my reference implementation, give it to Cursor, and have one of the smarter models figure out how to adapt it. More details here:

> [@Working Solution: MCP Server OAuth with Microsoft Entra ID on Azure Container Apps](https://forum.cursor.com/t/working-solution-mcp-server-oauth-with-microsoft-entra-id-on-azure-container-apps/151813):
>
> For anyone trying to connect Cursor to a remote MCP server hosted on Azure Container Apps using Microsoft Entra ID (Azure AD) for authentication, I wanted to share a working solution. It took a while to get right, so hopefully this saves others some time. The Problem The MCP authorization spec requires support for several OAuth standards that Microsoft Entra ID doesn’t implement natively: RFC 8414 (Authorization Server Metadata) — Microsoft uses OIDC discovery at /.well-known/openid-configur…
