Remote MCP Server for Website Analysis
Создание удаленного сервера MCP на Cloudflare (без аутентификации)
Этот пример позволяет развернуть удаленный сервер MCP, не требующий аутентификации на Cloudflare Workers. Сервер включает инструменты для анализа веб-сайта и извлечения контента с использованием возможностей рендеринга браузера и искусственного интеллекта Cloudflare.
Начать:
Это развернет ваш сервер MCP по URL-адресу вида: remote-mcp-server-authless.<your-account>.workers.dev/sse
Кроме того, вы можете использовать командную строку ниже, чтобы создать удаленный сервер MCP на локальном компьютере:
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authlessRelated MCP server: Cloudflare Playwright MCP
Доступные инструменты
Инструменты анализа веб-сайта
анализировать_веб-сайт
Извлекает и анализирует веб-сайт с помощью браузерного рендеринга Cloudflare
Использует Cloudflare AI для предоставления сводки содержимого веб-сайта
Ввод:
url(строка) — URL-адрес веб-сайта для анализа.Пример:
[tool] analyze_website(url: "https://example.com")
ask_q_about_website
Просматривает веб-сайт и отвечает на конкретные вопросы о его содержании
Использует искусственный интеллект Cloudflare для понимания и ответа на вопросы о веб-сайте
Входные данные:
url(строка) — URL-адрес веб-сайта для анализа.question(строка) - Ваш вопрос о содержании сайта
Пример:
[tool] ask_q_about_website(url: "https://example.com", question: "What services does this company offer?")
Настройка вашего 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/sse)Теперь вы можете использовать инструменты MCP прямо с игровой площадки!
Подключите Claude Desktop к вашему серверу MCP
Вы также можете подключиться к удаленному серверу MCP с локальных клиентов MCP, используя прокси-сервер mcp-remote .
Чтобы подключиться к серверу MCP из Claude Desktop, следуйте краткому руководству Anthropic и в Claude Desktop перейдите в Настройки > Разработчик > Изменить конфигурацию.
Обновите с помощью этой конфигурации:
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or remote-mcp-server-authless.your-account.workers.dev/sse
]
}
}
}Перезапустите Claude, и вы увидите, что инструменты стали доступны.
Требования
Для использования инструментов анализа веб-сайта вам необходимо:
Cloudflare Workers с включенной привязкой к браузеру
Настроена привязка Cloudflare AI
Соответствующие разрешения для обеих привязок
Убедитесь, что ваш wrangler.jsonc включает:
{
"browser": {
"binding": "BROWSER"
},
"ai": {
"binding": "AI"
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Cloudflare Workers MCP server: ai-agent-scratchpad
- fastCRWOAuthio.github.us
Scrape, crawl, map & search the web. Open-source, self-hostable Rust crawler & search for AI agents.
Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that leverages Cloudflare Browser Rendering to extract and process web content for use as context in LLMs, offering tools for fetching pages, searching documentation, extracting structured content, and summarizing content.411MIT
- AlicenseBqualityFmaintenanceA server that leverages Playwright for automated browser testing and integrates with Cloudflare Workers, enabling AI assistants to control web browsers for navigation, interaction, and screenshots.2226,524,222 npm258Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA Cloudflare Workers-based server that extracts clean, formatted text from web pages using WebforAI and makes it accessible to AI models through the Model Context Protocol.3MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to perform web automation tasks such as navigation, typing, clicking, and taking screenshots using Playwright on Cloudflare Workers. This server allows LLMs to interact with and control a browser across platforms like Claude Desktop and GitHub Copilot.-