Amper MCP Server
Enables natural language-driven DeFi operations including swaps, lending, bridging, and onchain transactions across multiple protocols via MCP-compatible clients.
README
<p align="center"> <img src="https://github.com/user-attachments/assets/a1aa5e16-4310-411e-b09b-bdaa58e5edb0" alt="Amper MCP Server" width="100%" /> </p>
Amper MCP Server
MCP server that exposes Amper's 80+ DeFi tools to any MCP-compatible client.
Natural language in, onchain transactions out.
Quick Install
Add Amper to your MCP client with a single config block. Requires Node.js 18+ and an Amper API key.
Claude Code
Add to .mcp.json (project root) or ~/.claude.json (global):
{
"mcpServers": {
"amper": {
"command": "npx",
"args": ["-y", "amper-mcp-server"],
"env": {
"AMPER_API_KEY": "amp_live_your_key_here"
}
}
}
}
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"amper": {
"command": "npx",
"args": ["-y", "amper-mcp-server"],
"env": {
"AMPER_API_KEY": "amp_live_your_key_here"
}
}
}
}
Windsurf
Add to .windsurf/mcp.json:
{
"mcpServers": {
"amper": {
"command": "npx",
"args": ["-y", "amper-mcp-server"],
"env": {
"AMPER_API_KEY": "amp_live_your_key_here"
}
}
}
}
Hermes
# ~/.hermes/config.yaml
mcp_servers:
amper:
command: "npx"
args: ["-y", "amper-mcp-server"]
env:
AMPER_API_KEY: "amp_live_your_key_here"
Or install globally for faster startup:
npm install -g amper-mcp-server
# ~/.hermes/config.yaml
mcp_servers:
amper:
command: "amper-mcp-server"
env:
AMPER_API_KEY: "amp_live_your_key_here"
Get an API Key
- Sign up at app.amper.chat
- Subscribe ($6/month, 500 requests/day) or fund your embedded wallet with USDC on Base for pay-per-request (https://www.amper.chat/docs/api/pricing)
- Go to Settings > API and create a key
- Keys start with
amp_live_and come in two scopes:- Read. Price checks, analytics, portfolio queries
- Write. Everything above plus swaps, lending, bridging, and all onchain execution
Hermes Full Setup Guide
Hermes is an open-source terminal agent by Nous Research. Follow these steps to go from zero to executing DeFi operations from your terminal.
1. Install Hermes
macOS / Linux / WSL2:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
Windows (PowerShell):
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
Verify the installation:
hermes --version
Then run initial setup:
hermes setup
This will prompt you for your preferred LLM provider and model. If you have a Nous Portal account, use hermes setup --portal instead.
2. Add the Amper MCP Server
Edit ~/.hermes/config.yaml and add the amper entry under mcp_servers (see Hermes config above).
3. Verify
Launch Hermes and try a few commands:
hermes
> What is the price of ETH?
> Show my portfolio on Base
> Swap 0.001 ETH to USDC on Base
Type /tools inside Hermes to list all available Amper tools.
Configuration
| Variable | Required | Description |
|---|---|---|
AMPER_API_KEY |
Yes | Your API key (must start with amp_live_) |
AMPER_BASE_URL |
No | Override the API base URL (default: https://app.amper.chat/api/v1) |
Rate Limits
| Limit | Value |
|---|---|
| Per minute | 30 requests |
| Per day | 500 requests |
| Concurrency | Sequential (one at a time per key) |
How It Works
- Discovery. Fetches all tools from
/api/v1/toolson startup (cached 5 min). - Execution. Each tool call hits
POST /api/v1/executewith a unique idempotency key. - Timeouts. 65s for trade tools, 35s for read tools.
- Transport. Stdio. Your MCP client spawns the server as a subprocess.
Available Tools
80+ tools across these categories:
| Category | Examples |
|---|---|
| Token Operations | Swaps, transfers, approvals, wrapping |
| Lending | Aave v3 deposits, withdrawals, borrowing |
| Vaults | Morpho vault deposits, withdrawals, rewards |
| Perpetuals | Avantis positions and limit orders (up to 500x) |
| Options | Derive options trading and sessions |
| Staking | Venice staking and reward claims |
| Token Creation | Clanker token deployment and image generation |
| Analytics | DefiLlama TVL, Codex token data, price feeds |
| Bridges | Cross-chain transfers |
Troubleshooting
| Error | Fix |
|---|---|
invalid_key |
Check that your key starts with amp_live_ |
key_expired |
Generate a new key in Settings > API |
scope_denied |
You're using a Read key for a write operation. Create a Write key |
payment_required |
No active subscription or insufficient USDC balance |
| MCP server not loading | Verify Node.js 18+ is installed (node --version) |
| Tools not appearing (Hermes) | Run /reload-mcp inside Hermes |
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。