playwright-mcp
Playwright MCP server
Start locally with the CLI guide
Connect Playwright MCP and inspect your first page
Playwright MCP lets an agent read a page's accessibility structure and control a browser. First consider whether your task needs persistent browser state and iterative exploration. The official documentation also presents CLI+Skills as a separate option for coding agents.
You need Node.js 18 or newer and an MCP client. The JSON below is a general configuration example. Check your client's configuration location and format, then merge the server entry into your existing setup. Do not replace the entire configuration file.
Merge the Playwright server into your MCP configuration
{ "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } } }
npx may download, execute, and cache package code. Confirm permission for browser actions and separately review sign-in, submissions, and file changes. Do not treat Playwright MCP or --isolated as a security sandbox.
After applying the configuration, check the server connection and the availability of browser_navigate and browser_snapshot in your client. For the first task, use a signed-out test page you are authorized to inspect. Ask the agent to open its URL and confirm an expected heading or link in the accessibility snapshot. Seeing the tools listed does not prove that a page was successfully read. If the connection fails, inspect the client's error output, Node.js and npx environment, and configuration format first. If clients conflict over one browser profile, do not forcibly stop an existing browser. Review the documented options of --isolated or a separate --user-data-dir for the additional client. Closing an isolated browser session discards that session's storage state. To undo the configuration, restore only the server entry added in this step. This does not delete npm caches or browser data.
@latest selects a version at execution time; this guide neither pins a package version nor verifies installation success. Recheck the official documentation before applying the configuration.
Oh My Feed editorial guide · Official sources checked
Playwright MCP 연결과 첫 페이지 확인
Playwright MCP는 에이전트가 웹 페이지의 접근성 구조를 읽고 브라우저를 조작하게 합니다. 지속적인 브라우저 상태와 반복 탐색이 필요한지 먼저 확인하세요. 공식 문서는 코딩 에이전트용 CLI+Skills도 별도 선택지로 소개합니다.
Node.js 18 이상과 MCP를 지원하는 클라이언트가 필요합니다. 아래는 일반 MCP 설정 예시입니다. 사용하는 클라이언트의 설정 위치와 형식을 확인하고 기존 서버 설정에 병합하세요. 설정 파일 전체를 덮어쓰지 마세요.
기존 MCP 설정에 Playwright 서버 항목 병합하기
{ "mcpServers": { "playwright": { "command": "npx", "args": ["@playwright/mcp@latest"] } } }
npx는 패키지를 내려받아 실행·캐시할 수 있습니다. 브라우저 조작에 대한 권한을 확인하고, 로그인·정보 제출·파일 변경은 각각 검토하세요. Playwright MCP와 --isolated를 보안 샌드박스로 간주하지 마세요.
설정 적용 후 클라이언트에서 서버 연결과 browser_navigate, browser_snapshot 도구의 제공 여부를 확인하세요. 첫 작업은 열람 권한이 있는 비로그인 테스트 페이지에서 진행하세요. 에이전트에게 해당 URL을 열고 접근성 snapshot에서 기대한 제목이나 링크를 확인하도록 요청하세요. 도구 목록에 보이는 것과 실제 페이지를 읽는 데 성공한 것은 별개입니다. 연결이 안 되면 클라이언트의 오류 출력과 Node.js·npx 실행 환경, 설정 형식을 먼저 확인하세요. 같은 프로필 사용 충돌이면 기존 브라우저를 강제로 종료하지 말고 추가 클라이언트에 --isolated 또는 별도 --user-data-dir를 사용하는 공식 방법을 검토하세요. --isolated는 브라우저를 닫을 때 해당 세션의 저장 상태를 잃습니다. 설정을 취소하려면 이번에 추가한 서버 항목만 이전 상태로 복원하세요. 이것은 npm 캐시나 브라우저 데이터의 삭제를 뜻하지 않습니다.
@latest는 실행 시점에 버전을 선택합니다. 이 안내는 패키지 버전 고정이나 설치 성공을 보증하지 않습니다. 설정 적용 전에 공식 문서를 다시 확인하세요.
Oh My Feed 편집 안내 · 공식 문서 확인일
Signed-out saves stay in this browser. Sign in to use account saves.
Loading catalog…카탈로그를 불러오는 중…
RECENT CHANGE
What changed
Loading recent changes…
Per-day rates divide a measured star count by the days it covers: the interval between two snapshots for Rising fastest, the age of the repository for New and fast. They are not fixed 24-hour changes, and stars show interest, not quality.