---
title: "Build and ship a remote MCP server | Agent MCP Directory"
description: "Build and ship a remote MCP server on Cloudflare or Vercel. Get a Streamable HTTP server live with auth on either host, with the exact packages and commands."
canonical: https://agentmcpdirectory.com/guides/build-remote-mcp-server-cloudflare-vercel
site: "Agent MCP Directory"
last_updated: 2026-11-04
section: "Guides"
---

# Build and ship a remote MCP server | Agent MCP Directory

> Build and ship a remote MCP server on Cloudflare or Vercel. Get a Streamable HTTP server live with auth on either host, with the exact packages and commands.

Source: https://agentmcpdirectory.com/guides/build-remote-mcp-server-cloudflare-vercel
Site: Agent MCP Directory
Last reviewed: 2026-11-04

# Build and ship a remote MCP server on Cloudflare or Vercel

Get a Streamable HTTP server live with auth on either host, with the exact packages and commands. Of 817 reachable endpoints in the directory, 812 speak Streamable HTTP. Verified handshakes took 1,175 ms at the median. First step: Cloudflare: scaffold the remote-mcp-authless template, run npm start, deploy with npx wrangler@latest deploy.

## Steps

1.  Cloudflare: scaffold the remote-mcp-authless template, run npm start, deploy with npx wrangler@latest deploy.
2.  Vercel: install mcp-handler@2.1.1, add app/api/mcp/route.ts, deploy.
3.  Add auth: Workers OAuth Provider on Cloudflare, withMcpAuth plus your authorization server on Vercel.
4.  Test with the MCP Inspector before connecting a client.

## What the sources say

-   Cloudflare scaffold: npm create cloudflare@latest -- remote-mcp-server-authless --template=cloudflare/ai/demos/remote-mcp-authless; local endpoint http://localhost:8788/mcp. ([developers.cloudflare.com](https://developers.cloudflare.com/agents/guides/remote-mcp-server/), read 4 November 2026)
-   createMcpHandler on Cloudflare is stateless and needs no Durable Object; persist state in KV, D1 or a Durable Object. ([developers.cloudflare.com](https://developers.cloudflare.com/agents/guides/remote-mcp-server/), read 4 November 2026)
-   Vercel: npm i mcp-handler@2.1.1 @modelcontextprotocol/server@2 zod@4 on Node.js 20 or later; export the handler as GET and POST. ([vercel.com](https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel), read 4 November 2026)
-   mcp-handler v2 dropped HTTP+SSE and Redis configuration. ([vercel.com](https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel), read 4 November 2026)
-   Test locally with npx @modelcontextprotocol/inspector@latest at http://127.0.0.1:6274 using the Streamable HTTP option. ([vercel.com](https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel), read 4 November 2026)
-   Cloudflare product servers retired /sse on 22 Oct 2026, so new servers should serve /mcp only. ([developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-10-22-cloudflare-mcp-servers-retire-sse/), dated 22 October 2026, read 4 November 2026)

## What the directory sees on the wire

| Transport | Endpoints |
| --- | --- |
| streamable-http | 812 |
| sse | 5 |

Handshakes with no credentials took 1,175 ms at the median, 2,222 ms at the 90th percentile and 4,442 ms at the slowest, across 263 verified servers.

Host details and evidence: [Cloudflare](https://agentmcpdirectory.com/hosts/cloudflare/), [Vercel](https://agentmcpdirectory.com/hosts/vercel/) and [Cloudflare vs Vercel](https://agentmcpdirectory.com/compare/cloudflare-vs-vercel/).

## Testing your own MCP server

Ora scans an MCP server URL and runs 28 of its 132 public checks on it, with check sets that differ for a docs server and a product server. It is the check this directory recommends; it reads public URLs only and publishes no repeat-scan data. [The reasons, the limits and the alternatives](https://agentmcpdirectory.com/test-your-mcp-server/).

Edition

4 November 2026

Method

[How rows are verified](https://agentmcpdirectory.com/method/)

Data

[CSV and JSON](https://agentmcpdirectory.com/data/)

Markdown

[This page as markdown](https://agentmcpdirectory.com/guides/build-remote-mcp-server-cloudflare-vercel/index.md)

## Sources

-   [Build and ship a remote MCP server on Cloudflare or Vercel](https://developers.cloudflare.com/agents/guides/remote-mcp-server/), read 4 November 2026
-   [vercel.com/docs/mcp/deploy-mcp-servers-to-vercel](https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel), read 4 November 2026
-   [developers.cloudflare.com/changelog/post/2026-10-22-cloudflare-mcp-servers-retire-sse](https://developers.cloudflare.com/changelog/post/2026-10-22-cloudflare-mcp-servers-retire-sse/), read 4 November 2026

Last reviewed 4 November 2026
