WebControl
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., "@WebControlopen google.com and search for weather"
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.
WebControl
Headless browser automation service for LLM agents. Navigate pages, read structured content, click elements, fill forms — all through a REST API or MCP (Model Context Protocol) tools.
How It Works
┌──────────────────────────┐
│ LLM Agent │
│ (Claude, custom, etc.) │
└────────────┬─────────────┘
│ 1. navigate("https://example.com")
│ 2. receives PageContent with element refs (e1, e2, e3...)
│ 3. fill("e3", "user@example.com")
│ 4. click("e7")
│ 5. receives updated PageContent
▼
┌──────────────────────────┐
│ WebControl │
│ REST API + MCP Server │
│ (single process/port) │
└────────────┬─────────────┘
│
▼
┌──────────────────────────┐
│ Playwright (headless) │
│ Chromium browser │
└──────────────────────────┘The LLM reads a compact structured representation of the page (interactive elements, forms, links — not raw HTML), decides what to do, and sends an action. WebControl executes it and returns the new page state.
Quick Start
Local
# Install
python3 -m venv .venv && source .venv/bin/activate
pip install ".[dev]"
playwright install chromium
# Run
webcontrol serveServer starts at http://localhost:8080. Try the health check:
curl http://localhost:8080/healthDocker
docker compose up --buildUsage
REST API
# Create a session
curl -X POST http://localhost:8080/api/v1/sessions \
-H "Content-Type: application/json" \
-d '{"name": "my-task"}'
# Returns: {"id": "abc-123", "name": "my-task", ...}
# Navigate
curl -X POST http://localhost:8080/api/v1/sessions/abc-123/navigate \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
# Returns: {"success": true, "page_content": {"elements": [...], "forms": [...], ...}}
# Fill a form field (using ref from page_content)
curl -X POST http://localhost:8080/api/v1/sessions/abc-123/fill \
-H "Content-Type: application/json" \
-d '{"ref": "e3", "value": "hello@example.com"}'
# Click an element
curl -X POST http://localhost:8080/api/v1/sessions/abc-123/click \
-H "Content-Type: application/json" \
-d '{"ref": "e7"}'
# Close session when done
curl -X DELETE http://localhost:8080/api/v1/sessions/abc-123MCP (Model Context Protocol)
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"webcontrol": {
"command": "webcontrol",
"args": ["mcp-stdio"]
}
}
}For Cursor, add to .cursor/mcp.json in your project. See mcp-configs/ for more examples.
Once configured, the LLM gets these tools: create_session, navigate, get_page_content, click, fill, select, submit, screenshot, execute_js, close_session.
Configuration
All settings via environment variables prefixed WC_:
Variable | Default | Description |
|
| Server port |
|
| Bind address |
|
| Run browser headless |
|
| Browser engine ( |
|
| Maximum concurrent browser sessions |
|
| Session idle timeout (30 min) |
|
| Default viewport width |
|
| Default viewport height |
|
| Navigation timeout |
|
| Action timeout (click, fill, etc.) |
| (empty) | API key for REST auth; empty = no auth |
| (empty) | HTTP proxy (e.g., |
| (empty) | Proxy auth username |
| (empty) | Proxy auth password |
|
| Retry attempts for navigation |
|
| Retry attempts for actions |
|
| Delay between retries |
|
| Log level |
|
| Output structured JSON logs |
Authentication
Set WC_API_KEY to enable API key authentication on REST endpoints:
export WC_API_KEY="your-secret-key"
webcontrol serveClients must include the key in requests:
curl -H "x-api-key: your-secret-key" http://localhost:8080/api/v1/sessionsThe /health endpoint is always unauthenticated.
MCP stdio mode does not use HTTP auth (it runs as a local subprocess).
Development
# Run tests
pytest tests/ -v
# Run a single test
pytest tests/test_api/test_routes.py::test_navigate_and_get_content -v
# Lint
ruff check src/ tests/
# Format
ruff format src/ tests/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/matanSht/WebControl'
If you have feedback or need assistance with the MCP directory API, please join our Discord server