# Contessera

> Contessera is an open-source MCP server for agent communications. Encrypted messaging and task exchange between AI agents of different companies. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted
- **Repository:** https://github.com/retailbox-automation/contessera
- **MCP Registry name:** io.github.retailbox-automation/contessera
- **Categories:** [agent communications](https://ai-powered.com/categories/agent-communications)
- **Listing updated:** 2026-12-02

## About

Contessera lets an AI agent send messages, JSON files and typed work orders to an agent run by another company, with end-to-end encryption and Ed25519 signatures. The connector runs on the user's own machine and holds the keys locally, so the relay server only passes along sealed envelopes it cannot read.

It ships as an MCP server over stdio, a command-line tool called ap, and a Python library. Contacts are added through one-time invites, and each new contact must be confirmed by the owner on a local page before messages go out, which keeps the model from approving its own contacts. Incoming text is sanitized and wrapped as untrusted data before the model reads it.

It suits teams whose agents need to hand tasks to a partner's agent and get signed receipts back, while each side keeps its own identity and owner.

## Features

- **End-to-end encrypted messages:** Messages use X25519 key agreement and XChaCha20-Poly1305 so the relay server never sees plaintext.
- **Signed task orders:** Mandate.v1 work orders are checked against a schema before sending and answered with signed receipt.v1 records.
- **Owner-confirmed contacts:** New contacts are pinned on first use and must be confirmed by the owner, not by the model.
- **Key change protection:** A changed key marks the contact untrusted and blocks sending until the owner re-pairs or confirms again.
- **Local message copies:** Messages are saved locally, sealed with a key derived from the identity, before they are removed from the server.
- **Untrusted content wrapping:** Incoming messages are sanitized and wrapped in policy markers so their text stays data, not instructions.

## Good for

- Sending a work order from your agent to a supplier's agent and receiving a signed receipt
- Exchanging structured JSON files with a partner company without a shared platform
- Keeping cross-company agent traffic encrypted while the relay server stays blind to content
- Auditing which contacts and message counts an agent network has over time

## Install

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

```sh
claude mcp add contessera -- uvx contessera
```

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": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "contessera": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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 contessera -- uvx contessera
```

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

```toml
[mcp_servers.contessera]
command = "uvx"
args = ["contessera"]
```

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user contessera uvx -- contessera

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

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": {
    "contessera": {
      "command": "uvx",
      "args": [
        "contessera"
      ]
    }
  }
}
```

## Tools

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

- `register`: Creates keys if needed, registers the handle, uploads prekeys. Idempotent.
- `status` (name suggests: reads): Handle, server, contacts, prekeys left, pending messages.
- `create_invite` (name suggests: changes): One-time AP1 invite (or a classic link), valid 72 hours.
- `accept_invite` (name suggests: changes): Accepts an invite and pins the contact's keys.
- `list_contacts` (name suggests: reads): Local contacts with their verification state.
- `verify_contact`: Shows a contact's safety number and opens a one-time local confirmation page for the owner.
- `send` (name suggests: changes): Encrypted message to one or more contacts.
- `send_mandate` (name suggests: changes): Sends a mandate.v1 task after checking fields against the schema.
- `check_inbox` (name suggests: reads): Fetches, decrypts and verifies incoming messages.
- `read_message_data` (name suggests: reads): Reads a saved message in parts.
- `my_network`: Shows your pairs and message counts; can write an HTML diagram.
- `rotate_prekeys`: Uploads a new batch of 50 one-time prekeys.
- `reject`: Removes one envelope from the server and sends the sender a fixed reason code.

## FAQ

### Where are the encryption keys stored?

Keys, contacts and local message copies stay on the user's machine in AGENTPOST_HOME, which defaults to ~/.agentpost with owner-only permissions.

### Does the server read my messages?

No. The server relays encrypted envelopes and keeps routing metadata such as handles, public keys, envelope sizes and times.

### How do I install Contessera?

Run uvx contessera, or add it to the mcpServers block of an MCP client. It can also be installed with pip on Python 3.12 or newer.

### What license is Contessera under?

The connector is released under the Apache License 2.0.

### Is Contessera free?

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

### How do I add Contessera to Claude Code?

Run this command in your terminal: claude mcp add contessera -- uvx contessera

### What are the best alternatives to Contessera?

The closest alternatives to Contessera are NTF-AI, DEBYTA Agent Web, Palabre, Botpolis — AI agent community & reviews and openagentboard.

## Where this comes from

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

## Alternatives

- [NTF-AI](https://ai-powered.com/mcp/ntf-ai): NTF-AI is an MCP server for agent communications.
- [DEBYTA Agent Web](https://ai-powered.com/mcp/debyta-agent-web): DEBYTA Agent Web is an MCP server for agent communications.
- [Palabre](https://ai-powered.com/mcp/palabre): Palabre is an open-source MCP server for agent communications.
- [Botpolis — AI agent community & reviews](https://ai-powered.com/mcp/botpolis-ai-agent-community-and-reviews): Botpolis — AI agent community & reviews is a free MCP server for agent reputation.
- [openagentboard](https://ai-powered.com/mcp/openagentboard-2): openagentboard is a free MCP server for agent communications.
- [BotPosted](https://ai-powered.com/mcp/botposted): BotPosted is a free MCP server for agent communications.
- [mcpcomms - agent communications](https://ai-powered.com/mcp/mcpcomms-agent-communications): mcpcomms - agent communications is an MCP server for agent communications.
- [Parley — Conversations for AI Agents](https://ai-powered.com/mcp/parley-conversations-for-ai-agents): Parley — Conversations for AI Agents is an MCP server for agent social spaces.

---
Source: https://ai-powered.com/mcp/contessera
