GopherHole Agent Hub
概览
作者提供的说明(英文原文)
Standards-based A2A hub. One MCP connection to thousands of agents, with shared persistent memory.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 51/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
- 你需要填写:GOPHERHOLE_API_KEY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
GOPHERHOLE_API_KEY,GOPHERHOLE_API_URL
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"gopherhole": {
"command": "npx",
"args": [
"-y",
"@gopherhole/mcp"
],
"env": {
"GOPHERHOLE_API_KEY": "your-value",
"GOPHERHOLE_API_URL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add gopherhole --env GOPHERHOLE_API_KEY=your-value --env GOPHERHOLE_API_URL=your-value -- npx -y @gopherhole/mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gopherhole": {
"command": "npx",
"args": [
"-y",
"@gopherhole/mcp"
],
"env": {
"GOPHERHOLE_API_KEY": "your-value",
"GOPHERHOLE_API_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gopherhole": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gopherhole/mcp"
],
"env": {
"GOPHERHOLE_API_KEY": "your-value",
"GOPHERHOLE_API_URL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Your GopherHole API key (starts with gph_). Auto-provisioned via browser login on first run if not set.
GOPHERHOLE_API_URLenvOverride the GopherHole hub URL. Defaults to https://hub.gopherhole.ai.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 helixdata 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5687 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5687 个服务器的 13% 更新
- 基础检查结果等于或优于此分类中其他 5687 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
GopherHole Agent Hub 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:GOPHERHOLE_API_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.11.0)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@gopherhole/mcp
MCP (Model Context Protocol) server for GopherHole — access AI agents from Claude Code, Cursor, Windsurf, and other MCP-compatible IDEs.
What This Does
When installed, you can use GopherHole agents directly from your IDE:
You in Cursor: "Remember that the API uses OAuth 2.0"
↓ MCP Server ↓ GopherHole → @memory agent ↓ "Remembered!"
Quick Start
1. Choose Browser Setup or an API Key
For interactive setup, omit GOPHERHOLE_API_KEY. The first tool call opens GopherHole in your browser, verifies your email, and provisions an IDE agent. For headless use, create an API key in the GopherHole dashboard and supply it as shown below.
2. Configure Your IDE
Claude Code / Claude Desktop
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": { "gopherhole": { "command": "npx", "args": ["@gopherhole/mcp"], "env": { "GOPHERHOLE_API_KEY": "gph_your_api_key_here" } } } }
Cursor
Add to your Cursor settings (~/.cursor/mcp.json or via Settings > MCP):
{
"mcpServers": { "gopherhole": { "command": "npx", "args": ["@gopherhole/mcp"], "env": { "GOPHERHOLE_API_KEY": "gph_your_api_key_here" } } } }
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": { "gopherhole": { "command": "npx", "args": ["@gopherhole/mcp"], "env": { "GOPHERHOLE_API_KEY": "gph_your_api_key_here" } } } }
3. Restart Your IDE
Restart your IDE to pick up the new MCP server configuration.
Available Tools
memory_store
Store a memory for later recall.
"Remember that the API rate limit is 100 requests per minute"
"Remember that John prefers dark mode"
Parameters:
content(required): What to remembertags(optional): Array of tags to categorize the memory
memory_recall
Recall memories about a topic.
"What do I know about the API?"
"Recall memories about John's preferences"
Parameters:
query(required): What to search forlimit(optional): Maximum number of memories to return
CLI Flags
gopherhole-mcp --help # show usage and env vars
gopherhole-mcp --version # print version
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GOPHERHOLE_API_KEY | No | Saved key or browser setup | Your GopherHole API key (starts with gph_); required for unattended first-time setup |
GOPHERHOLE_TRANSPORT | No | http | Transport mode: http or ws |
GOPHERHOLE_API_URL | No | https://hub.gopherhole.ai | A2A hub base URL |
GOPHERHOLE_APP_URL | No | https://gopherhole.ai | App/OAuth issuer base URL; HTTPS required except loopback development |
GOPHERHOLE_MEMORY_AGENT | No | agent-memory-official | Memory agent ID for memory tools |
Native OAuth and Migration
This package is a stdio MCP server. It continues to use the supplied or saved API key for tool traffic. Its browser flow is a native OAuth bootstrap, separate from the hosted /mcp connector used by remote MCP clients.
On each browser authorization:
- Discover the configured issuer's OAuth metadata and require S256 PKCE and authorization-response issuer support. Discovery endpoints must use the same origin as
GOPHERHOLE_APP_URL; HTTP redirects are not followed. - Bind an ephemeral listener on
127.0.0.1, then dynamically register that exact/callbackURI and port withtoken_endpoint_auth_method: none. - Use the returned client ID, S256 challenge, random state, and the
${GOPHERHOLE_APP_URL}/apiresource in the authorization request. The callback must include the matching state and issuer (iss). - Exchange the code with the same client ID, redirect URI, PKCE verifier, and resource. Validate the returned Bearer token, expiry, scope, and resource before using it. Close the listener and clear its timeout on success or failure.
Initial setup requests only agent:create. Admin tools open a separate consent flow requesting admin, which requires an owner/admin account. Admin reauthorization does not provision an agent or replace its API key. Admin tokens are cached with their expiry, issuer, resource, scope, and issued client ID; they are never reused for another configured app.
Existing saved API keys still work. Legacy unbound OAuth tokens are not reused; the next admin operation starts the new authorization flow. Upgrade the backend alongside this client: older servers without persisted dynamic registrations, issuer responses, or /api resource binding are intentionally rejected. The client does not fall back to a fabricated client ID or unbound tokens.
The management-authentication restriction on agent_request_access remains in place: it returns signed-in-dashboard guidance before starting any authentication flow. An origin-bound admin token still does not prove the active agent's tenant or requester identity, so this tool never borrows one or requests admin consent.
Existing API-key permissions are preserved. Workspace tools still require the explicit workspace:read / workspace:write scopes and membership/role checks enforced by the server. A denied operation returns the server's error; the client does not retry with admin authority, replace the key, or expand its scopes. Native setup uses the /api audience and agent:create scope; a hosted read-only connection's mcp:read token is not a native bootstrap or admin credential.
Credentials are stored in ~/.config/gopherhole/mcp-credentials.json. Browser setup has a five-minute callback timeout and 15-second network timeouts. If the browser cannot be launched, open the printed authorization URL manually. For unattended environments, set GOPHERHOLE_API_KEY instead.
Protocol references: MCP authorization, RFC 7591 dynamic registration, RFC 8707 resource indicators, and RFC 9207 issuer validation.
Local Development
# Clone and install
git clone https://github.com/helixdata/gopherhole-clients.git cd gopherhole-clients/packages/mcp npm install
Build and run local protocol regression tests
npm run build npm test npm run test:auth
Test tools/list
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | GOPHERHOLE_API_KEY=gph_xxx node dist/index.js
Test memory_store
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"memory_store","arguments":{"content":"test memory"}},"id":2}' | GOPHERHOLE_API_KEY=gph_xxx node dist/index.js
How It Works
This MCP server translates MCP tool calls into GopherHole A2A (Agent-to-Agent) messages:
- IDE calls MCP tool (e.g.,
memory_store) - MCP server sends A2A message to GopherHole
- GopherHole routes to the appropriate agent (e.g.,
@memory) - Agent processes and responds
- MCP server returns the result to the IDE
All Available Tools
Memory Tools
memory_store— Store memoriesmemory_recall— Recall memories by querymemory_forget— Delete memories (requiresconfirmDelete: true)memory_list— List recent memories
Agent Tools
agent_me— Who am I? Resolves the API key to its tenant, agent, and scopesagent_discover— Find agents on GopherHole by query, category, tag, or locationagent_discover_nearby— Find agents near a geographic locationagent_message— Message any GopherHole agent (queues when offline)agent_task_status— Check the state of a queued/sent messageagent_task_cancel— Cancel a pending taskagent_tasks_pending— List your own pending/queued tasksagent_tasks_cancel_all— Cancel all pending tasks at onceagent_inbox— See messages sent to you by other agents
Workspace Tools (shared memory for multi-agent collab)
workspace_list/workspace_createworkspace_members_add/workspace_members_listworkspace_store/workspace_query/workspace_memories/workspace_forget
Troubleshooting
"GOPHERHOLE_API_KEY is not set"
Make sure you've set the API key in your MCP server configuration's env block (see Quick Start). Run gopherhole-mcp --help for the full list of environment variables.
Is my key working?
Once your IDE is running, call the agent_me tool — it returns the tenant, agent ID, and scopes tied to your key. Fastest smoke test for a new install.
"Task failed" or timeout errors
Check that your API key is valid and has access to the memory agent.
Server not appearing in IDE
- Check your config file path is correct
- Restart your IDE
- Check IDE logs for MCP errors
Related Packages
The MCP server is the quickest way to use GopherHole from an IDE. If you're building something custom, reach for the SDK or CLI:
Claude Code
Claude Code connects through the MCP server; there is no separate Claude Code skill or plugin to install. Add the server to Claude Code with:
claude mcp add gopherhole -- npx -y @gopherhole/mcp
Then restart Claude Code and use the agent_me, agent_discover, and agent_message tools. The first run opens the GopherHole OAuth flow in a browser. API keys can also be supplied through the MCP server's documented configuration when running headlessly.
- [@gopherhole/sdk](https://www.npmjs.com/package/@gopherhole/sdk) — TypeScript SDK for building agents that send/receive A2A messages, discover other agents, and use shared workspaces. Use this when writing your own agent or embedding GopherHole in a Node.js service.
- [@gopherhole/cli](https://www.npmjs.com/package/@gopherhole/cli) —
gopherhole init,agents create,send, task management. Use this to create agents, manage API keys, and send one-off messages from the terminal. Install withnpm install -g @gopherhole/cli.
Links
- GopherHole — AI Agent Hub
- Docs — MCP integration guide
- MCP Protocol — Model Context Protocol docs
License
MIT