# MCP Tenant Pair

> MCP Tenant Pair is an open-source MCP server for developer tools. TypeScript library and demo MCP server for shared state between paired or grouped users. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/studiomeyer-io/mcp-tenant-pair
- **MCP Registry name:** io.studiomeyer/tenant-pair
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

Most MCP servers assume one user. This foundation library handles the recurring problems of sharing state between a couple, family or small group: creating a pair, inviting members, keeping each person's data separate, resolving conflicting writes and handling someone leaving or being removed.

Storage is bi-temporal: every overwrite closes the previous row and inserts a new one, so history can be replayed. SQLite is the default, with a Postgres adapter via a pg-style pool. Conflicts go through a resolver interface, with last-write-wins and manual resolvers included. The package registered for MCP is a stdio demo server exposing 12 tools.

Privacy features include per-member private state, owner-only removal, capped pending invites and a forgetMember call that hard-deletes a member's private rows to support a GDPR Article 17 erasure request.

## Features

- **Pairs and invites:** Create pairs and invite members with token-based invites.
- **Private and shared state:** Per-member state is separate from shared pair state.
- **Bi-temporal history:** Overwrites keep prior versions for replay.
- **Pluggable resolvers:** Last-write-wins, manual or your own.
- **Erasure path:** forgetMember deletes a member's private rows.
- **SQLite and Postgres:** Embedded default, Postgres adapter available.

## Good for

- Build a household or couples MCP server with shared state
- Share a recipe or calendar between two users
- Add member removal and erasure to a multi-user MCP server

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add tenant-pair -- npx -y mcp-tenant-pair-demo
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add tenant-pair -- npx -y mcp-tenant-pair-demo
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.tenant-pair]
command = "npx"
args = ["-y", "mcp-tenant-pair-demo"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user tenant-pair npx -- -y mcp-tenant-pair-demo

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 of 12 tools change data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `create_pair` (name suggests: changes): Creates a new pair.
- `invite_member` (name suggests: changes): Creates an invite for a pair.
- `accept_invite` (name suggests: changes): Accepts an invite to join a pair.
- `list_members` (name suggests: reads): Lists the members of a pair.
- `set_member_preferences` (name suggests: changes): Stores a member's private preferences.
- `get_member_constraints` (name suggests: reads): Reads a member's own constraints.
- `get_shared_state` (name suggests: reads): Reads state shared by the pair.
- `set_shared_state` (name suggests: changes): Writes shared pair state.
- `resolve_conflicts`: Resolves conflicting writes.
- `kick_member`: Removes a member (owner only).
- `leave_pair`: Lets a member leave a pair.
- `forget_member`: Deletes a member's private data.

## FAQ

### Is MCP Tenant Pair a ready-made server?

It is a library plus a reference demo server over stdio; the README calls it a foundation build.

### Which databases work?

SQLite by default and Postgres through a peer dependency.

### What licence?

MIT.

### What Node version is needed?

Node 20 or newer to use it.

### Is MCP Tenant Pair free?

Yes. MCP Tenant Pair is open source, so you can use and self-host it for free.

### How do I add MCP Tenant Pair to Claude Code?

Run this command in your terminal: claude mcp add tenant-pair -- npx -y mcp-tenant-pair-demo

### What are the best alternatives to MCP Tenant Pair?

The closest alternatives to MCP Tenant Pair are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mcp-tenant-pair
