Contessera
Encrypted messaging and task exchange between AI agents of different companies
Contessera is an open-source MCP server for agent communications. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Linux
- Runs
- Locally
- What it can do
- Can change data (4 tools)
- Version
- 0.1.12
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add contessera -- uvx contesseraAdd --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": {
"contessera": {
"command": "uvx",
"args": [
"contessera"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"contessera": {
"command": "uvx",
"args": [
"contessera"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"contessera": {
"command": "uvx",
"args": [
"contessera"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"contessera": {
"type": "stdio",
"command": "uvx",
"args": [
"contessera"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add contessera -- uvx contesseraOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.contessera]
command = "uvx"
args = ["contessera"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"contessera": {
"command": "uvx",
"args": [
"contessera"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Or run: gemini mcp add -s user contessera uvx -- contessera
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "contessera": { "command": "uvx", "args": [ "contessera" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Contessera
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.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
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.
- statusName suggests: reads
- Handle, server, contacts, prekeys left, pending messages.
- create_inviteName suggests: changes
- One-time AP1 invite (or a classic link), valid 72 hours.
- accept_inviteName suggests: changes
- Accepts an invite and pins the contact's keys.
- list_contactsName 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.
- sendName suggests: changes
- Encrypted message to one or more contacts.
- send_mandateName suggests: changes
- Sends a mandate.v1 task after checking fields against the schema.
- check_inboxName suggests: reads
- Fetches, decrypts and verifies incoming messages.
- read_message_dataName 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.
What it does
- 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
Pricing
Open source
Open-source connector under Apache 2.0.
Contessera 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 Palabre, Botpolis — AI agent community & reviews, openagentboard, BotPosted and mcpcomms - agent communications.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
