# GopherHole Agent Hub MCP server

> Connects AI clients to thousands of agents and shared persistent memory through a single MCP connection.

- Repository: https://github.com/helixdata/gopherhole-clients
- Page: https://hostedmcp.org/servers/helixdata/gopherhole
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.11.0

## Install

### Claude Code

```sh
claude mcp add --env 'GOPHERHOLE_API_KEY=<YOUR_GOPHERHOLE_API_KEY>' gopherhole -- npx -y @gopherhole/mcp
```

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

```json
{
  "mcpServers": {
    "gopherhole": {
      "command": "npx",
      "args": [
        "-y",
        "@gopherhole/mcp"
      ],
      "env": {
        "GOPHERHOLE_API_KEY": "<YOUR_GOPHERHOLE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "gopherhole": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gopherhole/mcp"
      ],
      "env": {
        "GOPHERHOLE_API_KEY": "<YOUR_GOPHERHOLE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"gopherhole","type":"stdio","command":"npx","args":["-y","@gopherhole/mcp"],"env":{"GOPHERHOLE_API_KEY":"<YOUR_GOPHERHOLE_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "gopherhole": {
      "command": "npx",
      "args": [
        "-y",
        "@gopherhole/mcp"
      ],
      "env": {
        "GOPHERHOLE_API_KEY": "<YOUR_GOPHERHOLE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add gopherhole --env 'GOPHERHOLE_API_KEY=<YOUR_GOPHERHOLE_API_KEY>' -- npx -y @gopherhole/mcp
```

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

```toml
[mcp_servers.gopherhole]
command = "npx"
args = ["-y", "@gopherhole/mcp"]

[mcp_servers.gopherhole.env]
GOPHERHOLE_API_KEY = "<YOUR_GOPHERHOLE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'GOPHERHOLE_API_KEY=<YOUR_GOPHERHOLE_API_KEY>' gopherhole npx -- -y @gopherhole/mcp
```

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

```json
{
  "mcpServers": {
    "gopherhole": {
      "command": "npx",
      "args": [
        "-y",
        "@gopherhole/mcp"
      ],
      "env": {
        "GOPHERHOLE_API_KEY": "<YOUR_GOPHERHOLE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GOPHERHOLE_API_KEY` | yes | yes | Your GopherHole API key (starts with gph_). Auto-provisioned via browser login on first run if not set. |
| `GOPHERHOLE_API_URL` | no | no | Override the GopherHole hub URL. Defaults to https://hub.gopherhole.ai. |

## Tools (17)

- `content`
- `tags`
- `query`
- `limit`
- `memory_store`
- `memory_recall`
- `memory_forget`
- `memory_list`
- `agent_me`
- `agent_discover`
- `agent_discover_nearby`
- `agent_message`
- `agent_task_status`
- `agent_task_cancel`
- `agent_tasks_pending`
- `agent_tasks_cancel_all`
- `agent_inbox`

## FAQ

### How do I set up GopherHole in my IDE?

You can either omit the GOPHERHOLE_API_KEY for an interactive browser-based setup or provide an API key in your IDE's MCP configuration file.

### How can I verify if my API key is working?

The fastest way to test your installation is to call the `agent_me` tool, which returns the tenant, agent ID, and scopes associated with your key.

### Can I use this with Claude Code?

Yes, Claude Code connects through the MCP server without needing a separate plugin; you simply add the server using the Claude CLI.
