ChromeDP logo

ChromeDP

Community
kepatrick

MCP server for browser automation using chromedp

Publisherkepatrick
Repositorychromedp-mcp
LanguageGo
Forks
3
Stars
13
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    ChromeDP 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

    13 stars and 3 forks from the linked repository.

chromedp-mcp

A Model Context Protocol (MCP) server that provides browser automation capabilities using chromedp. This server enables AI assistants to interact with web pages, manage browser instances, and perform various web automation tasks.

⚠️ Development Status

This project is currently under development. Some features may be incomplete, unstable, or contain bugs. Use with caution and please report any issues you encounter.

Features

  • Multi-instance Chrome Management: Create and manage multiple Chrome browser instances with extensive configuration options (headless mode, security settings, performance optimization)
  • Complete Page Navigation: Navigate to URLs, browser history navigation (back/forward)
  • Element Interaction: Find, click, and interact with web page elements using various selectors
  • Form Operations: Input text, set values directly
  • Cookie Management: Set and manage browser cookies for session handling
  • File Operations: Download files and images from web pages
  • PDF Generation: Convert web pages or HTML content to PDF documents
  • Keyboard Simulation: Send keyboard events, key combinations, and modifier keys with comprehensive key support
  • Screen Capture: Take screenshots of web pages for visual analysis
  • DOM Tree Extraction: Get clean DOM structures without scripts/styles for analysis

LLM Decision Support

chromedp-mcp provides web page information to LLMs, enabling AI to make decisions:

Visual Information

Provided through screenshot tool:

  • Complete page screenshots: Actual visual representation of web pages including layout, colors, images
  • Element positioning: LLMs can see exact positions and appearance of buttons, links, forms and other elements
  • Page state identification: Detect loading states, popups, error messages and other visual indicators
  • Responsive layout understanding: Comprehend page presentation across different viewport sizes

Structured Information

Provided through DOM-related tools:

  • Clean DOM structure (get-all-elements): Pure HTML structure with scripts and styles removed
  • Specific element details (select-element): Element tree structure at specified depth
  • Text content extraction (get-element-withtext): Element information containing specific text
  • Element attribute data: ID, class, data-* and other attribute values

Available Tools

For detailed tool specifications,and parameters, see Tools Specification

Instance Management

  • create-chrome-instance - Create a new Chrome browser instance with extensive configuration options (headless mode, security settings, performance options)
  • close - Close a specific Chrome browser instance

Page Navigation

  • navigate - Navigate to a specified URL and return clean DOM structure
  • navigate-back - Navigate to previous page in browser history
  • navigate-forward - Navigate to next page in browser history

Element Operations

  • get-element-withtext - Find and retrieve information about a specific element with text content
  • get-all-elements - Get all elements of current page as clean DOM tree structure
  • select-element - Select element by CSS selector and return clean DOM structure at specified depth
  • click-element - Click on an element with support for different click types (left, right, double)

Visual Information Access

  • screenshot - Capture screenshots of web pages for visual analysis and layout understanding

Input Operations

  • send-key - Send keyboard input to specified elements
  • set-value - Directly set the value of form elements
  • key-event - Send specific keyboard events and combinations with modifier keys

Cookie Management

  • set-cookie - Set HTTP cookies with full control over domain, path, security, and expiration settings

File Operations

  • download-file - Download files by clicking download links or buttons
  • download_image - Download images from URL or by selector

Document Generation

  • generate_pdf - Generate PDF from HTML content or URL

Other

  • tips - Important usage tips and best practices for Chrome automation tools (recommended to check first)

Requirements

  • Chrome/Chromium Browser: Must be installed and accessible in system PATH
  • Go: Version 1.19 or higher for building from source

Environment Configuration

The following environment variables can be configured for Chrome management:

VariableDescriptionDefault
CHROME_MAXIMUM_INSTANCEMaximum concurrent Chrome instances5
CHROME_TTLInstance time-to-live in minutes15
CHROME_EXE_TIMEOUTOperation timeout in seconds300

These can be configured through your MCP client configuration or environment variables.

Setup

1. Clone the repository:

bash
git clone https://github.com/KePatrick/chromedp-mcp.git

cd chromedp-mcp

2. Build the project:

Windows

bash
go build -o chromedp-mcp.exe .\cmd\chromedp-mcp\main.go

Linux/MacOs

bash
go build -o chromedp-mcp ./cmd/chromedp-mcp/main.go

3. MCP Client Configuration

Configure your MCP-compatible client to use this server:

Basic Configuration:

json
{
  "mcpServers": {
    "chromedp-mcp": {
      "command": "/path/to/chromedp-mcp",
      "args": []
    }
  }
}

With Environment Variables:

json
{
  "mcpServers": {
    "chromedp-mcp": {
      "command": "/path/to/chromedp-mcp",
      "args": [],
      "env": {
        "CHROME_MAXIMUM_INSTANCE": "10",
        "CHROME_TTL": "30",
        "CHROME_EXE_TIMEOUT": "600"
      }
    }
  }
}

Important Notes

  • Always close instances when done to free resources
  • Respect website terms of service and robots.txt
  • Some websites may have anti-automation measures

Use ChromeDP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once ChromeDP 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 ChromeDP 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 ChromeDP 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": {
    "chromedp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the ChromeDP 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 ChromeDP 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 ChromeDP to help me with this task?
ChromeDP
Sure. I read it.
Here is what I found using ChromeDP.

Frequently asked questions

What is the ChromeDP MCP server used for?

ChromeDP 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 ChromeDP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use ChromeDP 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 ChromeDP 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 ChromeDP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect ChromeDP MCP to TypingMind?

ChromeDP 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 ChromeDP MCP provide in TypingMind?

ChromeDP 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 ChromeDP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If ChromeDP 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 👇