Cloudflare Remote MCP Server
Создание удаленного MCP-сервера на Cloudflare (без аутентификации)
Этот пример позволяет развернуть удаленный MCP-сервер без сохранения состояния, не требующий аутентификации, на Cloudflare Workers. Он реализует спецификацию MCP 2026-07-28, оставаясь совместимым с устаревшими клиентами для обычных вызовов инструментов.
Начало работы:
Это развернет ваш MCP-сервер по URL-адресу вида: remote-mcp-server-authless.<your-account>.workers.dev/mcp
Кроме того, вы можете использовать приведенную ниже команду, чтобы создать удаленный MCP-сервер на вашем локальном компьютере:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authlessRelated MCP server: remote-mcp-server-authless
Настройка вашего MCP-сервера
Чтобы добавить собственные инструменты на MCP-сервер, зарегистрируйте каждый инструмент в McpServer, созданном в функции createServer() в src/index.ts, с помощью server.registerTool(...).
Подключение к Cloudflare AI Playground
Вы можете подключиться к вашему MCP-серверу из Cloudflare AI Playground, который является удаленным MCP-клиентом:
Перейдите на https://playground.ai.cloudflare.com/
Введите URL-адрес вашего развернутого MCP-сервера (
remote-mcp-server-authless.<your-account>.workers.dev/mcp)Теперь вы можете использовать свои MCP-инструменты прямо из Playground!
Подключение Claude Desktop к вашему MCP-серверу
Вы также можете подключиться к вашему удаленному MCP-серверу из локальных MCP-клиентов, используя mcp-remote proxy.
Чтобы подключиться к вашему MCP-серверу из Claude Desktop, следуйте краткому руководству Anthropic и в Claude Desktop перейдите в Settings > Developer > Edit Config.
Обновите конфигурацию:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/mcp" // or remote-mcp-server-authless.your-account.workers.dev/mcp
]
}
}
}Перезапустите Claude, и вы увидите, что инструменты стали доступны.
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: ai-model-router
Cloudflare Workers MCP server: ai-gateway
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: agent-workflow-engine
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceDeploy a remote MCP server on Cloudflare Workers without authentication, enabling custom tool definitions and SSE-based connections to clients like Cloudflare AI Playground or Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceDeploy a stateless remote MCP server on Cloudflare Workers without authentication, enabling connection from clients like Claude Desktop and Cloudflare AI Playground to use registered tools.-
- FlicenseNot gradedqualityBmaintenanceEnables deployment of a stateless remote MCP server on Cloudflare Workers without authentication, allowing users to register custom tools and connect from clients like Cloudflare AI Playground and Claude Desktop.-
- FlicenseNot gradedqualityBmaintenanceDeploys a stateless remote MCP server on Cloudflare Workers that requires no authentication, allowing clients like AI Playground and Claude Desktop to connect and use custom tools.-