Grasp (Browser Automation) MCP server

Enables AI systems to control web browsers with human-like interactions for navigation, form filling, and content extraction through a self-hosted automation server.
Back to servers
Setup instructions
Provider
Aircode Labs
Release date
Apr 19, 2025
Language
TypeScript
Stats
76 stars

Grasp is an open-source and self-hosted agentic browser that allows AI applications to control web browsing. It works with MCP and A2A protocols to integrate with other AI apps or agents, enabling them to perform web tasks like a human would in an isolated, secure environment.

Installation

Prerequisites

Make sure Docker is installed and running on your machine.

Basic Installation

To get started with Grasp, run these commands:

  1. Pull the Docker image:
docker pull getgrasp/grasp
  1. Run the container:
docker run -d \
  --name grasp-agent \
  -p 3000:3000 \
  -e ANTHROPIC_API_KEY=YOUR_ANTHROPIC_KEY \
  getgrasp/grasp

Replace YOUR_ANTHROPIC_KEY with your actual Anthropic API Key.

  1. Access the Grasp console by opening http://localhost:3000 in your browser.

Using Alternative AI Providers

Grasp supports multiple AI providers beyond Anthropic:

  1. Copy the .env.example file to .env and set the appropriate environment variables
  2. Run Grasp with the environment file:
docker run -d \
  --name grasp-agent \
  --env-file .env \
  -p 3000:3000 \
  getgrasp/grasp

Supported providers include:

  • Anthropic
  • OpenAI
  • Amazon Bedrock
  • Azure OpenAI

Usage

Enabling Secure Auto-Login

Grasp can automatically log into websites for you, making it easier to retrieve personalized content or perform authenticated actions.

  1. Set up your credentials file:
cp .credentials.example.yml .credentials.yml
  1. Edit the .credentials.yml file to include your login details for different websites

  2. Create a directory for persistent browser data:

mkdir -p browser-user-data
  1. Run Grasp with the credentials and persistent data:
docker run -d \
  --name grasp-agent \
  --env-file .env \
  -p 3000:3000 \
  -v $(pwd)/.credentials.yml:/app/.credentials.yml \
  -v $(pwd)/browser-user-data:/app/browser-user-data \
  getgrasp/grasp

Integration Tutorials

Connect with Claude Desktop

Grasp can be used as a local MCP tool server to enable Claude to operate the browser. Follow the tutorial at the Claude Desktop documentation for detailed instructions.

Connect with Agent-to-Agent (A2A)

For agent-to-agent browser automation, Grasp provides A2A integration. This allows your AI agents to control browser actions programmatically.

Community Support

For questions, ideas, or discussions, join the Grasp Discord community.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "grasp" '{"command":"docker","args":["run","-p","3000:3000","-e","ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY","getgrasp/grasp"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "grasp": {
            "command": "docker",
            "args": [
                "run",
                "-p",
                "3000:3000",
                "-e",
                "ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY",
                "getgrasp/grasp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "grasp": {
            "command": "docker",
            "args": [
                "run",
                "-p",
                "3000:3000",
                "-e",
                "ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY",
                "getgrasp/grasp"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later