# Agenti - Universal Crypto MCP Server
> The most comprehensive Model Context Protocol (MCP) server for blockchain and DeFi.
> https://github.com/nirholas/agenti
## Quick Start
```bash
npx @nirholas/agenti
```
## What is Agenti?
Agenti enables AI agents (Claude, ChatGPT, Cursor, Windsurf) to interact with blockchains through natural language.
- **380+ Tools** - Most comprehensive crypto MCP server
- **20+ Chains** - All EVM chains + Solana
- **x402 Payments** - AI agents can pay for APIs automatically
- **Multi-transport** - stdio, HTTP, SSE (ChatGPT compatible)
## Key Features
### Blockchain Operations
- Query balances, transactions, blocks
- Send transactions (with confirmation)
- Deploy and interact with smart contracts
- ENS/domain resolution
### DeFi Integration
- DEX aggregation (1inch, 0x, ParaSwap)
- Lending/borrowing (Aave, Compound)
- Staking (Lido, Rocket Pool)
- Bridges (LayerZero, Wormhole, Stargate)
### Security
- Token security analysis (GoPlus)
- Honeypot detection
- Rug pull detection
- Approval management
### Market Data
- Real-time prices (CoinGecko, CoinStats)
- DeFi analytics (DefiLlama)
- Social sentiment (LunarCrush)
- On-chain analytics
### x402 Payment Protocol
AI agents can:
- Pay for premium APIs automatically
- Sell services to other agents
- Trade peer-to-peer
- Handle micropayments (fractions of a cent)
## MCP Tools Summary (380+)
### Core Blockchain (50 tools)
- `get_balance` - Native/token balances
- `send_transaction` - Send with confirmation
- `get_transaction` - Transaction details
- `deploy_contract` - Deploy smart contracts
- `call_contract` - Read contract state
- `write_contract` - Write with signing
### DeFi (80 tools)
- `swap_tokens` - DEX aggregated swaps
- `get_quote` - Best swap quotes
- `supply_lending` - Supply to Aave/Compound
- `borrow_lending` - Borrow assets
- `stake_eth` - Liquid staking
### Security (40 tools)
- `check_token_security` - Full security scan
- `detect_honeypot` - Honeypot detection
- `check_approvals` - Approval audit
- `revoke_approval` - Revoke permissions
### Market Data (60 tools)
- `get_price` - Real-time prices
- `get_defi_tvl` - Protocol TVL
- `get_trending` - Trending tokens
- `get_fear_greed` - Market sentiment
### x402 Payments (14 tools)
- `x402_pay_request` - HTTP + payment
- `x402_balance` - Check balance
- `x402_send` - Direct payment
- `x402_gasless_send` - Gasless via EIP-3009
## Supported Networks
### EVM Chains
ethereum, polygon, arbitrum, optimism, base, bsc, avalanche, fantom, gnosis, celo, moonbeam, aurora, metis, linea, scroll, zksync, mantle, blast, mode, sei
### Non-EVM
solana (via separate adapter)
## Configuration
```bash
# Required for write operations
export PRIVATE_KEY=0x...
# Optional: x402 payments
export X402_PRIVATE_KEY=0x...
export X402_NETWORK=base
# Optional: API keys for enhanced data
export COINGECKO_API_KEY=...
export DEFILLAMA_API_KEY=...
```
## Integration Examples
### Claude Desktop
```json
{
"mcpServers": {
"agenti": {
"command": "npx",
"args": ["@nirholas/agenti"]
}
}
}
```
### HTTP Mode (ChatGPT)
```bash
npx @nirholas/agenti --http --port 3000
```
## Links
- GitHub: https://github.com/nirholas/agenti
- NPM: https://www.npmjs.com/package/@nirholas/agenti
- Documentation: https://nirholas.github.io/agenti/
- Twitter: https://x.com/nichxbt
## License
Apache-2.0