Secure and Deploy Remote MCP Servers with Auth0 and Cloudflare

Learn how to use Auth0 to secure a remote MCP server built with Cloudflare Workers to access a protected API.
Read more…

:writing_hand:t2: Brought to you by @jesstemporal and @william.johnson

Seeking more information? Questions are welcome – ask away!

Was a beautiful and detailed description. Everything worked perfectly until I tried to start the deployed version in the playground. Receive a “Connection error: SSE error: Failed to fetch”. Checked the domain, client_id .. about 5 times. Can’t find out, whether the error is on my side. Nevertheless, all curl tests are successfull.

How was it possible for Claude to validate the credentials?

Great question @sota

After you update the Claude Desktop configuration to point to the URL of your MCP server, you’ll restart Claude Desktop and get redirected to Auth0 to complete the authentication flow. Auth0 validates the credentials and returns the authentication results to the Auth0 remote MCP Server.