Building a Remote MCP Server on Cloudflare (Without Auth)
@elizabethsiegle
About Building a Remote MCP Server on Cloudflare (Without Auth)
Chat w/ Cloudflare D1 Database Remote MCP Server
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Building a Remote MCP Server on Cloudflare (Without Auth)?
A remote MCP server that runs on Cloudflare Workers without authentication, enabling AI clients to chat with a D1 SQL database. It is designed for developers who want to give LLMs access to their database through their AI coding IDE.
How to use Building a Remote MCP Server on Cloudflare (Without Auth)?
Deploy via the “Deploy to Workers” button or run npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless. Then connect it to clients like Windsurf, Cursor, the Cloudflare AI Playground, or Claude Desktop using the deployed URL (e.g., remote-mcp-server-authless.<your-account>.workers.dev/sse).
Key features of Building a Remote MCP Server on Cloudflare (Without Auth)
- Deployable with a single click or CLI command
- Provides remote MCP access to D1 SQL databases
- No authentication required for the server
- Customizable tools defined in
src/index.tsusingthis.server.tool(...) - Compatible with Windsurf, Cursor, Claude, and more clients
Use cases of Building a Remote MCP Server on Cloudflare (Without Auth)
- Give an AI coding IDE direct access to query a database
- Connect a remote MCP server to the Cloudflare AI Playground
- Use Claude Desktop with a remote database via the mcp-remote proxy
- Prototype a serverless MCP tool without managing authentication
FAQ from Building a Remote MCP Server on Cloudflare (Without Auth)
What does this MCP server allow me to do?
It lets you chat with your D1 SQL database from any MCP‑compatible client, such as Windsurf, Cursor, the Workers AI LLM Playground, or Claude.
How do I deploy it?
Click the "Deploy to Workers" button on the README page, or run npm create cloudflare@latest with the provided template.
How can I add my own tools?
Define each tool inside the init() method of src/index.ts using this.server.tool(...).
How do I connect it to Claude Desktop?
Use the mcp-remote proxy and configure Claude Desktop’s MCP servers to point to your deployed SSE endpoint (e.g., http://localhost:8787/sse).
What clients can I use with this server?
It works with the Cloudflare AI Playground, Claude Desktop, and any client that supports MCP, including Windsurf and Cursor.
Frequently asked questions
What does this MCP server allow me to do?
It lets you chat with your D1 SQL database from any MCP‑compatible client, such as Windsurf, Cursor, the Workers AI LLM Playground, or Claude.
How do I deploy it?
Click the "Deploy to Workers" button on the README page, or run `npm create cloudflare@latest` with the provided template.
How can I add my own tools?
Define each tool inside the `init()` method of `src/index.ts` using `this.server.tool(...)`.
How do I connect it to Claude Desktop?
Use the `mcp-remote` proxy and configure Claude Desktop’s MCP servers to point to your deployed SSE endpoint (e.g., `http://localhost:8787/sse`).
What clients can I use with this server?
It works with the Cloudflare AI Playground, Claude Desktop, and any client that supports MCP, including Windsurf and Cursor.
Basic information
More Databases MCP servers
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

Redis
modelcontextprotocolModel Context Protocol Servers
Xata MCP Server
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
Elasticsearch/OpenSearch MCP Server
cr7258A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
Comments