Skip to main content
Glama

n2n-nexus

Local-first MCP coordination hub from N2NS Lab for multi-AI assistant collaboration across IDEs, machines, and projects.

npm version npm total downloads license MCP Protocol node version

δΈ­ζ–‡η‰ˆ


One daemon. Many assistants. Shared project state.

n2n-nexus is an open-source Model Context Protocol (MCP) coordination server for developers and teams who use multiple AI coding assistants across IDEs, machines, and projects. Use it when Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, JetBrains, or other MCP-enabled clients need a shared local coordination layer instead of isolated per-chat context.

πŸ“š Contents

Related MCP server: Agentic Memory Server

πŸ’‘ What is n2n-nexus?

n2n-nexus gives AI assistants a shared coordination workspace. A long-running local daemon owns project state, meetings, messages, tasks, shared docs, and project assets. Lightweight MCP adapters connect each IDE or assistant to the same daemon.

  • Coordinate multiple AI assistants working on the same project.

  • Share project manifests, decisions, and assets across IDEs and machines.

  • Keep decisions, proposals, and updates in a local meeting and message log.

  • Run the daemon once; connect adapters from Windows, WSL, SSH hosts, or multiple editors.

  • Avoid giving each assistant broad filesystem or backend access.

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          n2n-nexus daemon            β”‚
β”‚  Standalone HTTP server Β· always on  β”‚
β”‚  Owns data, tools, tasks, messages   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ HTTP (NEXUS_ENDPOINT)
       β”Œβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”
       β–Ό       β–Ό       β–Ό
    MCP-A   MCP-B   MCP-C
   (Win)   (WSL)   (SSH/VM)
  Stateless adapter per IDE
  • Daemon is the source of truth: start it once and keep it running.

  • MCP adapters are stateless: each IDE starts an adapter through npx, then forwards tool calls to the daemon.

  • Cross-environment by design: point NEXUS_ENDPOINT at the same daemon from different machines or shells. The daemon binds to localhost by default; use --host 0.0.0.0 only on a trusted network.

πŸš€ Quick start

1. Start the daemon

npx n2n-nexus daemon --port 5688

2. Configure an MCP client

{
  "mcpServers": {
    "n2n-nexus": {
      "command": "npx",
      "args": ["-y", "n2n-nexus", "mcp"],
      "env": {
        "NEXUS_ENDPOINT": "http://127.0.0.1:5688"
      }
    }
  }
}

The adapter can start before the daemon. It loads the daemon tool list once the daemon becomes reachable.

Cross-environment endpoint examples

Scenario

NEXUS_ENDPOINT

Same machine

http://127.0.0.1:5688

WSL IDE to Windows daemon

http://host.docker.internal:5688

Windows IDE to WSL daemon

http://<WSL-IP>:5688

Remote machine

http://<Server-IP>:5688

πŸ› οΈ Toolset

The daemon exposes 21 tools, grouped by purpose:

Group

Tools

Purpose

Session & topology

register_session_context, get_global_topology

Declare the active project before other calls; read the project list or a detailed per-project subgraph.

Projects & assets

search_projects, update_project, rename_project, sync_project_assets, upload_project_asset

Find, update, and rename projects; sync manifests and internal docs; upload binary assets.

Global docs

sync_global_doc, update_global_strategy

Create or update shared global documents and the master strategy document.

Messaging

send_message, read_messages

Post and read meeting and global messages.

Meetings

start_meeting, end_meeting, archive_meeting, reopen_meeting

Open, close, archive, and reopen meeting sessions.

Tasks

create_task, get_task, list_tasks, cancel_task

Create and poll async background tasks.

Maintenance

host_maintenance, host_delete_project

Prune or clear system logs; delete a project.

See Tools reference for parameter schemas and call examples.

πŸ’Ύ Data storage

Default storage root:

Platform

Path

Linux / WSL

~/.n2n-nexus

Windows

%USERPROFILE%\.n2n-nexus

macOS

~/.n2n-nexus

Override with --root <path> or NEXUS_ROOT.

~/.n2n-nexus/
β”œβ”€β”€ global/
β”‚   β”œβ”€β”€ blueprint.md
β”‚   β”œβ”€β”€ docs_index.json
β”‚   └── docs/
β”œβ”€β”€ projects/
β”‚   └── {project-id}/
β”‚       β”œβ”€β”€ manifest.json
β”‚       β”œβ”€β”€ internal_blueprint.md
β”‚       └── assets/
β”œβ”€β”€ registry.json
└── nexus.db

🏷️ Project ID conventions

Project IDs follow [prefix]_[name].

Prefix

Category

Example

web_

Websites

web_datafrog.io

api_

Backend services

api_user-auth

mcp_

MCP servers

mcp_nexus

lib_

Libraries / SDKs

lib_crypto-core

chrome_

Chrome extensions

chrome_evisa-helper

vscode_

VS Code extensions

vscode_super-theme

desktop_

Desktop apps

desktop_main-hub

infra_

Infrastructure / DevOps

infra_k8s-config

doc_

Documentation

doc_coding-guide

πŸ’» CLI reference

# Start daemon
n2n-nexus daemon [--port 5688] [--root ~/.n2n-nexus] [--host 127.0.0.1]

# Start MCP adapter
NEXUS_ENDPOINT=http://127.0.0.1:5688 n2n-nexus mcp

Environment variables

Variable

Description

Default

NEXUS_ENDPOINT

Daemon URL for MCP adapter

http://127.0.0.1:5688

NEXUS_ROOT

Storage root for daemon

~/.n2n-nexus

NEXUS_HOST

Daemon bind host

127.0.0.1

NEXUS_INSTANCE_ID

Override MCP instance ID

auto-generated

πŸ” Security and governance notes

  • n2n-nexus stores coordination data locally by default.

  • Do not put secrets, credentials, customer data, or private tokens in meeting messages or project assets unless your local policy allows it.

  • Destructive tools such as project deletion should be used through explicit review workflows.

  • Exposing the daemon beyond localhost is an operational choice; restrict network access when using remote endpoints.

  • Treat project manifests and internal docs as potentially sensitive implementation data.

🌐 Real-world example

The docs include a recorded multi-agent session that shows n2n-nexus in action. Four AI assistants β€” running in different IDEs and assigned to different projects β€” used a shared n2n-nexus daemon to coordinate in real time.

What to look for in the session:

  • Shared coordination space: each assistant registered its active project with register_session_context, then read and wrote to the same daemon throughout the session.

  • Structured message categories: PROPOSAL, DECISION, UPDATE, and MEETING_START tags let assistants signal intent, not just post text.

  • SYSTEM entries: lines like [Augment] Synced global doc: edge-sync-protocol-v1 record actual tool calls β€” the daemon logging its own state changes into the meeting stream.

  • Async debugging across instances: when one assistant hit an auth error, others responded with fixes in real time, each from their own IDE context.

  • Two output formats: the discussion log is the raw chronological stream; the meeting minutes are a structured summary derived from it, showing how a long session distills into decisions and action items.

File

What it shows

Discussion Log

The full chronological stream: proposals, debug exchanges, decisions, and SYSTEM tool entries

Meeting Minutes

The structured output: participants, key decisions, test results, and action items

πŸ”§ Local development

git clone https://github.com/n2ns/n2n-nexus.git
cd n2n-nexus
npm install
npm run build

# Run daemon
node build/index.js daemon --root /tmp/nexus-test --port 5688

# Run MCP adapter
NEXUS_ENDPOINT=http://127.0.0.1:5688 node build/index.js mcp

πŸ“„ License

This project is licensed under the Apache-2.0 License.


Built by N2NS Lab, the open-source lab of datafrog.io for practical AI developer tools.

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

–Maintainers
–Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/n2ns/n2n-nexus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server