About Building a Remote MCP Server
An example for deploying a remote stock MCP server on Cloudflare Workers. It is for developers who want to expose stock lookup tools to MCP clients, including Cloudflare AI Playground.
Key features
- 01Deploys to Cloudflare Workers
- 02Provides a remote MCP endpoint
- 03Connects with Cloudflare AI Playground
Use cases
- 01Host a stock lookup MCP server
- 02Call stock tools from Cloudflare AI Playground
MCP support
The server exposes stock lookup tools through a remote MCP endpoint that clients such as Cloudflare AI Playground can connect to.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEBuilding a Remote MCP Server
This example allows you to deploy a remote MCP server on Cloudflare Workers.
Get started
This will deploy your MCP server to a URL like: stocks-mcp.<your-account>.workers.dev/mcp
Connect to Cloudflare AI Playground
You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:
- Go to https://playground.ai.cloudflare.com/
- Enter your deployed MCP server URL (
stocks-mcp.<your-account>.workers.dev/mcp) - You can now use your MCP tools directly from the playground!
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.