# Secure and Deploy Remote MCP Servers with Auth0 and Cloudflare

**URL:** <https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336>\
**Category:** Blog Discussions\
**Tags:** cloudflare, mcp, auth0\
**Created:** [April 10, 2025, 10:43pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336 "2025-04-10T22:43:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertino.calcaterra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robertino.calcaterra/32/66825_2.png) [@robertino.calcaterra](https://community.auth0.com/u/robertino.calcaterra)\
**Post date:** [April 10, 2025, 10:43pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/1 "2025-04-10T22:43:55Z")

</div>

Learn how to use Auth0 to secure a remote MCP server built with Cloudflare Workers to access a protected API.  
[Read more…](https://auth0.com/blog/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/)

✍🏻 Brought to you by @jesstemporal and @william.johnson

 ![Secure and Deploy Remote MCP Servers with Auth0 and Cloudflare](https://global.discourse-cdn.com/auth0/original/3X/2/1/213dd10b793e3fbec754df31e382ea3dc7a6868c.png)

---

<div class="post-metadata">

**Author:** ![robertino.calcaterra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robertino.calcaterra/32/66825_2.png) [@robertino.calcaterra](https://community.auth0.com/u/robertino.calcaterra)\
**Post date:** [April 11, 2025, 1:05pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/2 "2025-04-11T13:05:24Z")

</div>

Seeking more information? Questions are welcome – ask away!

---

<div class="post-metadata">

**Author:** ![megerpascal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/megerpascal/32/72481_2.png) [@megerpascal](https://community.auth0.com/u/megerpascal)\
**Post date:** [April 16, 2025, 10:13pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/3 "2025-04-16T22:13:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sota](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sota/32/74382_2.png) [@sota](https://community.auth0.com/u/sota)\
**Post date:** [April 19, 2025, 1:40pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/4 "2025-04-19T13:40:40Z")

</div>

How was it possible for Claude to validate the credentials?

---

<div class="post-metadata">

**Author:** ![william.johnson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/william.johnson/32/32511_2.png) [@william.johnson](https://community.auth0.com/u/william.johnson)\
**Post date:** [April 23, 2025, 2:31pm UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/5 "2025-04-23T14:31:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![j.apple.muncy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/j.apple.muncy/32/76014_2.png) [@j.apple.muncy](https://community.auth0.com/u/j.apple.muncy)\
**Post date:** [August 22, 2025, 2:00am UTC](https://community.auth0.com/t/secure-and-deploy-remote-mcp-servers-with-auth0-and-cloudflare/185336/6 "2025-08-22T02:00:12Z")

</div>

i find these tutorials with run npn xxx useless when it comes to learning how to how to set up an MCP server with OAuth . **All the pesky details are deeply buried**
