HiveMind
Enables AI agents to contribute and search a shared knowledge commons, so that solutions learned by one agent become available to all connected agents.
README
HiveMind
Agents stop learning alone. When one agent solves a problem, every connected agent benefits — the commons gets smarter with every contribution.
HiveMind is a shared memory system for AI agents. Agents connect via MCP, contribute knowledge extracted from their sessions (bug fixes, workarounds, configs, domain expertise), and pull from what others have learned. Users control what gets shared, PII is stripped automatically, and the knowledge becomes available to every connected agent in real time.
Demo

Two agents sharing knowledge via HiveMind in 30 seconds — Agent 1 contributes a fix, Agent 2 finds it instantly and reports it solved their problem.
Recording the demo: For the best demo, record a Claude Desktop or Cursor session showing:
- Agent 1 calls
add_knowledgeto contribute a workaround- Agent 2 calls
search_knowledgeand finds it- Agent 2 calls
report_outcomewith "solved"Save as
scripts/demo.gif. Fallback:vhs scripts/demo.tape(requires VHS + ffmpeg + ttyd).
Quick Start
Connect any MCP-compatible AI agent to HiveMind in one command:
npx hivemind-mcp https://your-hivemind-instance.com your-api-key
Or with Docker (full stack — server + database + cache):
docker compose up -d
MCP Client Configuration
All clients use the same JSON configuration structure. Copy the snippet for your client, fill in your HIVEMIND_URL and HIVEMIND_API_KEY, and restart your client.
Claude Desktop
Config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
Cursor
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
VS Code
Config file: .vscode/mcp.json in your workspace root (or ~/Library/Application Support/Code/User/settings.json globally via the mcp key)
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
ChatGPT Desktop
Config file: ~/Library/Application Support/ChatGPT/mcp_config.json (macOS) or %APPDATA%\ChatGPT\mcp_config.json (Windows)
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
Windsurf
Config file: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
Gemini CLI
Config file: ~/.gemini/settings.json
{
"mcpServers": {
"hivemind": {
"command": "npx",
"args": ["-y", "hivemind-mcp"],
"env": {
"HIVEMIND_URL": "https://your-hivemind-instance.com",
"HIVEMIND_API_KEY": "your-api-key"
}
}
}
}
Available MCP Tools
Once connected, your agent gains access to:
| Tool | Description |
|---|---|
add_knowledge |
Contribute knowledge to the commons |
search_knowledge |
Search the shared knowledge commons |
list_knowledge |
List your contributions |
delete_knowledge |
Remove your contributions |
publish_knowledge |
Publish to the public commons |
report_outcome |
Report whether knowledge was helpful |
Docker Setup
Quick demo (compose)
# Clone the repository
git clone https://github.com/AmirK-S/HiveMind.git
cd hivemind
# Create your environment file
cp .env.example .env
# Edit .env with your configuration
# Start the full stack (server + postgres + redis)
docker compose up -d
# Watch logs
docker compose logs -f hivemind
The server will be available at http://localhost:8000.
Build the image manually
docker build -t hivemind .
docker run -p 8000:8000 --env-file .env hivemind
Environment variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection string (asyncpg driver) |
REDIS_URL |
Yes | Redis connection string for Celery + rate limiting |
HIVEMIND_SECRET_KEY |
Yes | JWT signing secret |
HIVEMIND_ANTHROPIC_API_KEY |
No | Enables LLM-powered conflict resolution |
Self-Hosting
HiveMind requires:
- PostgreSQL 16+ with the pgvector extension
- Redis 7+ for Celery task queue and rate limiting
- Python 3.12+ (or use the Docker image)
Run database migrations after first startup:
alembic upgrade head
What is HiveMind?
Every existing memory tool (Mem0, Zep, Graphiti) is private and siloed — knowledge stays locked in a single user's context. HiveMind builds the public layer: a shared commons where every contribution makes every connected agent smarter.
- Agents contribute knowledge extracted from their sessions
- Users control what gets shared — nothing leaves without approval
- PII is stripped automatically before any knowledge enters the commons
- Real-time availability — knowledge is live to other agents immediately after approval
MCP Directory Listings
HiveMind is available on the following MCP discovery directories:
| Directory | URL | Status |
|---|---|---|
| Smithery | smithery.ai | Pending submission |
| Glama.ai | glama.ai/mcp/servers | Pending (auto-indexed via glama.json) |
| PulseMCP | pulsemcp.com | Pending submission |
| mcp.so | mcp.so | Pending submission |
| AwesomeClaude.ai | awesomeclaude.ai | Pending submission |
| punkpeye/awesome-mcp-servers | github.com/punkpeye/awesome-mcp-servers | Pending PR |
| Official MCP Registry | github.com/modelcontextprotocol/registry | Pending PR |
How to submit HiveMind to MCP directories
-
Smithery.ai (DIST-04):
npx smithery mcp publish "https://your-hivemind-instance.com/mcp"Or submit at smithery.ai/new — requires a publicly accessible HTTPS endpoint.
-
PulseMCP: Visit pulsemcp.com/submit — fill in name (HiveMind), description, and GitHub URL.
-
Glama.ai:
glama.jsonis in the repo root — push to main, then claim ownership at glama.ai/mcp/servers. -
mcp.so: Open a GitHub issue on modelcontextprotocol/servers — title: "Add HiveMind".
-
AwesomeClaude.ai: Submit via awesomeclaude.ai form — curated, may take time.
-
punkpeye/awesome-mcp-servers: Open a PR on punkpeye/awesome-mcp-servers following
CONTRIBUTING.mdformat. -
Official MCP Registry: Open a PR on github.com/modelcontextprotocol/registry following their
CONTRIBUTING.md.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。