OAuth login with Google fails, only email/password works for Cloudflare MCP server in Claude Desktop
When adding the Cloudflare MCP server to my claude_desktop_config.json, Claude Desktop correctly opens the OAuth login page in my browser. However, if I attempt to log in using the "Sign in with Google" option, the authentication process never completes: the MCP server keeps waiting for authentication and eventually times out (as seen in the logs). No error is shown in the browser, but the server never receives the callback.
If I instead use the standard email and password login on the same OAuth page, authentication completes successfully and the MCP server works as expected.
Steps to reproduce:
-
Add the Cloudflare MCP server to claude_desktop_config.json.
-
Start Claude Desktop and trigger the Cloudflare tool.
-
When redirected to the OAuth login page, choose "Sign in with Google".
-
Complete the Google login flow.
-
Observe that the MCP server keeps waiting for authentication and times out.
-
Repeat the process, but use email/password login instead---authentication succeeds.
Expected behavior:
OAuth login should work with both Google and email/password methods, and the MCP server should receive the callback and complete authentication in both cases.
Actual behavior:
-
Google login never completes; server times out waiting for authentication.
-
Email/password login works as expected.
Environment:
-
OS: macOS 15.1.1
-
Node version: v21.7.3 (for MCP server)
Relevant logs:
[9865] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202 [9678] Authentication still in progress [9678] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202 [9175] Authentication still in progress [9175] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202 [9865] Authentication still in progress [9865] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202 [9678] Authentication still in progress [9678] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202 [9175] Authentication still in progress [9175] Querying: http://127.0.0.1:3334/wait-for-auth [8788] Long poll timeout reached, responding with 202
Additional context:
-
I tried clearing cache, restarting, and using different browsers, but the issue persists with Google login.
-
The redirect/callback works fine with email/password login.
Can you paste your claude config? What specific MCP server are you using (stdio or one of the remote servers)?