GR

go-rod/rod-mcp

Developer tools
34ย stars 0 forks ํ’ˆ์งˆ 99 ํŠธ๋ Œ๋“œ 99

Wow! It's awesome, now you can use the MCP server of Rod!๐Ÿš€

๊ฐœ์š”

Wow! It's awesome, now you can use the MCP server of Rod!๐Ÿš€

README

Rod MCP Server

Engilsh | ไธญๆ–‡

Features

  • ๐Ÿš€ Browser automation powered by Rod
  • ๐ŸŽฏ Rich web interaction capabilities
    • Element clicking
    • Screenshot capture
    • PDF generation
    • And moreโ€ฆ
  • ๐ŸŽจ Headless/GUI mode support
  • โšก High performance and stability
  • ๐Ÿ”ง Easy to configure and extend
  • ๐Ÿค– Designed for LLMs interaction

Installation

Prerequisites

  • Go 1.23 or higher
  • Chrome/Chromium browser

Steps

  1. Clone the repository:
git clone https://github.com/go-rod/rod-mcp.git
cd rod-mcp
  1. Install dependencies:
go mod tidy
  1. Build the project:
go build

Usage

Basic Usage

  1. Clone Repo and Build Self or Go to Download Release
  2. Configure MCP:
{
    "mcpServers": {
        "rod-mcp": {
            "command": "rod-mcp",
            "args": [
                "-c", "rod-mcp.yaml"
            ]
        }
    }
}

Configuration

The configuration file supports the following options:

  • serverName: Server name, default is โ€œRod Serverโ€
  • browserBinPath: Browser executable file path, use system default browser if empty
  • headless: Whether to run the browser in headless mode, default is false
  • browserTempDir: Browser temporary file directory, default is โ€œ./rod/browserโ€
  • noSandbox: Whether to disable sandbox mode, default is false
  • proxy: Proxy server settings, supports socks5 proxy

Project Structure

rod-mcp/
โ”œโ”€โ”€ assets/          # Static resources
โ”œโ”€โ”€ banner/          # Banner resources
โ”œโ”€โ”€ cmd.go           # Command line processing
โ”œโ”€โ”€ main.go          # Program entry
โ”œโ”€โ”€ resources/       # Resource files
โ”œโ”€โ”€ server.go        # Server implementation
โ”œโ”€โ”€ tools/           # Tool implementation
โ”œโ”€โ”€ types/           # Type definitions
โ””โ”€โ”€ utils/           # Utility functions

Contribution Guidelines

Welcome to submit Pull Request or create Issue!

License

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

View this README on GitHub

์„ค์น˜

This server does not publish a one-line install command.

Open the repository installation guide

์„ค์ •

{ "mcpServers": { "rod-mcp": { "command": "rod-mcp", "args": [ "-c", "rod-mcp.yaml" ] } } }