BrowserMCP Enhanced logo

BrowserMCP Enhanced

Community
david-strejc

Enhanced MCP server for browser automation with improved element selection, tab management, and token optimization

Publisherdavid-strejc
Repositorylaskobot
LanguageJavaScript
Forks
8
Stars
39
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    BrowserMCP Enhanced exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    39 stars and 8 forks from the linked repository.

LaskoBOT — Protocol v2, Multi‑Instance, Cross‑Browser

LaskoBOT v1.30.7

Version License MCP

Modern MCP server + browser extensions for reliable, multi‑instance automation over a single WebSocket daemon.

✨ Features

✨ Highlights

  • Single WS daemon (8765), many sessions (Claude instances)
  • Per‑session tab routing and ownership (no cross‑talk)
  • Unified tools across Chrome and Firefox
  • Auto‑reconnect (Firefox adds alarms + online hooks)

🚀 Quick Start

Prerequisites

  • Node.js 20+
  • Chrome or Firefox
  • Claude Code
  • Also works with WSL2 and Windows Chrome

Installation

Step 1 - Deploy Script

bash
git clone https://github.com/david-strejc/browsermcp-enhanced.git
cd browsermcp-enhanced
./scripts/deploy

Step 2 - install systemd services (HTTP + WS daemon):

  • Option A: User services (recommended for nvm users, no sudo required):

    bash
    ./scripts/systemd-user-install.sh
  • Option B: System services (requires sudo):

    bash
    sudo ./scripts/systemd-install.sh --user "$USER" \
      --install-dir "/home/$USER/.local/lib/browsermcp-enhanced" \
      --http-port 3000 --ws-port 8765

Step 3 - Load extension (one browser at a time):

  • Chrome: chrome://extensions → Developer mode → Load unpacked → chrome-extension/
  • Firefox: about:debugging#/runtime/this-firefox → Load Temporary Add‑on → firefox-extension/manifest.json

Step 4 - Configure MCP

json
  {
    "mcpServers": {
      "browsermcp": {
        "type": "http",
        "url": "http://127.0.0.1:3000/mcp"
      }
    }
  }

For detailed architecture and troubleshooting information, see ADVANCE_INFO.md

🐛 Known Issues

  • WebSocket reconnection may require Chrome restart
  • Some sites with strict CSP may require unsafe mode
  • Safari and Firefox support coming in v2.0.0
  • Behind proxy: If you're behind a proxy, set NO_PROXY=localhost,127.0.0.1 to allow local connections

📖 Usage

Basic Navigation

javascript
// Navigate to a URL
await browser_navigate({ url: "https://example.com" })

// Snapshot
await snapshot.accessibility({ mode: 'scaffold' })

// Click an element
await browser_click({ ref: "button-1", element: "Submit button" })

JavaScript Execution

javascript
// Plain DOM
await js.execute({ code: "return document.title" })

// Safe operation (no code)
await js.execute({ method: 'query', args: ['h3', { attrs: ['textContent'], limit: 10 }] })

// Unsafe (enable in extension options first)
await js.execute({ code: "(function(){ return location.href })()", unsafe: true })

Form Automation

javascript
// Multi-step form filling
await browser_multitool({
  intent: "form_fill",
  snapshot: snapshotData,
  fields: {
    "username": "john.doe",
    "email": "john@example.com",
    "message": "Hello world"
  }
})

Debugging & Logs

Daemon: /tmp/browsermcp-daemon.log, /tmp/browsermcp-events.log Chrome: chrome://extensions → Inspect (background) Firefox: about:debugging → Inspect (background)

🔧 Advanced Configuration

Environment Variables

bash
# Allow all origins (development)
BROWSER_MCP_ALLOWED_ORIGINS="*"

# Specific origins (production)
BROWSER_MCP_ALLOWED_ORIGINS="https://example.com,https://app.example.com"

# Custom WebSocket port
BROWSER_MCP_PORT=8765

Extension Options (Firefox)

  • Unsafe mode toggle (required for unsafe: true)

📚 API Reference

Core Tools

  • browser_navigate, browser_go_back, browser_go_forward
  • dom.click, dom.type, dom.hover, dom.select
  • snapshot.accessibility
  • tabs.list, tabs.select, tabs.new, tabs.close
  • console.get, screenshot.capture, js.execute

🧪 Testing

bash
# Run tests
npm test

# Quick test
npm run test:quick

# With coverage
npm run test:coverage

🛠️ Development

bash
# Watch mode
npm run watch

# Type checking
npm run typecheck

# Inspector
npm run inspector

📝 Changelog

See CHANGELOG.md for detailed version history.

v1.0.0 (Latest)

  • 🚀 First production-ready release
  • ✅ RPC-based safe mode execution
  • ✅ Sandboxed iframe isolation
  • ✅ Comprehensive testing suite
  • ✅ Full documentation

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Model Context Protocol team for the MCP specification
  • Playwright for browser automation inspiration
  • Claude and the o3 model for architectural guidance
  • All contributors and testers

🐛 Known Issues

  • WebSocket reconnection may require Chrome restart
  • Some sites with strict CSP may require unsafe mode
  • Safari and Firefox support coming in v2.0.0

📞 Support


Made with ❤️ by the LaskoBOT Contributors

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "browsermcp-mcp-enhanced": {
      "command": "",
      "args": []
    }
  }
}

Use BrowserMCP Enhanced MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once BrowserMCP Enhanced is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add BrowserMCP Enhanced as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the BrowserMCP Enhanced MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "browsermcp-mcp-enhanced": {
      "command": "npx",
      "args": [
        "-y",
        "@browsermcp/mcp-enhanced"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the BrowserMCP Enhanced MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the BrowserMCP Enhanced MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use BrowserMCP Enhanced to help me with this task?
BrowserMCP Enhanced
Sure. I read it.
Here is what I found using BrowserMCP Enhanced.

Frequently asked questions

What is the BrowserMCP Enhanced MCP server used for?

BrowserMCP Enhanced is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use BrowserMCP Enhanced MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use BrowserMCP Enhanced with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use BrowserMCP Enhanced MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With BrowserMCP Enhanced connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect BrowserMCP Enhanced MCP to TypingMind?

BrowserMCP Enhanced runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does BrowserMCP Enhanced MCP provide in TypingMind?

BrowserMCP Enhanced exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use BrowserMCP Enhanced MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If BrowserMCP Enhanced requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇