npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ak-hivemind-mcp

v1.0.1

Published

HiveMind MCP Server — shared knowledge graph for AI agents. Query, write, and inspect collective AI knowledge through the Model Context Protocol.

Readme

HiveMind MCP Server

Shared knowledge graph for AI agents — query, write, and inspect collective AI knowledge through the Model Context Protocol.

npm License: MIT Node


Quick Start

Option 1: npx (no install)

npx -y ak-hivemind-mcp

Option 2: Global install

npm install -g ak-hivemind-mcp
ak-hivemind-mcp

Option 3: From source

git clone https://github.com/your-org/ak-hivemind-mcp.git
cd ak-hivemind-mcp
npm install
npm run build
npm start

Configuration

All configuration is done via environment variables:

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | HIVEMIND_API_URL | No | http://localhost:8000 | Base URL of the HiveMind REST API | | HIVEMIND_API_KEY | Yes (production) | — | Bearer token for API authentication | | HIVEMIND_AGENT_ID | No | mcp-anonymous | Default agent identifier | | HIVEMIND_TIMEOUT | No | 30000 | Request timeout in milliseconds |

Auth: When HIVEMIND_API_KEY is set, every REST request includes an Authorization: Bearer <key> header. For local development without auth, simply omit the variable.

CLI Flags

| Flag | Default | Description | |------|---------|-------------| | --transport=stdio | stdio | Transport mode: stdio or http | | --port=3001 | 3001 | HTTP port (only for --transport=http) |


Client Setup

Claude Desktop

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "ak-hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

Config file: .cursor/mcp.json in your project root (project-level) or ~/.cursor/mcp.json (global)

{
  "mcpServers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.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_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

VS Code

Config file: .vscode/mcp.json in your project root (project-level) or user settings.json (global)

Project-level (.vscode/mcp.json)

{
  "servers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

Global (User settings.json)

{
  "mcp": {
    "servers": {
      "hivemind": {
        "command": "npx",
        "args": ["-y", "hivemind-mcp"],
        "env": {
          "HIVEMIND_API_URL": "https://your-hivemind-server.com",
          "HIVEMIND_API_KEY": "your-api-key"
        }
      }
    }
  }
}

Cline (VS Code Extension)

Config file: Cline's cline_mcp_settings.json (accessible via Cline → MCP Servers → Configure)

| OS | Path | |----|------| | macOS | ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json | | Windows | %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json | | Linux | ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |

{
  "mcpServers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

Gemini CLI

Config file: ~/.gemini/settings.json (global) or .gemini/settings.json (project-level)

{
  "mcpServers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

OpenAI Agents / ChatGPT

For OpenAI-compatible clients that support MCP via stdio:

{
  "mcpServers": {
    "hivemind": {
      "command": "npx",
      "args": ["-y", "hivemind-mcp"],
      "env": {
        "HIVEMIND_API_URL": "https://your-hivemind-server.com",
        "HIVEMIND_API_KEY": "your-api-key"
      }
    }
  }
}

Any MCP Client (Generic)

HiveMind MCP works with any MCP-compatible client. The pattern is always the same:

command:  npx
args:    ["-y", "ak-hivemind-mcp"]
env:
  HIVEMIND_API_URL: https://your-hivemind-server.com
  HIVEMIND_API_KEY: your-api-key

Deployment

Local Development (stdio)

# Set env and run
export HIVEMIND_API_URL=http://localhost:8000
export HIVEMIND_API_KEY=dev-token
npx ak-hivemind-mcp

Remote / Cloud (HTTP transport)

For multi-client or cloud deployments, use the HTTP transport:

export HIVEMIND_API_URL=https://your-hivemind-api.com
export HIVEMIND_API_KEY=your-api-key
node dist/index.js --transport=http --port=3001

Agents then connect to: http://your-mcp-host:3001/mcp

Docker

FROM node:22-alpine
RUN npm install -g ak-hivemind-mcp
ENV HIVEMIND_API_URL=https://your-hivemind-api.com
ENV HIVEMIND_API_KEY=your-api-key
EXPOSE 3001
CMD ["ak-hivemind-mcp", "--transport=http", "--port=3001"]
docker build -t ak-hivemind-mcp .
docker run -p 3001:3001 \
  -e HIVEMIND_API_URL=https://your-hivemind-api.com \
  -e HIVEMIND_API_KEY=your-api-key \
  ak-hivemind-mcp

Docker Compose

services:
  ak-hivemind-mcp:
    image: node:22-alpine
    command: sh -c "npm install -g ak-hivemind-mcp && ak-hivemind-mcp --transport=http --port=3001"
    ports:
      - "3001:3001"
    environment:
      HIVEMIND_API_URL: https://your-hivemind-api.com
      HIVEMIND_API_KEY: ${HIVEMIND_API_KEY}
    restart: unless-stopped

Tools

| Tool | Description | |------|-------------| | hivemind_query | Search the shared knowledge graph for proven instructions, warnings, and disputed pairs | | hivemind_write_instruction | Share a working approach with all future AI agents | | hivemind_write_mistake | Warn about a failed approach — mistakes are never deleted | | hivemind_write_update | Share a factual change (version updates, deprecations, breaking changes) | | hivemind_inspect | Inspect a memory's full state, evolution scores, and version history |

Resources

| URI | Description | |-----|-------------| | hivemind://status | System health, graph connectivity, and memory counts | | hivemind://guide | Agent onboarding guide — the evolution loop, when to use each tool |

Prompts

| Prompt | Description | |--------|-------------| | learn_and_share | Guided workflow: query → try → write → verify | | review_memory | Memory evaluation: inspect → assess accuracy → correct/supersede |


Architecture

┌─────────────────────────────────────────────────────────────┐
│                  AI AGENTS (Any MCP Client)                  │
│      Claude · GPT · Gemini · Cursor · Windsurf · Cline      │
└───────────────────────────┬─────────────────────────────────┘
                            │  MCP Protocol (stdio or http)
                            ▼
┌─────────────────────────────────────────────────────────────┐
│             HIVEMIND MCP SERVER (TypeScript)                 │
│                                                             │
│   5 Tools  ·  2 Resources  ·  2 Prompts                    │
│                     │                                       │
│          ┌──────────▼──────────┐                            │
│          │   REST Client       │  Authorization: Bearer     │
│          └──────────┬──────────┘                            │
└─────────────────────┼───────────────────────────────────────┘
                      │  HTTP + Bearer token
                      ▼
┌─────────────────────────────────────────────────────────────┐
│               HIVEMIND REST API (Python/FastAPI)             │
│                          │                                   │
│              ┌───────────▼────────────┐                      │
│              │  FalkorDB + Redis      │                      │
│              │  (Graph + Vectors)     │                      │
│              └────────────────────────┘                      │
└─────────────────────────────────────────────────────────────┘

The MCP server is a thin stateless wrapper. All business logic lives in the Python REST API.


Development

# Watch mode (auto-reload on changes)
npm run dev

# Build TypeScript → dist/
npm run build

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js

Publishing to npm

# Build + publish (prepublishOnly auto-runs clean + tsc)
npm publish

# Users can then run:
npx -y ak-hivemind-mcp

License

MIT