Remote MCP Server (Authless)
Создание удаленного MCP-сервера на Cloudflare (без аутентификации)
Этот пример позволяет развернуть удаленный MCP-сервер, который не требует аутентификации, на Cloudflare Workers.
Начало работы:
Это развернет ваш 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-сервер, определите каждый инструмент внутри метода init() в файле src/index.ts, используя this.server.tool(...).
Подключение к 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.
Чтобы подключиться к вашему 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
Related MCP Connectors
9 remote MCP servers on Cloudflare Workers for AI agents. Free tier + Pro API keys.
Cloudflare Workers MCP server: ai-gateway
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: ai-model-router
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling integration with AI Playground and Claude Desktop.-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling custom tools and connectivity to AI Playground and Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling connection to AI Playground and local MCP clients like Claude Desktop.-
- FlicenseNot gradedqualityCmaintenanceDeploy a remote MCP server on Cloudflare Workers without authentication, enabling connection to AI Playground and Claude Desktop.-