Algonius Browser

Algonius Browser

An open-source MCP server that provides browser automation capabilities to external AI systems, enabling navigation, DOM interaction, and web content extraction.

Category
Visit Server

README

<div align="center"> <img src="https://github.com/user-attachments/assets/1b2b1bc0-c7b4-4a45-83f5-4a6161831535" width="600" alt="Algonius Browser Banner" /> </div>

<h1 align="center">MCP Browser Automation</h1>

๐ŸŒ Overview

Algonius Browser is an open-source MCP (Model Context Protocol) server that provides browser automation capabilities to external AI systems. It exposes a comprehensive set of browser control tools through the MCP protocol, enabling AI assistants and other tools to navigate websites, interact with DOM elements, and extract web content programmatically.

๐ŸŽฏ Key Features

  • MCP Protocol Integration: Standard interface for AI systems to control browser automation
  • Chrome Extension: Background service worker that handles browser interactions
  • Native Messaging: Go-based MCP host that bridges Chrome extension with external tools
  • Comprehensive Tool Set: 5 browser automation tools + 2 MCP resources
  • Type Safety: Full TypeScript implementation with structured error handling
  • Testing Suite: Comprehensive integration tests for all functionality

๐Ÿ› ๏ธ Available MCP Tools

Navigation & Tabs

  • navigate_to: Navigate to URLs with configurable timeout handling
  • manage_tabs: Create, close, and switch between browser tabs

DOM Interaction

  • get_dom_extra_elements: Advanced DOM element extraction with pagination and filtering
  • click_element: Click DOM elements using CSS selectors or text matching
  • set_value: Set values in input fields, textareas, and form elements
  • scroll_page: Scroll pages up or down with customizable distances

๐Ÿ“‹ Available MCP Resources

Browser State Resources

  • browser://current/state: Complete current browser state in AI-friendly Markdown format

    • Active tab information
    • All browser tabs with URLs, titles, and status
    • Real-time state updates via resource notifications
  • browser://dom/state: Current DOM state overview in Markdown format

    • Page metadata (URL, title, scroll position)
    • First 20 interactive elements
    • Total element count with "more available" indicators
    • Simplified DOM structure
    • Auto-updates when page changes

๐Ÿš€ Quick Start

1. Install Chrome Extension

From Chrome Web Store (Recommended):

<a href="https://chromewebstore.google.com/detail/algonius-browser-mcp/fmcmnpejjhphnfdaegmdmahkgaccghem" target="_blank"> <img src="https://github.com/user-attachments/assets/4c2c0b5e-8f63-4a8b-9a5e-2d7e8f3c9b1a" alt="Available in the Chrome Web Store" width="248" height="75"> </a>

  1. Click the "Add to Chrome" button on the Chrome Web Store page
  2. Confirm the installation when prompted
  3. The extension will be automatically installed and ready to use

From Source (Development):

# Clone and build
git clone https://github.com/algonius/algonius-browser.git
cd algonius-browser
pnpm install
pnpm build

# Load in Chrome
# 1. Open chrome://extensions/
# 2. Enable "Developer mode"
# 3. Click "Load unpacked"
# 4. Select the 'dist' folder

โš ๏ธ Important: The Chrome extension requires the MCP Host backend service to function properly. Please continue with step 2 to complete the installation.

2. Install MCP Host

One-Click Installation (Recommended):

Linux/macOS:

curl -fsSL https://raw.githubusercontent.com/algonius/algonius-browser/master/install-mcp-host.sh | bash

Windows (PowerShell):

iwr -useb https://raw.githubusercontent.com/algonius/algonius-browser/master/install-mcp-host.ps1 | iex

Manual Installation:

# Download latest release
wget https://github.com/algonius/algonius-browser/releases/latest/download/mcp-host-linux-x86_64.tar.gz

# Extract and install
tar -xzf mcp-host-linux-x86_64.tar.gz
cd mcp-host-linux-x86_64
./install.sh

3. Verify Installation

# Test the MCP host installation
mcp-host-go --version

# The MCP host will be automatically started when needed by the Chrome extension
# You should see the extension icon in your Chrome toolbar

โœ… Success: Both components are now installed! The Chrome extension will automatically communicate with the MCP Host when browser automation is requested.

๐Ÿ”ง Integration Examples

Using with AI Assistants

Once installed, AI systems can use the browser automation tools and resources through the MCP protocol:

Tool Usage:

{
  "method": "tools/call",
  "params": {
    "name": "navigate_to",
    "arguments": {
      "url": "https://example.com",
      "timeout": 30000
    }
  }
}

Resource Access:

{
  "method": "resources/read",
  "params": {
    "uri": "browser://current/state"
  }
}

Common Workflows

Web Scraping:

  1. navigate_to โ†’ Navigate to target site
  2. Read browser://dom/state โ†’ Get page overview
  3. get_dom_extra_elements โ†’ Get specific elements with pagination
  4. click_element โ†’ Interact with elements
  5. Read browser://dom/state โ†’ Extract updated content

Form Automation:

  1. navigate_to โ†’ Go to form page
  2. Read browser://dom/state โ†’ Identify form elements
  3. set_value โ†’ Fill form fields
  4. click_element โ†’ Submit form
  5. Read browser://current/state โ†’ Verify completion

Multi-Tab Management:

  1. Read browser://current/state โ†’ Check current tabs
  2. manage_tabs โ†’ Create/switch tabs
  3. navigate_to โ†’ Load content in each tab
  4. Read browser://current/state โ†’ Monitor all tab states

Page Navigation with Scrolling:

  1. navigate_to โ†’ Go to target page
  2. Read browser://dom/state โ†’ Get initial page state
  3. scroll_page โ†’ Scroll to load more content
  4. get_dom_extra_elements โ†’ Extract newly loaded elements

๐Ÿ—๏ธ Architecture

External AI System
       โ†“ (MCP Protocol)
   MCP Host (Go)
       โ†“ (Native Messaging)
Chrome Extension
       โ†“ (Chrome APIs)
    Browser Tabs

Components

  • MCP Host: Go-based native messaging host that implements MCP protocol
  • Chrome Extension: Background service worker with tool handlers
  • Content Scripts: DOM interaction and data extraction utilities
  • Integration Tests: Comprehensive test suite for all tools

๐Ÿงช Development

Build from Source

Prerequisites:

  • Node.js 22.12.0+
  • pnpm 9.15.1+
  • Go 1.21+ (for MCP host)

Build Extension:

pnpm install
pnpm build

Build MCP Host:

cd mcp-host-go
make build

Run Tests:

# Extension tests
pnpm test

# MCP host tests  
cd mcp-host-go
make test

Development Mode

# Extension development
pnpm dev

# MCP host development
cd mcp-host-go
make dev

๐Ÿ“Š Supported Platforms

MCP Host:

  • Linux x86_64
  • macOS Intel (x86_64) and Apple Silicon (arm64)
  • Windows x86_64

Chrome Extension:

  • Chrome/Chromium 88+
  • Microsoft Edge 88+

๐Ÿ“š Documentation

Detailed documentation available in the docs/ directory:

๐Ÿค Contributing

We welcome contributions! Check out our CONTRIBUTING.md for guidelines.

Ways to contribute:

  • Report bugs and feature requests
  • Submit pull requests for improvements
  • Add integration tests
  • Improve documentation
  • Share usage examples

๐Ÿ”’ Security

For security vulnerabilities, please create a GitHub Security Advisory rather than opening a public issue.

๐Ÿ’ฌ Community

๐Ÿ“„ License

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

๐Ÿ‘ Acknowledgments

Built with these excellent open-source projects:


Made with โค๏ธ by the Algonius Browser Team

Give us a star ๐ŸŒŸ if this project helps you build better browser automation!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured