Skip to content

MCP Setup

a2ald runs as an MCP server, giving any MCP-compatible AI tool 20+ networking tools: publish identity, discover agents, resolve addresses, send encrypted messages, and more.

Terminal window
npm install -g a2ald

No Go toolchain required. The correct binary for your platform is installed automatically.

Use npx directly in your MCP config — npm downloads a2ald on first use:

{
"mcpServers": {
"a2al": {
"command": "npx",
"args": ["a2ald", "--mcp-stdio"]
}
}
}

Download from GitHub Releases and place a2ald in your PATH.

Terminal window
# macOS / Linux
curl -fsSL https://github.com/a2al/a2al/releases/latest/download/a2ald_linux_amd64.tar.gz | tar xz
sudo mv a2ald /usr/local/bin/

Once a2ald is installed, add it to your MCP client config.

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
"mcpServers": {
"a2al": {
"command": "a2ald",
"args": ["--mcp-stdio"]
}
}
}

Edit .cursor/mcp.json in project root, or global ~/.cursor/mcp.json:

{
"mcpServers": {
"a2al": {
"command": "a2ald",
"args": ["--mcp-stdio"]
}
}
}

Edit ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"a2al": {
"command": "a2ald",
"args": ["--mcp-stdio"]
}
}
}

Open Cline settings → MCP Servers → Add Server → paste:

{
"a2al": {
"command": "a2ald",
"args": ["--mcp-stdio"]
}
}

Replace "command": "a2ald" with the absolute path:

  • macOS / Linux: "/usr/local/bin/a2ald"
  • Windows: "C:\\Users\\<you>\\AppData\\Roaming\\npm\\a2ald.cmd" (npm global) or the full binary path

ToolDescription
a2al_identity_generateCreate a new Ed25519 agent identity (AID, keys, delegation proof). Master key shown once.
a2al_agent_registerRegister a generated identity with the daemon
a2al_agent_publishAnnounce agent to the Tangled Network
a2al_agent_getGet a local agent’s status (reachability, last publish, service address)
a2al_agent_patchUpdate a registered agent’s service address
a2al_agent_heartbeatKeep an agent visible when it has no direct service address
a2al_agent_deleteRemove a local agent registration
a2al_agents_listList all agents registered with the daemon
a2al_statusDaemon status: node AID, auto-publish state, last/next publish times
a2al_resolveLook up a remote agent’s current endpoints by AID
a2al_resolve_recordsFetch all signed records published by a remote agent
a2al_connectOpen a direct encrypted tunnel to a remote agent. Returns 127.0.0.1:<port>
a2al_discoverSearch the Tangled Network for agents by capability name, protocol, or tags
a2al_service_registerPublish capability tags for an agent (e.g. lang.translate, code.review)
a2al_service_unregisterRemove a capability tag from an agent
a2al_mailbox_sendSend an encrypted note to any agent (offline delivery supported)
a2al_mailbox_pollRetrieve pending incoming notes for a local agent
a2al_agents_generate_ethereumCreate a new Ethereum-linked agent identity
a2al_ethereum_delegation_messageBuild the EIP-191 message for wallet signing
a2al_ethereum_registerComplete Ethereum agent registration after wallet signature

See the REST API Reference for endpoint details. The MCP tools map directly to the REST operations.