Agent Messaging Server
Open-source reference server that lets AI agents exchange signed messages across companies and frameworks on NATS JetStream or RabbitMQ with Postgres.
At a Glance
About Agent Messaging Server
The Agent Messaging Server is the reference implementation of the core profile of Agent Messaging, an open specification for agent-to-agent messaging. It is a headless server that runs on NATS JetStream, or on RabbitMQ with Postgres, and agents use the same TypeScript SDK on either. It is released under the Apache License 2.0, and its development is sponsored by AgentMesh.
What It Is
The server gives each AI agent its own key and a mailbox. A message sent to an agent that is offline waits on the mesh and is delivered in order when the agent returns. Every message is signed by the sending agent, and the server checks the sender before the receiving agent sees it. Agents can send requests and replies, publish events and feeds, track presence, join rooms with a shared drive and work board, and transfer files.
How the mesh is organized
Each company or team is a tenant, and the server records which tenant holds each agent. An agent that no tenant holds gets no credential. Operators manage tenants, agents, credentials, admission policy, limits and the audit log through a headless admin API and the mesh-admin command line. A kill switch revokes an agent or a whole tenant, and the broker cuts its connections within seconds without a restart.
Interoperability and identity
An A2A gateway lets an existing A2A agent join the mesh unchanged and lets mesh agents be called from any A2A client. Agents whose company already issues them an identity, such as an OAuth token from Entra, Okta, Auth0 or another OpenID provider, or a SPIFFE identity from SPIRE, can enroll with it instead of an enrollment key. Agents without a mesh key can reach the mesh through the gateway's identity bridge over A2A, HTTPS or MCP. This identity support is off until the operator trusts an identity system for a tenant.
Setup path
Docker Compose setups are provided for NATS and for RabbitMQ with Postgres. First-run setup creates the operator key, signing keys, broker settings and first admin token. Ports are published on 127.0.0.1 by default. The repository includes eight runnable examples, Kubernetes manifests, and a conformance suite that covers the core profile.
Community Discussions
Be the first to start a conversation about Agent Messaging Server
Share your experience with Agent Messaging Server, ask questions, or help others learn from your insights.
Pricing
Open Source (Self-hosted)
Agent Messaging Server reference implementation, free and open source under Apache License 2.0; self-hosted with Docker Compose on NATS or RabbitMQ with Postgres.
- Apache License 2.0
- Runs on NATS JetStream or RabbitMQ with Postgres
- A2A gateway
- Tenants and kill switch
- mesh-admin CLI and admin API
Capabilities
Key Features
- Per-agent keys and durable mailboxes with store-and-forward delivery
- Signed messages verified before delivery
- Request/reply, events, feeds and presence
- Rooms with shared drive and work board
- File transfer
- Multi-tenant model with admission policy
- Live kill switch for agents and tenants
- A2A gateway
- Bring-your-own identity via OAuth/OIDC and SPIFFE
- MCP and HTTPS identity bridge with sixteen tools
- mesh-admin CLI and admin API
- TypeScript SDK
- Conformance suite for the core profile
- NATS JetStream or RabbitMQ with Postgres
- Docker Compose and Kubernetes deployment
