cloudflare-playwright-mcp
Cloudflare Playwright MCP 예제
개요
이 프로젝트는 Cloudflare Workers에서 Playwright를 Cloudflare Playwright MCP와 함께 사용하여 Model Control Protocol(MCP) 서버로 활용하는 방법을 보여줍니다.
이를 통해 AI 어시스턴트가 일련의 도구를 사용해 브라우저를 제어할 수 있으며, 탐색, 입력, 클릭, 스크린샷 촬영과 같은 웹 자동화 작업을 수행할 수 있습니다.
이 서버는 Cloudflare AI Playground, Claude Desktop, VS Code의 GitHub Copilot을 포함한 다양한 AI 플랫폼에서 사용할 수 있습니다.
배포
프로젝트를 설정하고 배포하려면 다음 단계를 따르세요:
의존성 설치:
npm ciCloudflare Workers에 배포:
npx wrangler deployCloudflare AI Playground에서 사용

Cloudflare playground AI는 Workers AI에서 제공하는 LLM 모델을 사용해 MCP 서버를 테스트할 수 있는 좋은 방법입니다.
모델이
llama-3.3-70b-instruct-fp8-fast로 설정되어 있는지 확인MCP Servers에서 URL을
https://[my-mcp-url].workers.dev/sse로 설정Connect 클릭
상태가 Connected로 업데이트되고 14개의 사용 가능한 도구가 표시되어야 합니다
이제 모델과 상호작용을 시작할 수 있으며, 모델은 요청된 작업을 수행하기 위해 필요한 도구를 실행합니다.
[!TIP] 가장 좋은 결과를 얻으려면 "새 할 일 항목 만들기", "cloudflare 사이트로 이동", "스크린샷 촬영"과 같이 단일 동작으로 구성된 간단한 지침을 제공하세요.
대화 예시:
역할 | 메시지 |
사용자 | demo.playwright.dev/todomvc로 이동 |
어시스턴트 | browser_navigate 도구 실행 페이지가 https://demo.playwright.dev/todomvc/로 이동되었습니다. 페이지 제목은 "React • TodoMVC"입니다. 페이지 스냅샷에는 제목, 텍스트 상자, 여러 링크를 포함한 페이지 콘텐츠가 표시됩니다. |
사용자 | 할 일 항목을 몇 개 만들어 줘 |
어시스턴트 | browser_type 도구 실행 새 할 일 항목 "Buy groceries"가 생성되었습니다. 페이지 스냅샷에는 새 할 일 항목을 포함한 업데이트된 페이지 콘텐츠가 표시됩니다. |
사용자 | 좋아. 이제 앵무새 스타일로 할 일을 만들어 줘 |
어시스턴트 | browser_type 도구 실행 앵무새 스타일로 새 할 일 항목 "Polly wants a cracker"가 생성되었습니다. 페이지 스냅샷에는 새 할 일 항목을 포함한 업데이트된 페이지 콘텐츠가 표시됩니다. |
사용자 | 그리고 요다 스타일로 또 다른 할 일을 만들어 줘 |
어시스턴트 | browser_type 도구 실행 요다 스타일로 새 할 일 항목 "A walk, I must take"가 생성되었습니다. 페이지 스냅샷에는 새 할 일 항목을 포함한 업데이트된 페이지 콘텐츠가 표시됩니다. |
사용자 | 스크린샷을 찍어 줘 |
어시스턴트 | browser_take_screenshot 도구 실행 |
사용자 | 이제 앵무새 할 일 항목의 체크박스를 클릭해 줘 |
어시스턴트 | browser_clickt 도구 실행 앵무새 할 일 항목 "Polly wants a cracker"의 체크박스가 클릭되었습니다. 페이지 스냅샷에는 체크박스가 선택된 상태로 업데이트된 페이지 콘텐츠가 표시됩니다. |
사용자 | 스크린샷을 찍어 줘 |
어시스턴트 | browser_take_screenshot 도구 실행 |
사용자 | 완료된 할 일 항목을 제거해 줘 |
어시스턴트 | browser_clickt 도구 실행 "Clear completed" 버튼이 클릭되었습니다. 페이지 스냅샷에는 완료된 할 일 항목 "Polly wants a cracker"이 제거된 업데이트된 페이지 콘텐츠가 표시됩니다. |
사용자 | 마지막 스크린샷을 찍어 줘 |
어시스턴트 | browser_take_screenshot 도구 실행 |
Claude Desktop에서 사용
현재 Claude Desktop은 로컬 MCP 서버만 지원합니다. Claude Desktop에서 playground-mcp를 사용하려면 원격 MCP 서버를 프록시하여 로컬에 노출하는 도구인 mcp-remote를 사용합니다. 다음 구성을 사용하세요:
Claude Desktop의 구성 파일을 엽니다.
mcpServers섹션 아래에 다음 JSON 스니펫을 추가합니다:
{
"mcpServers": {
"cloudflare-playwright-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://[my-mcp-url].workers.dev/sse"
]
}
}
}구성 파일을 저장하고 변경 사항을 적용하려면 Claude Desktop을 다시 시작합니다.
이 설정을 통해 Claude Desktop이 Cloudflare Playwright MCP 서버와 통신할 수 있습니다.
다음은 playwright-mcp 도구와 Browser Rendering을 활용하여 TODO 데모 앱을 열고, "buy lemons"를 추가하고, 스크린샷을 찍는 세션의 예시입니다:

VSCode에서 구성
VS Code CLI를 사용하여 Playwright MCP 서버를 설치할 수 있습니다:
# For VS Code
code --add-mcp '{"name":"cloudflare-playwright","type":"sse","url":"https://[my-mcp-url].workers.dev/sse"}'# For VS Code Insiders
code-insiders --add-mcp '{"name":"cloudflare-playwright","type":"sse","url":"https://[my-mcp-url].workers.dev/sse"}'설치 후 Playwright MCP 서버는 VS Code의 GitHub Copilot 에이전트와 함께 사용할 수 있습니다.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through a set of tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser for web automation tasks like navigation, typing, clicking, and taking screenshots.
Related MCP Connectors
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/juilanharkless/playwright-mcp-agent37'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
현재 페이지의 스크린샷이 촬영되었습니다. 스크린샷은 PNG 형식이며 크기는 56KB입니다.
현재 페이지의 스크린샷이 촬영되었습니다. 스크린샷은 PNG 형식이며 크기는 58KB입니다.
현재 페이지의 최종 스크린샷이 촬영되었습니다. 스크린샷은 PNG 형식이며 크기는 50KB입니다.