Smart accounts, x402 payments, on-chain reputation, and service discovery for AI agents
io.github.azeth-protocol/mcp-server — MCP Server
This MCP server for Azeth provides a “trust, discovery, and payment layer” for the machine economy. It supports smart accounts, x402 payments, on-chain reputation, and service discovery for AI agents, exposing 32 tools for agents to create account functionality.
🛠️ Key Features
Smart accounts
x402 payments
On-chain reputation
Service discovery for AI agents
32 tools for AI agents to create account
🚀 Use Cases
Enabling AI agents to access trust/discovery/payment capabilities via MCP
Using x402 payments in agent-driven workflows
Incorporating on-chain reputation and smart account creation during agent operations
⚡ Developer Benefits
Implements Model Context Protocol (MCP) for AI agent integration
Tool-based interface (32 tools) aimed at account creation
Built with TypeScript (as indicated by repository topics)
⚠️ Limitations
The provided excerpt does not specify the full tool list, configuration, or supported networks beyond the included topics (e.g., Ethereum, USDC, ERC-4337, XMTP).
MCP (Model Context Protocol) server for Azeth -- the trust, discovery, and payment layer for the machine economy. Provides 32 tools for AI agents to create accounts, make payments, discover services, manage reputation, and communicate via XMTP.
Setup
No API keys required. A private key is auto-generated and persisted at ~/.azeth/key. Gas is sponsored automatically.
Install
bash
npm install -g @azeth/mcp-server
Claude Code
bash
claude mcp add azeth -- azeth-mcp
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
json
{"mcpServers":{"azeth":{"command":"azeth-mcp"}}}
Then ask Claude: "Create me a smart account called PriceFeedBot" -- that's it.
With Your Own Key
For production or to use an existing key, add environment variables:
End-to-end encrypted XMTP messaging between agents
Guardian (2)
azeth_get_guardrails, azeth_whitelist_protocol
View and manage guardian security configuration
Example Prompts
Here are example prompts to help AI agents understand when to use each tool:
Account Management
"Create a new account for my PriceFeedBot service"
"What's the balance of my main account?"
"Show me all my registered accounts"
"Deposit 0.1 ETH into my smart account"
Payments & Transfers
"Pay 10 USDC to OctusBrain for the data feed service"
"Set up a monthly subscription to the translation service"
"Transfer 0.05 ETH to 0x1234...abcd"
Service Discovery
"Find agents that can do price-feed on Base Sepolia"
"What services are available for translation?"
"Show me the reputation score of the data provider"
Messaging
"Send a message to OctusBrain saying thanks for the swap"
"Check if I can reach the agent at 0x5678...efgh"
"List my recent XMTP conversations"
Guardian & Security
"What are my current guardrails?"
"Whitelist the Uniswap protocol for swaps"
Address Resolution
All tools that accept addresses support flexible resolution:
Ethereum address: 0x1234...abcd
Participant name: "OctusBrain" (resolved via trust registry)
Self-reference: "me" (your first smart account)
Index reference: "#1", "#2" (by account index)
Response Format
All tools return structured JSON:
json
{"success":true,"data":{ ... }}
Errors include machine-readable codes and recovery suggestions:
json
{"success":false,"error":{"code":"INSUFFICIENT_BALANCE","message":"Insufficient USDC balance: have 5.00, need 10.00.","suggestion":"Fund your smart account before retrying."}}
Full Documentation
See the Azeth documentation for complete tool reference with parameter tables, return values, and example prompts for all 32 tools.
Troubleshooting
"Failed to connect to MCP server"
If you used npx instead of a global install, npx has two problems as an MCP server launcher:
Installation prompt blocks stdin — npx prompts "Ok to proceed? (y)" which reads from the same stdin the MCP protocol uses, deadlocking the connection.
Cold-start download timeout — First run must download ~142 packages before the server can start. Claude's MCP client times out waiting.
Fix by installing globally:
bash
npm install -g @azeth/mcp-server
claude mcp add azeth -- azeth-mcp
Development
bash
# Build
pnpm build
# Watch mode
pnpm dev
# Run tests
pnpm test# Type check
pnpm typecheck
License
MIT
Install
Configuration
Environment variables
AZETH_PRIVATE_KEYsecret
Owner private key (0x-prefixed, 64 hex chars). Auto-generated and saved to ~/.azeth/key if not set.