返回 MCP 目录
public公开dns本地运行

Rod-MCP工具

Rod-MCP 通过使用 Rod 为您的应用程序提供浏览器自动化功能。该服务器提供了许多有用的 MCP 工具,使大型语言模型能够与网页进行交互,例如点击、截屏、将页面保存为 PDF 等。

article

README

Rod MCP Server

logo

Wow! It's awesome, now you can use the MCP server of Rod!🚀


Rod-MCP provides browser automation capabilities for your applications by using Rod. The server provides many useful mcp tools enable LLMs to interact with the web pages, like click, take screenshot, save page as pdf etc.

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

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端