In the video, you followed one MCP tool call there and back: the model asked, you approved, a separate server opened the page with its own access, and the page’s text came back into the context. Now you’ll connect that kind of server to your own agent.
In this lesson, you’ll add a browser server that’s private to you and limited to the festival project. You’ll check its package before your agent ever starts it, read the tools it offers, and decide which of them must ask you first. Then your agent will make a small change and check the search page the way a visitor sees it. Start with the package, because the agent will run it on your machine.
Check the Package Before Your Agent Starts It
A local MCP server is a program that your agent starts every session, so adding one is like installing a dependency. The browser server used here is Playwright’s, published on npm as @playwright/mcp.
Before you add it, give it the same check you’d give any new package: is it the package you meant, who publishes it, is it current, and what do its install scripts run?
Ask the registry without installing anything:
$ npm view @playwright/mcp version description repository.url \
maintainers.name "time[0.0.86]" scripts.preinstall \
scripts.install scripts.postinstall
version = '0.0.86'
description = 'Playwright Tools for MCP'
repository.url = 'git+https://github.com/microsoft/playwright-mcp.git'
maintainers[0].name = 'pavelfeldman'
maintainers[1].name = 'yurys'
maintainers[2].name = 'dgozman-ms'
maintainers[3].name = 'microsoft-oss-releases'
maintainers[4].name = 'microsoft1es'
time[0.0.86] = '2026-11-18T18:54:16.868Z'
$ curl https://api.npmjs.org/downloads/point/last-week/@playwright/mcp
{"downloads":9303866,"start":"2026-11-25","end":"2026-12-01","package":"@playwright/mcp"}
This output is from December 2, 2026. The repository belongs to Microsoft’s Playwright project. The release is two weeks old. The package has about nine million downloads a week, and it has no install scripts.
Note the version you checked. Most setup guides use @playwright/mcp@latest, which fetches whatever is newest each time a session starts. That’s a version you haven’t checked. You’ll pin the checked version instead and update it on purpose.
Add the Server for This Project Only
Where you configure a server determines whether it starts in all your projects, for everyone who clones this repository, or only for you in this folder. The festival has a page to check, but your other projects may not, and a teammate should decide for themselves. So you’ll add this server to the narrowest scope, which is this project, private to you.
The command that starts the server is the same for Claude Code and Codex: npx -y @playwright/[email protected] --isolated. The -y flag lets npx fetch the package without stopping to ask, since no one is at that prompt when the agent starts the server.