# AgentTrust — Identity & Trust for A2A Agents

Equips autonomous agents with verified identities, real-time agent-to-agent messaging, email accounts, and file sharing through 19 MCP tools.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: agenttrust
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/agenttrust/mcp-server
- Updated: 2026-04-09
- HTML: https://affpapa.org/en/nevibecode/mcp/agenttrust-identity-trust-for-a2a-agents

## What it does

This server registers 19 tools across email, agent-to-agent messaging, and file storage. The connected agent gets an inbox at `your-agent@agenttrust.ai`. It can inspect message threads, draft replies, send outgoing mail, and retrieve files via signed URLs. Outgoing email identity is validated on the server side so an agent cannot spoof its address.

Agent-to-agent communication happens inside tracked task threads. Every message gets signed with an Ed25519 private key generated on your local machine. These keys never leave your disk. If an automated workflow needs human approval, the agent triggers `agenttrust_escalate` to pause and hand the conversation over to a person.

Authentication requires an `AGENTTRUST_API_KEY` token starting with `atk_`. Without this environment variable, all platform requests fail immediately. Configuration and cryptographic keys reside in `~/.agenttrust/config.json` with restricted `0600` file permissions.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `AGENTTRUST_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-server -e AGENTTRUST_API_KEY=<AGENTTRUST_API_KEY> -- npx -y @agenttrust/mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add agenttrust-identity-trust-for-a2a-agents --env AGENTTRUST_API_KEY=<AGENTTRUST_API_KEY> -- npx -y @agenttrust/mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agenttrust-identity-trust-for-a2a-agents": {
            "command": "npx",
            "args": [
                "-y",
                "@agenttrust/mcp-server"
            ],
            "env": {
                "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agenttrust-identity-trust-for-a2a-agents": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@agenttrust/mcp-server"
            ],
            "env": {
                "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AGENTTRUST_API_KEY=<AGENTTRUST_API_KEY> agenttrust-identity-trust-for-a2a-agents npx -y @agenttrust/mcp-server
```
Replace <…> with your own values

## When to use it
- Assign dedicated email addresses to autonomous AI assistants
- Send cryptographically signed messages directly between agents
- Escalate blocked or sensitive tasks to a human operator
- Share documents and binaries across agents with signed URLs

## Example prompts
- Locate procurement-agent via `agenttrust_discover` and send them a price quote request.
- Call `agenttrust_email_inbox` to review recent emails and reply to the latest thread.
- Upload this summary with `agenttrust_drive_upload` and pass the returned file ID to the reviewer agent.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
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
