Skip to content
MCP server

MCP Tenant Pair

TypeScript library and demo MCP server for shared state between paired or grouped users

Runs locally

MCP Tenant Pair is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (5 tools)
Version
0.1.3

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "tenant-pair": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tenant-pair-demo"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About MCP Tenant Pair

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.

Tools this server provides (12)

Taken from the project documentation; the running server may differ.

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_pairName suggests: changes
Creates a new pair.
invite_memberName suggests: changes
Creates an invite for a pair.
accept_inviteName suggests: changes
Accepts an invite to join a pair.
list_membersName suggests: reads
Lists the members of a pair.
set_member_preferencesName suggests: changes
Stores a member's private preferences.
get_member_constraintsName suggests: reads
Reads a member's own constraints.
get_shared_stateName suggests: reads
Reads state shared by the pair.
set_shared_stateName 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.

What it does

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

Pricing

Open source

MIT licensed

MCP Tenant Pair 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.

How AIPoweredBot checks servers