Install mcp/playwright in Amp
What you need first
- Amp, installed.
- Docker, which
gives the
dockercommand the server starts with.
Steps
- Open
~/.codex/config.toml, or create it. The Codex CLI, its IDE extension and the ChatGPT desktop app share this file. - Add this table at the end of the file.
{
"amp.mcpServers": {
"playwright-mcp-gktbb5": {
"command": "docker",
"args": ["run", "-i", "--rm", "docker.io/mcp/playwright"]
}
}
} - Save the file and restart Amp.
Check it worked
Ask Amp: List the tools of playwright-mcp-gktbb5.
If it does not start
- Cannot connect to the Docker daemon
- Docker is not running. Start it, then restart Amp.
- Nothing changes after a restart
- The file is not valid JSON any more. Look for a missing comma where the block was added.