# ClipGrab MCP server

> Saves images from the system clipboard to PNG or JPG files so AI agents can access them.

- Repository: https://github.com/ulebule/ClipGrab
- Page: https://hostedmcp.org/servers/ulebule/clipgrab
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add clipgrab -- uvx clipgrab-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "clipgrab": {
      "command": "uvx",
      "args": [
        "clipgrab-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "clipgrab": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "clipgrab-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"clipgrab","type":"stdio","command":"uvx","args":["clipgrab-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "clipgrab": {
      "command": "uvx",
      "args": [
        "clipgrab-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add clipgrab -- uvx clipgrab-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.clipgrab]
command = "uvx"
args = ["clipgrab-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user clipgrab uvx -- clipgrab-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "clipgrab": {
      "command": "uvx",
      "args": [
        "clipgrab-mcp"
      ]
    }
  }
}
```

## Tools (2)

- `save_clipboard_image`
- `clipboard_has_image`

## FAQ

### Where are the images saved by default?

Images are saved to the current working directory, which is the folder the agent is running from.

### What operating systems are supported?

The server works on Windows, macOS, and Linux. On Linux, it requires wl-clipboard or xclip for clipboard fallback.
