neurohive

neurohive

Multi-agent memory intelligence with expertise tracking and conflict detection

Category
访问服务器

README

neurohive

Multi-agent memory intelligence — shared knowledge, expertise tracking, and conflict detection for AI agent teams.

npm version license node

Why

AI agents in teams forget everything and don't share knowledge. Multiple agents working on the same project re-discover the same facts, contradict each other, and have no collective memory. One agent learns the API timeout is 30 seconds; another assumes 60. Both conclusions sit in separate sessions, never compared.

neurohive wraps neuromcp with a shared intelligence layer. Every memory stored by any agent becomes visible to the team. Searches come back annotated with who discovered what and when. New agents onboard with the team's existing knowledge already loaded. Contradictions get flagged before they cause incidents.

Before & After

neuromcp alone With neurohive
Agent knowledge Isolated per session Shared across team, attributed
Search results Raw results Annotated with "discovered by Agent-X, 3 min ago"
New agent onboarding Starts from zero Primed with team's top knowledge
Expertise Unknown who knows what Tracked: "Agent-Backend: API (31), Auth (22)"
Contradictions Silently coexist Flagged: "Backend says 30s timeout, DevOps says 60s"
Team overview None Dashboard with knowledge map, gaps, activity

Quick Start

npx neurohive

Drop-in replacement for npx neuromcp. Use the same MCP config — just swap the command. All neuromcp tools and resources are available unchanged, plus three new neurohive tools, five new resources, and automatic cross-agent annotation.

Features

Cross-Agent Annotations

Every search result is annotated with provenance: which agent stored it, how long ago, and how many times it's been retrieved. Agents can see at a glance whether a memory came from a trusted teammate or an unknown source.

Agent Priming

When an agent starts up, it reads the hivemind://priming resource to load the team's top knowledge, recent activity, and known gaps. No cold starts.

Expertise Tracking

Every time an agent stores a memory, neurohive updates that agent's expertise profile — tracking which categories they contribute to most. Use hivemind_expertise to route questions: "who knows the most about authentication?"

Conflict Detection

When two agents store contradictory claims about the same fact, neurohive flags it as a conflict. Conflicts surface in hivemind_conflicts and in the dashboard so the team can resolve them explicitly rather than letting stale data propagate silently.

Dashboard

A single command gives a live view of the collective knowledge base: total memories, active agents, top categories, recent activity, unresolved conflicts, and knowledge gaps.

Installation

Claude Code

{
  "mcpServers": {
    "neurohive": {
      "command": "npx",
      "args": ["neurohive"],
      "env": {
        "HIVEMIND_COMPANY": "my-project",
        "HIVEMIND_AGENT": "Agent-Backend",
        "HIVEMIND_AGENT_ROLE": "backend"
      }
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "neurohive": {
      "command": "npx",
      "args": ["-y", "neurohive"],
      "env": {
        "HIVEMIND_COMPANY": "my-project",
        "HIVEMIND_AGENT": "Agent-Frontend"
      }
    }
  }
}

Cursor

{
  "mcpServers": {
    "neurohive": {
      "command": "npx",
      "args": ["neurohive"],
      "env": {
        "HIVEMIND_COMPANY": "my-project",
        "HIVEMIND_AGENT": "Cursor-Agent"
      }
    }
  }
}

Paperclip Mode

When Paperclip is running locally, neurohive detects it automatically and reads the company, agent, and role from the Paperclip API. No extra env vars needed — the company namespace is set from the active Paperclip company, and each agent is identified by its Paperclip identity.

Manual fallback (when Paperclip is not running):

HIVEMIND_PAPERCLIP_URL=http://localhost:3100   # default
HIVEMIND_COMPANY=my-project
HIVEMIND_AGENT=Agent-Backend
HIVEMIND_AGENT_ROLE=backend

CLI Commands

Command Description
neurohive Start as MCP server (stdio)
neurohive dashboard Print team knowledge dashboard
neurohive expertise [topic|agent_id] Show expertise map or look up a topic/agent
neurohive conflicts [--all] List unresolved conflicts (--all includes resolved)
neurohive doctor Health check: DB path, agent config, Paperclip status

Configuration

neurohive variables

Variable Default Description
HIVEMIND_COMPANY "" Company/project name. Sets the shared namespace to company-<name>
HIVEMIND_AGENT "" Agent identifier (e.g. Agent-Backend, Agent-DevOps)
HIVEMIND_AGENT_ROLE "" Agent role label for priming context
HIVEMIND_PAPERCLIP_URL http://localhost:3100 Paperclip API URL for auto-detection
HIVEMIND_PRIMING_COUNT 10 Number of top memories to include in priming context
HIVEMIND_PRIMING_CATEGORIES "" Comma-separated categories to prioritize in priming

neuromcp pass-through

All NEUROMCP_* environment variables pass through unchanged. Key ones:

Variable Default Description
NEUROMCP_DB_PATH ~/.neuromcp/memory.db SQLite database path
NEUROMCP_LOG_LEVEL info Log level: debug, info, warn, error
NEUROMCP_EMBEDDING_PROVIDER local Embedding provider: local, openai, ollama
OPENAI_API_KEY Required when using OpenAI embeddings

MCP Surface

neurohive exposes 16 tools, 18 resources, and 3 prompts.

Tools

13 neuromcp tools (unchanged):

Tool Description
store_memory Store memory with hive annotations
search_memory Hybrid search with cross-agent attribution
recall_memory Recall by ID, namespace, category, or tags
forget_memory Soft-delete memories by filter
consolidate Merge duplicates, decay stale, prune low-value
memory_stats Count, category, and trust-level statistics
export_memories Export as JSONL or JSON
import_memories Import with deduplication
backfill_embeddings Recompute missing embeddings
create_entity Create/update knowledge graph entity
create_relation Link entities in knowledge graph
query_graph Traverse knowledge graph
search_claims Search atomic extracted claims

3 neurohive tools:

Tool Description
hivemind_status Team dashboard: agents, categories, conflicts, activity
hivemind_expertise Query who knows what; get agent expertise profiles
hivemind_conflicts List/resolve inter-agent contradictions

Resources

13 neuromcp resources (memory, graph, priming, stats) plus 5 neurohive resources:

Resource URI Description
hivemind://priming Startup context: dashboard + top knowledge for onboarding
hivemind://expertise All agent expertise data as JSON
hivemind://conflicts Unresolved conflicts as JSON
hivemind://dashboard Full dashboard data as JSON
hivemind://agent/{agentId} Expertise profile for a specific agent

Prompts

3 neuromcp prompts: store_memory_prompt, search_memory_prompt, session_summary_prompt.

Paperclip Integration

neurohive probes HIVEMIND_PAPERCLIP_URL on startup. If the Paperclip API responds:

  1. Namespace is set to company-<companyId> — all agents on the same Paperclip company share one knowledge base.
  2. Agent identity is read from the Paperclip agent record, so each agent in a fleet is automatically identified.
  3. Role is pulled from the agent definition, used to enrich priming context ("you are the backend agent; here's what your team knows").

If Paperclip is not running, neurohive falls back to HIVEMIND_COMPANY / HIVEMIND_AGENT env vars with no loss of functionality.

Requirements

Requirement Required Notes
Node.js >= 18 Yes ESM runtime
neuromcp Yes Installed automatically as a dependency
Paperclip No Auto-detected when running at the configured URL
OpenAI API key No Only if using OpenAI embeddings

Platform Support

Platform Status
macOS Full support
Linux Full support
WSL2 Supported
Windows (native) Not supported

FAQ

Is this a replacement for neuromcp? Yes and no. neurohive runs on top of neuromcp and re-exports all its tools, resources, and prompts. If you run a single agent, it's functionally identical to neuromcp with a few extra tools. The value emerges with two or more agents sharing the same HIVEMIND_COMPANY namespace.

Do all agents share one database? Yes — agents in the same company namespace share a database via the shared filesystem path (NEUROMCP_DB_PATH). This works naturally in multi-agent setups on the same machine (Paperclip, dmux, parallel Claude Code sessions). For distributed setups, point all agents to a shared NFS or networked path.

What counts as a conflict? When two memories from different agents make contradictory claims about the same subject. Conflict detection runs at store time using the cognitive claims extracted from memory content. You can tune sensitivity or disable it via the neuromcp config.

Will it break my existing neuromcp setup? No. neurohive passes all existing NEUROMCP_* env vars through unchanged and writes to the same database. Switching back to npx neuromcp works at any time.

How does priming work? At startup, agents that read hivemind://priming receive a formatted summary: team size, top categories, most active agents, recent memories, and any open conflicts. This is designed to be included in a system prompt or read via a hook on session start.

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选