Building a Remote MCP Server

by SKWK

167 downloads
Not rated
GitHub

About

Building a Remote MCP Server is an example project that shows how to deploy a remote MCP (Model Context Protocol) server on Cloudflare Workers, intended for developers who want to host MCP tools remotely.

Details

Author
SKWK
Downloads
167
Categories
Other

- Deploys an MCP server on Cloudflare Workers.
- Uses Server-Sent Events (SSE) for transport.
- One‑click deployment via Cloudflare button.
- Works as a remote endpoint for MCP clients.
- Example integration with Cloudflare AI Playground.

Deploy the server by clicking the "Deploy to Workers" button in the README, which creates an instance at a URL like stocks-mcp.<your-account>.workers.dev/sse. Then connect a remote MCP client (e.g., Cloudflare AI Playground) by entering that SSE endpoint.

Building a Remote MCP Server

This example allows you to deploy a remote MCP server on Cloudflare Workers.

Get started

Deploy to Workers

This will deploy your MCP server to a URL like: stocks-mcp.<your-account>.workers.dev/sse

Connect to Cloudflare AI Playground

You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:

1. Go to https://playground.ai.cloudflare.com/
2. Enter your deployed MCP server URL (stocks-mcp.<your-account>.workers.dev/sse)
3. You can now use your MCP tools directly from the playground!

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.