AURA MCP Server

AURA MCP Server

Enables Claude and ChatGPT to interact with AdEx AURA API for DeFi portfolio analysis, yield opportunity scanning, and automated trading strategy execution across multiple EVM chains. Includes risk management guardrails and on-chain payment verification.

Category
Visit Server

README

🚀 AURA MCP Server

Bridge LLMs with AURA API and EVM for on-chain intelligence

A modular Model Context Protocol (MCP) server that enables Claude & ChatGPT to interact with AdEx AURA for DeFi portfolio analysis, yield opportunities, and automated trading strategies.

🌟 Features

🔗 MCP Commands

  • portfolio.getBalance - Get wallet balance across chains
  • portfolio.getPositions - Get DeFi positions and health factors
  • operations.scanOpportunities - Scan for yield and airdrop opportunities
  • strategy.propose - Propose DCA or liquidation guard strategies
  • strategy.backtest - Backtest strategy performance
  • transaction.simulate - Simulate transaction execution
  • transaction.execute - Execute transactions with guard validation
  • guard.setRules - Configure risk management rules
  • report.get - Get trading history and PnL
  • system.health - Check system status

🛡️ Guard Engine

  • Risk Management: Max slippage, gas limits, health factors
  • Route Protection: Allowed DEXes, blocked tokens/protocols
  • Emergency Stop: Instant transaction blocking
  • Dynamic Rules: Per-user customizable guardrails

💰 x402 Paywall

  • On-chain payment verification
  • Per-request monetization
  • USDC/USDT payment support
  • Invoice generation and tracking

🔌 Strategy Plugins

  • DCA Event-Aware: Dollar-cost averaging with market event detection
  • Liquidation Guard: Automated position protection

🚀 Quick Start

Installation

git clone https://github.com/aura-mcp/server.git
cd aura-mcp-server
npm install

Configuration

cp .env.example .env
# Edit .env with your configuration

Development

# Start development server
npm run dev

# Run tests
npm test

# Build for production
npm run build

Production

# Build and start
npm run build
npm start

⚙️ Configuration

Environment Variables

# AURA Configuration
AURA_API_URL=https://api.aura.adex.network
AURA_API_KEY=your_aura_api_key

# RPC Endpoints
RPC_ETHEREUM=https://eth-mainnet.g.alchemy.com/v2/YOUR_KEY
RPC_BASE=https://mainnet.base.org
RPC_ARBITRUM=https://arb1.arbitrum.io/rpc

# x402 Payment
X402_RECEIVER=0xYourWalletAddress
X402_ASSET=USDC

# Server
MCP_SERVER_PORT=3000
NODE_ENV=production

📖 Usage Examples

Portfolio Analysis

// Get wallet balance
const balance = await mcpClient.call('portfolio.getBalance', {
  address: '0x69bfD720Dd188B8BB04C4b4D24442D3c15576D10',
  chain: 'ethereum'
});

// Get DeFi positions
const positions = await mcpClient.call('portfolio.getPositions', {
  address: '0x69bfD720Dd188B8BB04C4b4D24442D3c15576D10'
});

Strategy Proposal

// DCA Event-Aware Strategy
const strategy = await mcpClient.call('strategy.propose', {
  intent: 'dca_event_aware',
  params: {
    asset: 'ETH',
    budgetUsd: 200,
    cadence: '2x/week',
    eventRules: {
      pauseOnUnlock: true,
      maxGasGwei: 25,
      boostOnDrawdownPct: 3
    }
  },
  address: '0x69bfD720Dd188B8BB04C4b4D24442D3c15576D10'
});

Transaction Execution

// Simulate transaction
const simulation = await mcpClient.call('transaction.simulate', {
  intentId: 'dca_event_aware_123',
  txParams: {
    to: '0x1234...',
    value: '100000000000000000',
    gasLimit: '150000'
  }
});

// Execute if simulation passes
if (simulation.ok) {
  const execution = await mcpClient.call('transaction.execute', {
    intentId: 'dca_event_aware_123',
    txParams: simulation.txParams
  });
}

🏗️ Architecture

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Claude/ChatGPT│    │  AURA MCP Server│    │  AURA API/SDK  │
│                 │◄──►│                 │◄──►│                 │
│  - Tool Calls   │    │  - MCP Protocol │    │  - Portfolio    │
│  - Responses    │    │  - Guard Engine │    │  - Strategies   │
│  - Context      │    │  - x402 Paywall │    │  - Analytics    │
└─────────────────┘    └─────────────────┘    └─────────────────┘
                                │
                                ▼
                       ┌─────────────────┐
                       │   EVM Chains    │
                       │                 │
                       │  - Ethereum     │
                       │  - Base         │
                       │  - Arbitrum     │
                       │  - Polygon      │
                       └─────────────────┘

🧪 Testing

# Run all tests
npm test

# Run with coverage
npm test -- --coverage

# Run specific test
npm test -- --testNamePattern="Guard Engine"

🚀 Deployment

Vercel

npm i -g vercel
vercel --prod

Railway

npm i -g @railway/cli
railway login
railway up

Docker

docker build -t aura-mcp-server .
docker run -p 3000:3000 aura-mcp-server

📊 Performance

  • Response Time: < 2s for portfolio analysis
  • Throughput: 100+ requests/minute
  • Uptime: 99.9% SLA
  • Security: Guard engine protection

🔒 Security

  • Input validation with Zod schemas
  • Guard engine risk management
  • x402 payment verification
  • Rate limiting and DDoS protection
  • Encrypted environment variables

🤝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🏆 Hackathon Submission

Project: AURA MCP Server
Event: AdEx AURA Hackathon
Deadline: October 22, 2025
Status: ✅ Ready for submission

Demo Links

  • Live Demo: https://aura-mcp-hackathon.vercel.app
  • Video Demo: https://youtube.com/watch?v=your-demo-video
  • GitHub: https://github.com/aura-mcp/server

Key Features Demonstrated

  • ✅ Portfolio analysis across multiple chains
  • ✅ DCA Event-Aware strategy automation
  • ✅ Liquidation guard protection
  • ✅ x402 paywall monetization
  • ✅ Guard engine risk management
  • ✅ Real-time transaction simulation

📞 Support


Built with ❤️ for the AURA community

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured