Browser & File MCP Server
Allows controlling a Firefox browser for web automation tasks like navigation, clicking, form filling, and screenshots.
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., "@Browser & File MCP ServerNavigate to https://example.com and take a screenshot"
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.
Browser & File MCP Server
Give Claude Code browser and file superpowers. This MCP server bridges Claude Code (or any MCP client) with a real browser via Playwright and adds the ability to read Excel, Word, PowerPoint, CSV, and image files — all from the command line.
The Problem
Claude Code lives in the terminal. It can write code, run scripts, and manage files — but it can't interact with the web. Need to test a UI? Check a deployment? Scrape dynamic content? You have to switch contexts manually.
Related MCP server: agentify-desktop
The Solution
This MCP server gives Claude Code a full browser automation toolkit and file reading capabilities. Claude Code can now:
Navigate to any URL and read page content
Click buttons, links, and interactive elements
Type into forms with realistic keystroke simulation
Screenshot pages or specific elements (returned as base64 PNG)
Find elements by CSS selector, text, XPath, or ARIA role
Execute JavaScript in the page context
Manage tabs — open, close, switch between them
Scroll, hover, wait — full interactive control
Read Excel workbooks — sheets, headers, data as markdown tables
Read Word documents — text, headings, tables
Read PowerPoint presentations — slide text, tables, speaker notes
Read CSV files — with configurable delimiters and encoding
Read images — JPG, PNG, GIF, BMP, WebP, TIFF returned as base64 for Claude's vision
Inspect files — metadata, size, type, modification date
What is MCP?
Model Context Protocol is an open standard created by Anthropic that lets AI models connect to external tools and data sources through a unified interface. Think of it like USB-C for AI: a standardized plug that lets any MCP client (Claude Code, Claude Desktop, etc.) talk to any MCP server (a browser automation tool, a database connector, a Slack integration, whatever).
The key pieces:
MCP Server — Exposes "tools" (functions the AI can call), "resources" (data it can read), and "prompts" (templates). That's what this project is: a server that exposes
browser_navigate,browser_click,browser_screenshot, etc.MCP Client — The AI application that discovers and calls those tools. Claude Code and Claude Desktop are both MCP clients.
Transport — How they communicate:
stdiofor local processes (what this server uses) orstreamable HTTPfor remote/networked servers.
The practical upshot: instead of every AI tool building its own proprietary plugin system, MCP gives you one protocol. Write a server once, and it works with any compliant client. This browser server works with Claude Code today and any future MCP-compatible agent.
Quick Start
1. Install
Linux / macOS:
cd Claude_Browser_MCP_Server
chmod +x install.sh
./install.shWindows:
cd Claude_Browser_MCP_Server
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt
.venv\Scripts\playwright install chromiumThis creates a virtual environment, installs dependencies, and downloads Chromium.
2. Configure Claude Code
Option A — CLI (recommended):
claude mcp add browser -s user -e BROWSER_HEADLESS=false -- /path/to/.venv/bin/python /path/to/browser_mcp.pyOn Windows:
claude mcp add browser -s user -e BROWSER_HEADLESS=false -- C:\path\to\.venv\Scripts\python.exe C:\path\to\browser_mcp.pyOption B — Manual config:
Add to your project-level .mcp.json:
{
"mcpServers": {
"browser": {
"command": "/path/to/.venv/bin/python",
"args": ["/path/to/browser_mcp.py"],
"env": {
"BROWSER_HEADLESS": "false"
}
}
}
}Or add to global ~/.claude/settings.json under the same mcpServers key.
3. Use It
In Claude Code, just ask it to do browser things:
> Go to https://myapp.dev and check if the login page loads correctly
> Navigate to the admin dashboard and take a screenshot
> Fill out the contact form on our website with test data
> Check what our competitor's pricing page looks likeClaude Code will automatically use the browser tools when appropriate.
Available Tools (25)
Browser Tools (18)
Tool | Description |
| Go to a URL, returns title and HTTP status |
| Click elements by selector, text, or XPath |
| Type into inputs with keystroke simulation |
| Instantly fill form fields (no keystrokes) |
| Select dropdown options by value or label |
| Hover to reveal tooltips/menus |
| Scroll page or specific elements |
| Wait for elements or fixed delays |
| Capture page/element as base64 PNG |
| Find elements by selector, text, or ARIA role |
| Extract text content from page/element |
| Get raw HTML content |
| Execute arbitrary JavaScript |
| Press keys and keyboard shortcuts |
| Navigate back in history |
| Navigate forward in history |
| Create, close, list, switch tabs |
| Get URL, title, viewport, element counts |
File Tools (7)
Tool | Description |
| File metadata: size, type, modified date, readability |
| List all sheet names and dimensions in an Excel workbook |
| Read Excel sheets as markdown tables (configurable rows, start position) |
| Read CSV files as markdown tables (configurable delimiter, encoding) |
| Extract text, headings, and tables from .docx files |
| Extract slide text, tables, and speaker notes from .pptx files |
| Read images as base64 PNG for Claude's vision (auto-resizes large images) |
Configuration
Environment variables (set in the env block of your MCP config):
Variable | Default | Description |
|
| Set |
|
| Browser viewport width in pixels |
|
| Browser viewport height in pixels |
|
| Default timeout in milliseconds |
|
| Browser engine: |
Example Workflows
QA Testing
"Navigate to localhost:3000, log in with test credentials,
go to the dashboard, and screenshot any error states"Competitive Research
"Go to competitor.com/pricing, extract their plan names and prices,
then check their features page"Form Automation
"Fill out the insurance quote form on our staging site with
these test values: Name=John Doe, DOB=1990-01-15, ..."Web Scraping
"Navigate to the job board, find all Python developer positions
posted this week, and extract the company names and salaries"Read a Spreadsheet
"Read the Excel file at C:\Reports\Q1_sales.xlsx and summarize the data"
"List all sheets in the workbook and show me the first 50 rows of the Summary tab"Analyze an Image
"Look at the screenshot at C:\Users\gregg\Desktop\error.png and tell me what the error is"
"Read the architecture diagram at C:\docs\system_diagram.jpg and describe the components"Process Documents
"Read the Word doc at C:\proposals\draft.docx and check for any inconsistencies"
"Extract all the slide content from the PowerPoint at C:\presentations\quarterly.pptx"How Selectors Work
The tools accept flexible selectors:
CSS:
#login-button,.nav-link,input[name='email']XPath:
//button[@type='submit']Text:
text=Sign Inor justSign In(auto-detected)Role: Use
browser_findwithrole='button'Playwright:
button >> text=Submit,.form >> input
If a CSS/XPath selector finds nothing, it automatically falls back to text matching.
Architecture
Claude Code (CLI)
|
+-- MCP Protocol (stdio)
|
v
Browser MCP Server (Python)
|
+-- FastMCP (tool registration + validation)
+-- Pydantic (input validation)
|
v
Playwright (async)
|
v
Chromium BrowserThe server maintains a persistent browser instance across tool calls using FastMCP's lifespan management. The browser launches once when the MCP connection starts and closes when it ends.
Compatibility
Python: 3.10+
MCP SDK: 1.26.0+
Playwright: 1.58.0+
openpyxl: 3.1.0+ (Excel)
python-docx: 1.1.0+ (Word)
python-pptx: 1.0.0+ (PowerPoint)
Pillow: 10.0.0+ (Images)
Platforms: Windows, macOS, Linux
Troubleshooting
"Playwright browsers not installed"
cd Claude_Browser_MCP_Server && source .venv/bin/activate # Linux/macOS
# or: .venv\Scripts\activate # Windows
playwright install chromium
sudo playwright install-deps chromium # Linux system deps"Connection refused" / Server not starting
Check the path in your MCP config points to the correct
.venv/bin/python(Linux/macOS) or.venv\Scripts\python.exe(Windows)Ensure the virtual environment was created successfully
Try running manually:
.venv/bin/python browser_mcp.pyCheck server status:
claude mcp list
Headless mode on Linux server
"env": {
"BROWSER_HEADLESS": "true"
}Timeouts on slow pages
"env": {
"BROWSER_TIMEOUT": "60000"
}Companion Project: Claude Code IDE
This MCP server is designed to work with the Claude Code IDE — a full web-based IDE that wraps Claude Code's CLI with project management, session recording, and a multi-tab interface.
When used together:
File upload with auto-ingestion — Click the upload button in the IDE, select a file (Excel, Word, PowerPoint, image, CSV), and it drops into the project's working directory. The IDE automatically prompts Claude to read it using this server's file tools. No copy-pasting, no file paths to type.
Zero configuration — Claude Code discovers this MCP server automatically via
~/.claude/settings.json. Start a session in the IDE and all 25 tools are available immediately.Session persistence — The IDE records every conversation, cleans the raw terminal output through a virtual terminal emulator, and lets you resume sessions natively. The MCP tools are available across resumed sessions without reconnecting.
Working directory awareness — Each IDE project has a configured working directory. Files uploaded through the IDE land in that directory, and file tool paths resolve relative to where Claude Code is actually running.
The IDE handles the UI, session management, and PTY process lifecycle. This server handles browser automation and file processing. They communicate through Claude Code's MCP protocol — the IDE never talks to this server directly.
License
MIT — do whatever you want with it.
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.
Latest Blog Posts
- 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/Powellga/Claude_Browser_MCP_Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server