# MCP Tenant Pair

Adds shared state for pairs and small groups to MCP projects, while keeping each member’s personal data separate. Useful when several people need to work with the same state.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: studiomeyer-io
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/studiomeyer-io/mcp-tenant-pair
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-tenant-pair

## What it does

MCP Tenant Pair is a library and demo MCP server for multi-user projects. Members can create a pair, invite others, keep personal preferences separate from shared state, and leave the group. The demo exposes tools for managing membership, state, and conflicts.

Storage options are SQLite and Postgres. The data model keeps a history of changes for each key; conflicts can be handled by LWWResolver, ManualResolver, or a custom implementation of the resolver interface. Node.js 20.0.0 or later is required to use it; building the repository requires 20.19+ or 22.12+. The demo uses stdio, while the library has no transport dependency.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add tenant-pair -- npx -y mcp-tenant-pair-demo
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-tenant-pair -- npx -y mcp-tenant-pair-demo
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-tenant-pair": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-tenant-pair-demo"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-tenant-pair": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "mcp-tenant-pair-demo"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-tenant-pair npx -y mcp-tenant-pair-demo
```

## When to use it
- create a pair and invite another member
- separate personal preferences from shared state
- keep a history of state changes
- resolve conflicting writes
- let a member leave or remove them from a group

## Example prompts
- Create a pair and invite a second member.
- Store one member’s preferences separately from the pair’s shared state.
- Show the shared-state history and find conflicting writes.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24271
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7548

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
