claude-code - 💡(How to fix) Fix [Bug] Notion MCP OAuth callback returns Internal Server Error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50782Fetched 2026-04-20 12:13:10
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Error Message

Notion MCP OAuth authentication fails with Internal Server Error 4. Callback page shows "Internal Server Error" Actual: OAuth callback returns Internal Server Error

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Notion MCP OAuth authentication fails with Internal Server Error

Steps to reproduce:

  1. Open MCP servers panel
  2. Click "Needs Auth" on claude.ai Notion
  3. Complete OAuth flow
  4. Callback page shows "Internal Server Error"

Claude Code version: v2.1.92 Expected: OAuth should complete successfully and Notion MCP should show "Connected" Actual: OAuth callback returns Internal Server Error

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.92
  • Feedback ID: 17933609-d15a-428b-9478-07561721e75a

Errors

[]

extent analysis

TL;DR

The Notion MCP OAuth authentication issue may be resolved by investigating and fixing the server-side error handling for the OAuth callback.

Guidance

  • Review the server-side logs to identify the specific cause of the Internal Server Error, as the provided error list is empty.
  • Verify that the OAuth flow is correctly configured and that the callback URL is properly set up.
  • Check the Claude Code version documentation (v2.1.92) for any known issues or updates related to OAuth authentication.
  • Test the OAuth flow with a different Notion account or environment to isolate the issue.

Notes

The lack of error details in the provided JSON output limits the ability to provide a more specific solution. Additional logging or debugging may be necessary to identify the root cause.

Recommendation

Apply workaround: Investigate and fix the server-side error handling for the OAuth callback, as it is likely causing the Internal Server Error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING