[BUG] Smithery MCP OAuth fails with "Unregistered redirect_uri" on Windows
Resolved 💬 3 comments Opened Mar 23, 2026 by maetel-web Closed Mar 26, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
OS: Windows 10
Command: npx -y @smithery/cli@latest mcp add googlesheets --client claude-code
Error: {"error":"invalid_request","error_description":"Unregistered redirect_uri"}
The browser opens but OAuth fails immediately.
A colleague on Windows succeeded with the same command.
What Should Happen?
Browser should open Google OAuth login page and allow authentication to complete successfully.
Error Messages/Logs
{"error":"invalid_request","error_description":"Unregistered redirect_uri"}
Steps to Reproduce
- Install Claude Code on Windows: npm install -g @anthropic-ai/claude-code
- Run: npx -y @smithery/cli@latest mcp add googlesheets --client claude-code
- Browser opens with Smithery OAuth URL
- Immediately get error: {"error":"invalid_request","error_description":"Unregistered redirect_uri"}
- Google login page never appears
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code version 2.1.81.
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗