Playwright MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Playwright MCP Servergo to example.com and take a screenshot of the homepage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Practice - Collection of MCP Servers
This repository contains a collection of MCP (Model Context Protocol) servers, each providing different functionality for AI assistants.
š¦ Available Servers
š Playwright Browser (servers/playwright-browser)
Browser automation server using Playwright. Navigate websites, extract content, take screenshots, and interact with web pages.
Features:
Navigate to URLs
Extract page content (text or HTML)
Get page titles
Take screenshots
Click elements, type text, wait for selectors
See servers/playwright-browser/README.md for detailed documentation.
š Quick Start
Installation
Install all dependencies:
npm run install:allInstall Playwright browsers (for playwright-browser server):
npm run setup:playwrightOr install dependencies for a specific server:
cd servers/playwright-browser
npm install
npx playwright install chromiumāļø Configuration
For Cursor IDE
Cursor uses an MCP configuration file located at:
Windows:
%USERPROFILE%\.cursor\mcp.json(e.g.,C:\Users\YourName\.cursor\mcp.json)macOS/Linux:
~/.cursor/mcp.json
Quick Setup (Windows)
Automated setup: Run the provided PowerShell script:
powershell -ExecutionPolicy Bypass -File setup-cursor-config.ps1Manual setup: Create or edit the file at
C:\Users\YourName\.cursor\mcp.jsonand add:{ "mcpServers": { "playwright-browser": { "command": "node", "args": [ "C:\\path\\to\\mcp-practice\\servers\\playwright-browser\\src\\server.js" ], "cwd": "C:\\path\\to\\mcp-practice\\servers\\playwright-browser" } } }Important: Replace
C:\\path\\to\\mcp-practicewith the actual path to your project directory.
Quick Setup (macOS/Linux)
Create the directory if it doesn't exist:
mkdir -p ~/.cursorCreate or edit
~/.cursor/mcp.json:{ "mcpServers": { "playwright-browser": { "command": "node", "args": [ "/full/path/to/mcp-practice/servers/playwright-browser/src/server.js" ], "cwd": "/full/path/to/mcp-practice/servers/playwright-browser" } } }
After Configuration
Restart Cursor completely for the changes to take effect
The MCP server will automatically start when you use browser-related prompts
Verify it's working by trying: "Navigate to https://example.com and summarize the page"
For Claude Desktop (Alternative)
If you're using Claude Desktop instead:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
š Adding a New MCP Server
To add a new MCP server:
Create a new directory under
servers/:mkdir servers/your-server-name mkdir servers/your-server-name/srcCreate a
package.jsonin the new server directory with:Server-specific dependencies
A
startscript pointing to your server entry point
Create your server implementation in
servers/your-server-name/src/server.jsUpdate
setup-cursor-config.ps1to include your new server in the configurationAdd documentation in
servers/your-server-name/README.md
šļø Project Structure
mcp-practice/
āāā servers/ # All MCP servers
ā āāā playwright-browser/ # Playwright browser automation server
ā ā āāā src/
ā ā ā āāā server.js # Server implementation
ā ā āāā package.json # Server dependencies
ā ā āāā README.md # Server documentation
ā āāā [future servers...] # Add more servers here
āāā package.json # Root workspace configuration
āāā setup-cursor-config.ps1 # Cursor configuration setup script
āāā cursor-mcp-config.json # Example Cursor config
āāā mcp-config.json # Example MCP config
āāā README.md # This fileš Usage Examples
Playwright Browser Server
Once configured, you can use prompts like:
"Navigate to https://example.com and summarize the page."
"Go to https://example.com and get the page title."
"Take a screenshot of https://example.com"
"Navigate to https://example.com, click the button with selector '#submit', and tell me what happened."
š§ Development
Running a Server Directly
To test a server directly:
cd servers/playwright-browser
npm startOr:
node servers/playwright-browser/src/server.jsNote: Servers communicate via stdio, so they're designed to be used by MCP clients rather than run standalone.
š License
MIT
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.
Latest Blog Posts
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/Sumitbhoyar/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server