Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
QuantuLabs avatar

Hivemind

  • 1 repo stars
  • Updated January 26, 2026
  • QuantuLabs/Hivemind

Hivemind is an MCP server that queries OpenAI, Anthropic, and Google models and returns consensus-style responses your agent can use in one call.

About

Hivemind is a Model Context Protocol server from QuantuLabs that lets your coding agent send the same prompt to several major AI providers and return a consensus-oriented response. developers shipping with Claude Code or Cursor often hit cases where a single model’s answer feels shaky—pricing copy, security tradeoffs, schema design, or ambiguous requirements. Wiring Hivemind in stdio gives you a repeatable “second opinion at scale” without manually pasting into three chat UIs. You install the npm package, set API keys for OpenAI and Google (and use Anthropic where configured), and expose tools your agent can invoke during planning or implementation. It is integration-heavy rather than a drop-in skill: you are responsible for key management, cost across providers, and interpreting consensus output. Best when you already run MCP in daily workflow and want de-risked decisions without building your own router. Version 0.1.3 is early; treat outputs as advisory, not authoritative audit results.

  • stdio MCP server (@quantulabs/hivemind v0.1.3) for multi-provider LLM queries
  • Targets OpenAI (GPT-5.2 per env docs), Google Gemini, and Anthropic-style multi-model consensus
  • Requires OPENAI_API_KEY and GOOGLE_API_KEY as secret env vars on the npm package
  • Designed for aligned answers when one model might hallucinate or disagree
  • npm registry transport—fits Claude Code, Cursor, and other MCP-capable agents

Hivemind by the numbers

  • Data as of Jul 7, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env OPENAI_API_KEY=YOUR_OPENAI_API_KEY --env GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY hivemind -- npx -y @quantulabs/hivemind

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Package@quantulabs/hivemind
TransportSTDIO
AuthRequired
Last updatedJanuary 26, 2026
RepositoryQuantuLabs/Hivemind

What it does

Get agreement across OpenAI, Anthropic, and Google models before you commit to architecture, copy, or product decisions.

Who is it for?

Best when you already use MCP daily and want cheap insurance on high-stakes prompts without building a custom multi-LLM router.

Skip if: Skip if you only use one model with no API budget, or anyone and needs guaranteed factual verification rather than model agreement.

What you get

After you register Hivemind and add provider API keys, your agent can pull multi-model agreement on the same question inside your existing MCP workflow.

  • Registered stdio MCP server exposing multi-model query tools to your agent
  • Consensus-oriented responses aggregating major provider outputs for a shared prompt
  • Repeatable in-IDE workflow without manual copy-paste across vendor chat UIs

By the numbers

  • Package version 0.1.3 on npm as @quantulabs/hivemind
  • Documented env vars: OPENAI_API_KEY, GOOGLE_API_KEY (secrets)
  • Transport: stdio per MCP server schema 2025-12-11
README.md

Hivemind

License: MIT npm version

Multi-model AI consensus platform that queries GPT-5.2, Claude Opus 4.5, and Gemini 3 Pro simultaneously to deliver synthesized, high-confidence responses.


MCP Server for Claude Code

Use Hivemind directly in Claude Code to get perspectives from GPT-5.2 and Gemini 3 Pro. Claude acts as the orchestrator and synthesizes the responses.

Requirements

Note: No Anthropic API key needed - Claude is already your host!

Installation

npm install -g @quantulabs/hivemind
claude mcp add hivemind -- hivemind

Configuration

You need at least one API key, but both are recommended for better consensus:

Option 1: Paste directly (recommended)

/hive-config sk-proj-xxx...   # OpenAI key
/hive-config AIzaSy...        # Google key

Option 2: Config file

Create ~/.config/hivemind/.env:

OPENAI_API_KEY=sk-...
GOOGLE_API_KEY=AIza...

# Optional: Override default models
OPENAI_MODEL=gpt-5.1
GOOGLE_MODEL=gemini-2.5-flash

A .env.example template is included in the package.

Using with other MCP clients (non-Claude Code)

For standalone MCP usage, you can also add an Anthropic key to include Claude in the consensus:

ANTHROPIC_API_KEY=sk-ant-...

Disable Claude Code mode via /hive-config > Settings > Claude Code Mode.

Usage

/hive "Why is my WebSocket connection dropping?"

Claude orchestrates the consensus from GPT-5.2 and Gemini 3 Pro responses.

Available Tools

Tool Description
hivemind Query models and get synthesized consensus
configure_keys Set API keys (stored securely)
check_status Check configuration and active providers
configure_hive Toggle grounding search and settings
check_stats View token usage and cost statistics

Claude Code Commands

  • /hive <question> - Orchestrate multi-model consensus with Claude as the synthesizer
  • /hive-config - Configure API keys and settings
  • /hivestats - View usage statistics

Automatic Hivemind Fallback

Copy CLAUDE.md.example to your project's .claude/CLAUDE.md to enable automatic Hivemind consultation when Claude is stuck (after 3+ failed attempts).

Prompt Caching

All providers use optimized caching for cost reduction on follow-up queries:

Provider Type Savings Min Tokens
OpenAI Automatic 50% 1024
Gemini 2.5+ Implicit 90% -
Anthropic Explicit 90% 1024

Web Interface

A full-featured web app with solo mode, hivemind mode, and conversation history.

Quick Start

# Clone the repository
git clone https://github.com/QuantuLabs/hivemind.git
cd hivemind

# Install dependencies (requires Bun >= 1.0)
bun install

# Start development server
bun dev

Open http://localhost:3000, click the settings icon, and enter your API keys.

Features

  • Multi-Model Consensus: Query 3 leading AI models simultaneously
  • Deliberation Algorithm: Up to 3 rounds of refinement to reach consensus
  • Solo Mode: Chat with individual models (GPT, Claude, Gemini)
  • Hivemind Mode: Get synthesized responses from all models
  • Conversation History: Persistent chat sessions
  • Dark/Light Theme: Full theme support
  • Secure Storage: API keys encrypted with AES-GCM in browser

Security

  • API keys are encrypted using AES-GCM with PBKDF2 key derivation
  • Keys are stored locally in browser localStorage (never sent to servers)
  • Session persistence uses sessionStorage (cleared on browser close)

How Consensus Works

  1. Initial Query: All 3 models receive the same question
  2. Analysis: An orchestrator analyzes responses for agreements/divergences
  3. Refinement: If no consensus, models see other perspectives and refine (up to 3 rounds)
  4. Synthesis: Final response synthesizes agreed points and addresses divergences

Supported Models

OpenAI

  • GPT-5.2 (default)
  • GPT-5.1, GPT-5, GPT-5 Mini, GPT-5 Nano
  • O4 Mini

Anthropic

  • Claude Opus 4.5 (default)
  • Claude Sonnet 4.5, Claude Opus 4, Claude Sonnet 4

Google

  • Gemini 3 Pro (default)
  • Gemini 3 Flash, Gemini 2.5 Pro/Flash/Flash Lite, Gemini 2.0 Flash

Project Structure

hivemind/
├── apps/
│   └── web/              # Next.js 14 frontend
├── packages/
│   ├── core/             # Shared consensus logic & providers
│   └── mcp/              # Model Context Protocol server
└── .claude/              # Claude Code integration

Development

# Run all tests
bun test

# Run tests with coverage
bun test:coverage

# Build all packages
bun build

# Lint code
bun lint

License

MIT


Developed by QuantuLabs

Recommended MCP Servers

How it compares

MCP multi-LLM consensus integration, not a single-model skill or a curated skills marketplace.

FAQ

Who is Hivemind for?

Hivemind is for and small-team developers who run Claude Code, Cursor, Codex, or similar MCP clients and want OpenAI, Google, and Anthropic answers combined for tougher decisions.

When should I use Hivemind?

Use Hivemind when a single model’s answer affects scope, architecture, or copy and you want parallel provider queries before you ship or merge.

How do I add Hivemind to my agent?

Add the npm package @quantulabs/hivemind with stdio transport in your MCP config, set OPENAI_API_KEY and GOOGLE_API_KEY (and any Anthropic key your setup needs), then restart the agent so tools load.

AI & LLM Toolsagentsllmautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.