Are you the author? Sign in to claim
build_mcp_server
A powerful Model Context Protocol (MCP) server that provides comprehensive browser automation capabilities using Playwright. This server enables AI assistants to interact with web pages, perform automated testing, web scraping, and complex browser-based workflows.
Install this MCP server directly in VSCode with one click:
pip install playwright-mcp-server
playwright install chromium
git clone https://github.com/nolecram/Build_MCP_Server.git
cd Build_MCP_Server
pip install -e .
playwright install chromium
Add to your MCP client configuration:
{
"mcpServers": {
"playwright": {
"command": "playwright-mcp-server",
"args": []
}
}
}
Add to your VSCode settings:
{
"mcp.servers": {
"playwright": {
"command": "playwright-mcp-server"
}
}
}
| Tool | Description | Parameters |
|---|---|---|
browser_navigate | Navigate to a URL | url |
browser_click | Click on an element | selector, timeout? |
browser_type | Type text into an element | selector, text, timeout? |
browser_screenshot | Take a screenshot | path?, full_page? |
browser_get_text | Extract text from an element | selector, timeout? |
browser_wait_for_selector | Wait for element to appear | selector, timeout?, state? |
browser_evaluate | Execute JavaScript | script |
browser_new_tab | Open a new tab | url? |
browser_close_tab | Close current tab | - |
browser_get_title | Get page title | - |
browser_get_url | Get current URL | - |
# Navigate to a website
browser_navigate {"url": "https://example.com"}
# Wait for content to load
browser_wait_for_selector {"selector": ".content"}
# Extract information
browser_get_text {"selector": ".price"}
# Take a screenshot
browser_screenshot {"full_page": true}
# Fill out a form
browser_type {"selector": "#email", "text": "user@example.com"}
browser_type {"selector": "#password", "text": "secretpassword"}
browser_click {"selector": "#login-button"}
# Multi-step testing
browser_navigate {"url": "https://app.example.com"}
browser_click {"selector": "#feature-button"}
browser_wait_for_selector {"selector": ".success-message"}
browser_screenshot {"path": "test-result.png"}
Run the test suite:
# Install test dependencies
pip install pytest pytest-asyncio
# Run tests
pytest tests/
# Run with coverage
pytest --cov=playwright_mcp_server tests/
Comprehensive documentation is available in the docs directory:
We welcome contributions! Please see our contributing guidelines:
This project is licensed under the MIT License - see the LICENSE file for details.
⭐ Star this repository if you find it useful!
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows