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.
Make sure Docker is installed and running on your machine.
To get started with Grasp, run these commands:
docker pull getgrasp/grasp
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.
Grasp supports multiple AI providers beyond Anthropic:
.env.example
file to .env
and set the appropriate environment variablesdocker run -d \
--name grasp-agent \
--env-file .env \
-p 3000:3000 \
getgrasp/grasp
Supported providers include:
Grasp can automatically log into websites for you, making it easier to retrieve personalized content or perform authenticated actions.
cp .credentials.example.yml .credentials.yml
Edit the .credentials.yml
file to include your login details for different websites
Create a directory for persistent browser data:
mkdir -p browser-user-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
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.
For agent-to-agent browser automation, Grasp provides A2A integration. This allows your AI agents to control browser actions programmatically.
For questions, ideas, or discussions, join the Grasp Discord community.
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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