Can't use the MCP in Claude Code
hi
⎿ Error:
{"error":{"name":"Error","message":"Unauthorized.
Please provide a valid access token to the MCP server
via the --access-token flag or
SUPABASE_ACCESSTOKEN."}}
the token is legit the good one since I copy pasted it from accounts/tokens (sbf)
works on Cursor though, but not In Claude Code
8 Replies
are you using the .mcp.json file for claude code?
yep

btw, but still got the error message


it's connected but still giving unauthorised errors?
yeah haha
okay i did a brief search and a few other people have come across this issue, only solution i can find is this one https://www.reddit.com/r/ClaudeCode/comments/1mi59fo/comment/nfor2ik/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button (resinstalling it)
Reddit
Diligent-Bad6841's comment on "Supabase MCP Server - Persistent "Un...
Explore this conversation and more from the ClaudeCode community
If possible, maybe try it? See if that works. If you are out of date in anyway also with your version of claude code i would also say look to see fi that could be an issue