arthur
Arthur can automatically discover and control Brave browser instances via CDP for headless browsing automation.
Arthur's Streamable HTTP transport can be deployed behind Cloudflare Tunnels for remote browser automation.
Arthur can be run in a Debian Slim container with headless Chromium for self-contained browser automation.
Arthur can be run as a Docker container, providing a self-contained headless browser runtime for AI agents.
Arthur supports automatic discovery of Chrome/Chromium on Linux for headless browser automation.
Arthur supports automatic discovery of Chrome/Chromium on macOS for headless browser automation.
Arthur's Streamable HTTP transport can be deployed behind Nginx for remote browser automation.
Arthur uses pytest for running its test suite during local development.
Arthur provides a persistent Python REPL and pre-injected browser API for programmatic browser control.
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., "@arthurGo to news.ycombinator.com and list the top 5 stories"
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.
Arthur
Lightweight Headless Chromium Runtime & MCP Server for AI Agents
What is Arthur?
Arthur is a single-command headless browser runtime and Model Context Protocol (MCP) server for AI agents.
It connects directly to Chromium via Chrome DevTools Protocol (CDP) WebSockets without requiring browser extensions, virtual displays (X11/VNC), or heavy automation drivers. One command launches the MCP server, boots an isolated headless Chromium process, and provides your AI agent with full procedural browser control.
Agent / MCP Client
│
▼ execute_python(code)
FastMCP Server (stdio / Streamable HTTP)
│
▼
Python REPL Session (stateful memory & auto-snapshots)
│
▼
Arthur Browser API (synchronous facade)
│
▼ CDP WebSockets
Headless Chromium (--headless=new)Related MCP server: openmcp
Quickstart
You don't need to clone the repository or install dependencies manually. Arthur runs instantly via uvx.
1. Local Desktop (Claude Desktop, Cursor, Goose)
Add Arthur to your MCP settings file (e.g. claude_desktop_config.json):
{
"mcpServers": {
"arthur": {
"command": "uvx",
"args": ["arthur-runtime", "mcp"]
}
}
}When your AI agent calls the browser, Arthur automatically discovers local Chrome/Chromium, starts the headless browser, executes actions, and cleans up when finished.
2. Docker Container (Self-Contained Streamable HTTP)
Run Arthur in a lightweight, self-contained Debian Slim container with headless Chromium, tini PID 1 process management, and native multi-arch support (amd64 / arm64):
Run via Docker:
docker run -d \
--name arthur \
-p 8000:8000 \
--shm-size=1g \
--restart unless-stopped \
sh7vansh/arthur:latestOr Run via Docker Compose:
docker compose up -dConnect Your MCP Client:
{
"mcpServers": {
"arthur": {
"url": "http://localhost:8000/mcp"
}
}
}3. Remote Server / Cloud (Direct Python via uvx)
To run Arthur on a remote VM, VPS, or cloud server without Docker:
Start the Server:
uvx arthur-runtime mcp --transport streamable-http --stateless --host 0.0.0.0 --port 8000Connect Your MCP Client:
{
"mcpServers": {
"arthur": {
"url": "http://YOUR_SERVER_IP:8000/mcp"
}
}
}Stateless Streamable HTTP is resilient to network drops and works seamlessly behind Nginx, Cloudflare Tunnels, and AWS ALBs while keeping browser tabs and Python variables in server memory.
4. Interactive Terminal Shell (For Testing)
Test the browser directly from your terminal:
uvx arthur-runtime replArthur Interactive REPL (Type 'exit()' or press Ctrl+D to exit)
Global 'browser' instance is available.
arthur> browser.navigate('https://example.com')
arthur> print(browser.snapshot())
arthur> browser.click(1)How It Works
Arthur handles the entire browser lifecycle in a single self-contained process:
Automatic Discovery: Locates installed Chrome, Chromium, Brave, or Edge on Linux, macOS, or Windows.
Ephemeral Sandbox: Boots Chromium with
--headless=newand an isolated temporary user-data directory.CDP WebSockets: Communicates directly over local WebSockets for low-latency element targeting and input simulation.
Automatic Teardown: Gracefully shuts down the Chromium subprocess and purges temporary files when the session ends.
Python API Reference
When your AI agent uses the execute_python tool, the synchronous browser instance is pre-injected:
# Navigation & Page State
browser.navigate("https://example.com", timeout=30.0)
print(browser.snapshot()) # Semantic Ref-ID outline ([#1], [#2])
print(browser.url, browser.title)
# Interactions (Ref-ID, String Ref, or CSS Selector)
browser.click(1) # Click Ref-ID #1
browser.click("button.submit-btn") # CSS selector fallback
browser.type(2, "search query", press_enter=True)
browser.select(3, "Option Value")
browser.hover(1)
browser.scroll(x=0, y=500)
# Waiting & Synchronization
browser.wait_for(1, state="visible", timeout=10.0)
browser.wait_for_url(r"^https://example\.com/dashboard", timeout=15.0)
# Page Evaluation & Inspection
result = browser.eval_js("window.innerWidth")
png_bytes = browser.screenshot()
text = browser.get_text(1)
attr = browser.get_attribute(1, "data-custom")
# Fast Native Media Control (Zero-DOM)
state = browser.media.status() # HTML5 media state & player metadata
browser.media.toggle() # Toggle play/pause
browser.media.play() # Resume playback
browser.media.pause() # Pause playback
browser.media.seek(15.0) # Seek relative seconds (+15s / -10s)
browser.media.set_volume(0.8) # Set volume level (0.0 to 1.0)
# Multi-Tab Control & Help
new_tab = browser.new_tab("https://google.com")
all_tabs = browser.tabs
active = browser.active_tab
browser.close_tab(2)
print(browser.help()) # Built-in formatted SDK quick referenceKey Features
Semantic Ref-ID Snapshots: Generates compact, token-efficient accessible DOM trees with assigned numbers (
[#1],[#2]), avoiding brittle XPath or long CSS selectors.Fast Media Controller (
browser.media): Zero-DOM media playback manipulation that penetrates open Shadow DOM roots without expensive snapshot recalculation.Persistent Python REPL: State, variables, imports, and custom functions persist across agent tool calls.
Single-Turn Self-Healing: Automatically attaches a diagnostic DOM snapshot (
[diagnostic_auto_snapshot]) and fuzzy suggestions whenever an error occurs, allowing agents to self-heal in a single turn.MCP Resources & Prompts: Built-in MCP resources (
arthur://docs/api,arthur://docs/workflow) and structured prompts (browser_automation,media_control) for intelligent agent onboarding.Token Budgeting & Defanging: Truncates large outputs to prevent context window explosion and sanitizes tracking image beacons (
[IMAGE_BLOCKED]).
Local Development
If you want to contribute or build from source:
# Clone and install dependencies
git clone https://github.com/sh7vansh/arthur.git
cd arthur
uv sync --all-extras
# Run tests
uv run pytest
# Run type checker
uv run mypy srcLicense
This project is licensed under the MIT License — see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceLets coding agents control and inspect a live Chrome browser via the Model-Context-Protocol, providing advanced browser debugging, performance insights, and reliable automation.17Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.1MIT
- AlicenseBqualityAmaintenanceEnables browser automation through the Model Context Protocol, allowing AI agents to control Chrome, Firefox, or Edge for tasks like navigation, clicking, typing, and screenshots.3948MIT
- FlicenseAqualityDmaintenanceEnables AI-powered browser automation controlled through natural language, integrating Playwright with the Model Context Protocol to perform web interactions like navigation, form filling, and screenshots.10
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Live browser debugging for AI assistants — DOM, console, network via MCP.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sh7vansh/arthur'
If you have feedback or need assistance with the MCP directory API, please join our Discord server