hAIveMind MCP Server

hAIveMind MCP Server

Enables AI agents to share knowledge, coordinate tasks, and maintain persistent memory across distributed infrastructure with secure vaults and 130+ MCP tools.

Category
Visit Server

README

hAIveMind MCP Server

A distributed multi-agent DevOps memory system implementing the Model Context Protocol (MCP). Enables Claude and other AI agents to share knowledge, coordinate tasks, and maintain persistent memory across distributed infrastructure.

Features

  • Persistent Memory Storage: ChromaDB-backed vector storage with Redis caching
  • Multi-Agent Coordination: Register agents, delegate tasks, and share discoveries across the collective
  • Teams & Vaults: Secure collaborative workspaces with encrypted secret management
  • Zero-Knowledge Vault Sharing: X25519 key exchange for secure vault key distribution
  • Skills.sh Integration: Discover and install reusable AI agent capabilities from skills.sh
  • Confidentiality Controls: PII/confidential data protection with sync/broadcast filtering
  • Token-Optimized Format: 60-80% token reduction with v2 format system
  • Remote Access: HTTP/SSE server for MCP clients with HTTPS/Tailscale Serve support
  • Agent Authentication: Firebase-backed identity with pre-auth keys and capabilities
  • 130+ MCP Tools: Comprehensive DevOps tooling for infrastructure, deployment, and monitoring
  • Configuration Management: Drift detection, snapshots, and intelligent alerting
  • Disaster Recovery: Automated backups, failover, and chaos engineering support

Version

Current Release: v2.3.0

Recent Changes

  • v2.3.0: Secure admin bootstrap system with vault-based credentials, hardcoded password removal, complete API v1 endpoints for vault operations
  • v2.2.0: Skills.sh integration, zero-knowledge vault sharing, HTTPS/Tailscale Serve support, agent authentication system
  • v2.1.5: Fixed PII protection MCP tool exposure, comprehensive README update
  • v2.1.4: PII/Confidential memory protection system
  • v2.1.3: Agents directory support in vault system
  • v2.1.2: Full toolset enabled in remote server
  • v2.1.1: Vault sync tools restored

Installation

# Clone the repository
git clone <repository-url>
cd haivemind-mcp-server

# Create virtual environment
python -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Start the remote HTTP/SSE server (recommended)
python src/remote_mcp_server.py

# Or start the local MCP server (stdio)
python src/memory_server.py

Configuration

Claude Code Integration

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "haivemind": {
      "command": "mcp-client-sse",
      "args": ["http://localhost:8900/sse"],
      "env": {"HTTP_TIMEOUT": "30000"}
    }
  }
}

Server Configuration

Copy config/config.example.json to config/config.json:

{
  "storage": {
    "chromadb": {"path": "/data/chroma/"}
  },
  "server": {"port": 8900}
}

MCP Tools (126 Total)

Core Memory Tools

Tool Description
store_memory Store memories with confidentiality controls
retrieve_memory Get specific memory by ID
update_memory_confidentiality Upgrade memory protection level (one-way)
search_memories Full-text and semantic search with filtering
get_recent_memories Time-windowed retrieval
get_memory_stats Statistics and counts
get_project_memories Project-scoped memories
import_conversation Bulk import conversations

Confidentiality Levels

Level Sync Broadcast Search Description
normal Yes Yes Full Default - full visibility
internal No Limited Full No external machine sync
confidential No No Local Local machine only
pii No No Local Audit logged, blocked from all distribution

Agent Coordination

Tool Description
register_agent Register with the collective
get_agent_roster List all active agents
delegate_task Assign work to specialists
query_agent_knowledge Query specific agent expertise
broadcast_discovery Share findings with all agents
get_broadcasts Retrieve recent broadcasts

Teams & Vaults

Tool Description
create_team / list_teams Collaborative workspaces
create_vault / store_in_vault Encrypted secret storage
retrieve_from_vault Decrypt and retrieve secrets
share_vault Grant access to users/teams
vault_audit_log Security audit trail

Infrastructure Management

Tool Description
track_infrastructure_state Record infrastructure snapshots
record_incident Log incidents with correlation
generate_runbook Create reusable procedures
sync_ssh_config Distribute SSH configurations
sync_infrastructure_config Sync any infra config

Configuration Management

Tool Description
create_config_snapshot Capture configuration state
detect_config_drift Intelligent drift detection
get_config_history Configuration change history
create_intelligent_config_alert Smart alerting rules
get_drift_trend_analysis Predictive drift analysis
diff_config_files Compare configurations

Backup & Recovery

Tool Description
backup_all_configs Full configuration backup
backup_agent_state Agent state preservation
backup_project Project-level backups
restore_from_backup Safe restoration
verify_backup Backup integrity check
scheduled_backup Automated backup scheduling

Deployment Pipeline

Tool Description
create_deployment_pipeline Define CI/CD pipelines
execute_deployment Run deployments
rollback_deployment Automated rollback
deployment_approval_workflow Approval gates
backup_before_deployment Pre-deploy snapshots

Service Discovery

Tool Description
discover_services Automatic service discovery
register_service Manual service registration
service_dependency_map Dependency visualization
health_check_all Comprehensive health checks

Ticket Management

Tool Description
create_ticket Create work tickets
get_ticket / list_tickets Retrieve tickets
update_ticket_status Status updates
search_tickets Search and filter
get_my_tickets Personal ticket list
add_ticket_comment Add comments
get_ticket_metrics Analytics

Skills.sh Integration

Tool Description
search_skills_sh Search skills.sh directory for AI capabilities
install_skill_from_skills_sh Install skill with vault sync
list_installed_skills List local and vault skills
sync_skill_to_vault Share skill with team via vault
recommend_skills Context-aware skill recommendations

External Integrations

Tool Description
fetch_from_confluence Import Confluence docs
fetch_from_jira Import Jira issues
sync_external_knowledge Sync all external sources
upload_playbook Store Ansible/Terraform

Project Management

Tool Description
create_project / list_projects Project CRUD
switch_project_context Context switching
project_health_check Health analysis
backup_project / restore_project Project backup/restore

Usage Examples

Store Memory with PII Protection

# Normal memory (synced across network)
store_memory(content="API endpoint documented", category="infrastructure")

# PII memory (local only, never synced)
store_memory(
    content="Customer SSN: xxx-xx-xxxx",
    category="security",
    confidentiality_level="pii"
)

Upgrade Confidentiality (One-Way)

# Mark existing memory as confidential
update_memory_confidentiality(
    memory_id="abc123",
    confidentiality_level="confidential",
    reason="Contains sensitive customer data"
)

Agent Coordination

# Register as a specialist
register_agent(role="elasticsearch_ops", description="ES cluster management")

# Delegate work
delegate_task(
    task_description="Optimize slow queries",
    required_capabilities=["elasticsearch_ops"]
)

# Share discoveries
broadcast_discovery(
    message="Found memory leak in scraper",
    category="infrastructure",
    severity="warning"
)

Skills.sh Integration

# Search for skills
search_skills_sh(query="kubernetes deployment")

# Install a skill and sync to vault
install_skill_from_skills_sh(
    skill_id="vercel/next-learn",
    target_tool="claude",
    sync_to_vault=True
)

# List all installed skills
list_installed_skills()

# Get context-aware recommendations
recommend_skills(context="Building a React app with authentication")

Configuration Drift Detection

# Create snapshot
create_config_snapshot(
    system_id="elastic1",
    config_type="elasticsearch",
    config_content="<yaml>",
    file_path="/etc/elasticsearch/elasticsearch.yml"
)

# Detect drift
detect_config_drift(system_id="elastic1", threshold=0.8)

# Get trend analysis
get_drift_trend_analysis(system_id="elastic1", days_back=7)

Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  Claude Code    │────▶│  Remote Server  │────▶│    ChromaDB     │
│  (MCP Client)   │ SSE │  (port 8900)    │     │  (Vector Store) │
└─────────────────┘     └────────┬────────┘     └─────────────────┘
                                 │
                    ┌────────────┼────────────┐
                    ▼            ▼            ▼
              ┌──────────┐ ┌──────────┐ ┌──────────┐
              │  Redis   │ │  Sync    │ │  Teams   │
              │ (Cache)  │ │ Service  │ │ & Vaults │
              └──────────┘ └──────────┘ └──────────┘

Services

Service Port Purpose
Remote Server 8900 HTTP/SSE for MCP clients
Sync Service 8899 Machine-to-machine sync
Memory Server stdio Local MCP integration

Systemd Installation

# Install all services
sudo bash services/install-services.sh

# Or individual services
sudo systemctl enable haivemind-remote-mcp
sudo systemctl start haivemind-remote-mcp

Requirements

  • Python 3.10+
  • Redis server
  • ChromaDB

API Endpoints

Endpoint Method Description
/health GET Service health check
/sse GET SSE stream for MCP
/mcp POST Streamable HTTP for MCP
/api/tools GET List available tools

Security

  • Confidentiality Levels: PII/confidential data never leaves local machine
  • Vault Encryption: XOR-based encryption (upgradeable to AES-GCM)
  • Audit Logging: All vault access logged with actor/reason
  • JWT Authentication: API endpoint protection
  • Tailscale Integration: Secure machine-to-machine communication

License

MIT License

Contributing

Contributions welcome. Please ensure:

  • No PII or internal infrastructure details in commits
  • Tests pass for confidentiality filtering
  • Documentation updated for new features

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured