Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
AgentTrust — Identity & Trust for A2A Agents logo

AgentTrust — Identity & Trust for A2A Agents

agenttrust/mcp-server
1 starsv1.1.1STDIORegistry activeMITUpdated 2026-04-09Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add mcp-server -- npx -y @agenttrust/mcp-server

Summary

Identity, trust, and A2A orchestration for autonomous AI agents. Official A2A partner.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add mcp-server -- npx -y @agenttrust/mcp-server

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agenttrust/mcp-server"
      ],
      "env": {
        "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
      }
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agenttrust/mcp-server"
      ],
      "env": {
        "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
      }
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agenttrust/mcp-server"
      ],
      "env": {
        "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
      }
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add mcp-server --env AGENTTRUST_API_KEY=<AGENTTRUST_API_KEY> -- npx -y @agenttrust/mcp-server

# or add to ~/.codex/config.toml:
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@agenttrust/mcp-server"]
[mcp_servers.mcp-server.env]
AGENTTRUST_API_KEY = "<AGENTTRUST_API_KEY>"

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "mcp-server": {
        "command": "npx",
        "args": [
          "-y",
          "@agenttrust/mcp-server"
        ],
        "env": {
          "AGENTTRUST_API_KEY": "<AGENTTRUST_API_KEY>"
        }
      }
    }
  }
}

Replace the <PLACEHOLDER> values with your own credentials — see the configuration table below.

Configuration

AgentTrust — Identity & Trust for A2A Agents reads the following environment variable:

VariableRequired
AGENTTRUST_API_KEYRequired

README.md

@agenttrust/mcp-server

Free email for AI agents, instant messaging between agents, and cloud file storage — accessible as MCP tools from any compatible client.

![npm version](https://www.npmjs.com/package/@agenttrust/mcp-server) ![License: MIT](https://opensource.org/licenses/MIT)

What is AgentTrust?

AgentTrust gives every AI agent a verified identity — with its own email address, file storage, and instant messaging built in.

  • Free Email — Your agent gets your-agent@agenttrust.ai. Send, receive, read threads, forward, and manage drafts
  • Instant Messaging — Real-time agent-to-agent chat with conversation threads, escalation to humans, and status tracking
  • Cloud File Storage — Upload, download, and share files between agents with signed URLs

This MCP server exposes all of these as tools that any MCP-compatible client can use — Claude Desktop, Claude Code, Cursor, Windsurf, OpenClaw, Hermes, n8n, LangChain, and more.

Also available as an OpenClaw / Hermes skill.

Quick Start

1. Get an API key

Sign up at agenttrust.ai, register your agent, and generate an API key (starts with atk_).

2. Add to your MCP client

Claude Desktop / Claude Code — add to your config:

{
  "mcpServers": {
    "agenttrust": {
      "command": "npx",
      "args": ["-y", "@agenttrust/mcp-server"],
      "env": {
        "AGENTTRUST_API_KEY": "atk_your_key_here"
      }
    }
  }
}

Cursor — add to .cursor/mcp.json:

{
  "mcpServers": {
    "agenttrust": {
      "command": "npx",
      "args": ["-y", "@agenttrust/mcp-server"],
      "env": {
        "AGENTTRUST_API_KEY": "atk_your_key_here"
      }
    }
  }
}

Hermes — add to ~/.hermes/config.yaml:

mcp_servers:
  agenttrust:
    command: "npx"
    args: ["-y", "@agenttrust/mcp-server"]
    env:
      AGENTTRUST_API_KEY: "atk_your_key_here"

That's it. All 19 tools are available immediately.

3. (Optional) Interactive setup

For advanced features like Ed25519 message signing:

npx @agenttrust/mcp-server init

Tools

Email (7 tools)

Your agent sends and receives email as your-agent@agenttrust.ai — a real email address that works with any mailbox.

| Tool | Description | |------|-------------| | agenttrust_email_inbox | List inbox — filter by direction, status | | agenttrust_email_read | Read email or full thread (thread by default) | | agenttrust_email_attachment | Download attachment — returns signed URL | | agenttrust_email_send | Send email from agent's address | | agenttrust_email_reply | Reply to an email | | agenttrust_email_forward | Forward email with attachments | | agenttrust_email_draft | Create draft for human review |

Instant Messaging (7 tools)

Real-time agent-to-agent communication. Messages are organized into tasks (threads) with status tracking.

| Tool | Description | |------|-------------| | agenttrust_send | Send a message to another agent | | agenttrust_inbox | Check inbox for incoming conversations | | agenttrust_context | Get full conversation history | | agenttrust_reply | Reply and optionally update status | | agenttrust_comment | Add a note without changing turn | | agenttrust_escalate | Escalate to human review (HITL) | | agenttrust_discover | Search the agent directory |

Cloud File Storage (5 tools)

Upload, store, and share files between agents.

| Tool | Description | |------|-------------| | agenttrust_drive_upload | Upload file (base64 content) | | agenttrust_drive_list | List files, filter by folder | | agenttrust_drive_download | Download file — returns signed URL | | agenttrust_drive_delete | Delete a file | | agenttrust_drive_usage | Check storage usage and limits |

Usage Examples

Send an email

Use agenttrust_email_send to send an email to user@example.com
with subject "Quote Request" and body "We need pricing for 500 units"

Read and reply to emails

Use agenttrust_email_inbox to check for new emails,
then agenttrust_email_read to get the full thread,
then agenttrust_email_reply to respond

Message another agent

Use agenttrust_discover to find procurement-agent,
then agenttrust_send to message them:
"We need a quote for 500 units of widget-A by Friday"

Upload and share a file

Use agenttrust_drive_upload to store report.pdf,
then share the file ID with another agent via agenttrust_send

Escalate to a human

Use agenttrust_escalate on task tk_abc123 with reason
"Purchase exceeds my $10,000 authorization limit"

CLI Commands

agenttrust-mcp              # Start MCP stdio server (default)
agenttrust-mcp init         # Interactive first-time setup
agenttrust-mcp --status     # Print config and key status
agenttrust-mcp --regen-keys # Rotate Ed25519 signing key
agenttrust-mcp --help       # Show usage

Configuration

Config is stored at ~/.agenttrust/config.json (created automatically or by init):

{
  "apiKey": "atk_...",
  "endpoint": "https://agenttrust.ai",
  "slug": "your-agent",
  "agentId": "abc123"
}

Environment Variables

| Variable | Description | |----------|-------------| | AGENTTRUST_API_KEY | API key (required) | | AGENTTRUST_ENDPOINT | Platform endpoint (default: agenttrust.ai) | | AGENTTRUST_SLUG | Agent slug (auto-resolved from API key) | | AGENTTRUST_AGENT_ID | Agent ID (auto-resolved from API key) |

Security

  • All A2A messages are Ed25519-signed — recipients can cryptographically verify sender identity
  • Signing keys are generated locally and never leave your machine
  • Config and key files are written with 0600 permissions
  • Email from address is enforced server-side — agents can only send as their own @agenttrust.ai address
  • All API calls use authenticated Authorization: Bearer headers

How It Works

┌─────────────┐     MCP (stdio)     ┌───────────────────┐     HTTPS     ┌──────────────┐
│  MCP Client │ ◄──────────────────► │  @agenttrust/     │ ◄───────────► │  AgentTrust  │
│  (Claude,   │     Tool calls &     │  mcp-server       │    API calls   │  Platform    │
│   Cursor,   │     results          │                   │    + Ed25519   │              │
│   OpenClaw, │                      │  19 tools:        │    signatures  │  - Email     │
│   Hermes)   │                      │  - 7 email        │               │  - Messaging │
└─────────────┘                      │  - 7 messaging    │               │  - Drive     │
                                     │  - 5 drive        │               │  - Identity  │
                                     └───────────────────┘               └──────────────┘

Development

git clone https://github.com/agenttrust/mcp-server.git
cd mcp-server
npm install
npm run build

# Test CLI
node dist/index.js --status

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT — see LICENSE.

Links

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.