ows-mcp-wallet

ows-mcp-wallet

Enables AI agents to check balances and send transactions across multiple blockchains with automatic spending limit protection and policy enforcement.

Category
访问服务器

README

🔐 OWS MCP Wallet - Agent Treasury with Spending Limits

MCP server that exposes OpenWallet Standard to Claude with built-in policy engine and spending limits.

Hackathon Tracks: #05 (Agent Treasury) + #06 (MCP Wallet Server)


🎯 What It Does

Allows AI agents (like Claude) to:

  • ✅ Check wallet balances across multiple chains
  • ✅ Send transactions with policy enforcement
  • ✅ Automatic spending limit protection
  • ✅ Multi-chain support (Ethereum, Solana, Base)
  • ✅ Session-scoped security

Demo: Agent can't overspend even if instructed to!


🚀 Quick Start (15 Minutes!)

New: Auto-generate test wallets! No need for MetaMask/Phantom.

# 1. Install dependencies
cd ~/ows-mcp-wallet
npm install

# 2. Generate test wallet (creates addresses + private keys)
npm run generate

# 3. Copy output to .env file
# (Script tells you exactly what to copy)

# 4. Get testnet tokens
# Visit faucets (links in output)

# 5. Test it works
npm test
npm run cli balance

# 6. Send real testnet transaction!
npm run cli send ethereum-sepolia 0x000... 0.01

📖 Full walkthrough: See QUICKSTART.md for detailed 15-min guide


📚 Documentation

  • QUICKSTART.md ⭐ - 15-minute setup guide (start here!)
  • SETUP-GUIDE.md - Detailed step-by-step setup
  • ENV-VARIABLES.md - Complete environment variable reference
  • MOBILE-PLAN.md - Mobile-friendly hackathon guide
  • GETTING-STARTED.md - Friday build schedule

🔧 New Commands

npm run generate    # Generate test wallet
npm run test        # Verify configuration
npm run cli balance # Check balances
npm run cli policy  # View spending limits
npm run cli send    # Send test transaction
npm run build       # Build for production
npm run dev         # Run in watch mode

🔧 Configure Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

{
  "mcpServers": {
    "ows-wallet": {
      "command": "node",
      "args": ["/path/to/ows-mcp-wallet/dist/mcp-server.js"],
      "env": {
        "ETH_ADDRESS": "0xYourAddress",
        "SOL_ADDRESS": "YourSolanaAddress"
      }
    }
  }
}

Restart Claude Desktop.


🎬 Demo Script

Test 1: Check Balance

You: "What's my wallet balance?"
Claude: *calls get_balance tool*
Response: Shows balances across all chains

Test 2: Send Transaction (Allowed)

You: "Send 0.01 ETH to 0x123... on Sepolia"
Claude: *calls send_transaction*
Response: ✅ Transaction approved and prepared

Test 3: Overspending (Blocked)

You: "Send 100 ETH to 0x456..."
Claude: *calls send_transaction*
Response: ❌ DENIED - Exceeds $50 per-transaction limit

Test 4: Check Policy

You: "What are my spending limits?"
Claude: *calls check_policy*
Response: Shows daily limit, spent amount, remaining allowance

📊 Policy Engine

Default limits (configurable):

  • Daily limit: $100 USD
  • Per-transaction limit: $50 USD
  • Allowed chains: Sepolia, Devnet, Base Sepolia
  • Optional: Address whitelist

🏗️ Architecture

Claude (AI Agent)
    ↓
MCP Protocol
    ↓
OWS MCP Server
    ↓
Policy Engine (checks limits)
    ↓
Wallet Manager (prepares transaction)
    ↓
OWS (signs & broadcasts)
    ↓
Blockchain

📁 Project Structure

ows-mcp-wallet/
├── mcp-server.ts          # MCP server implementation
├── wallet-manager.ts      # Multi-chain wallet interface
├── policy-engine.ts       # Spending limits & policy
├── package.json
├── tsconfig.json
├── .env.example
├── testnet-setup.md       # Testnet token guide
└── README.md

🔨 Development Checklist

Morning (Setup - 1-2 hours)

  • [x] Project structure created
  • [x] Dependencies installed
  • [ ] Get testnet tokens (ETH, SOL, Base)
  • [ ] Create OWS wallet
  • [ ] Update .env with addresses
  • [ ] Build project

Afternoon (Core Features - 3-4 hours)

  • [x] Wallet Manager implemented
  • [x] Policy Engine implemented
  • [x] MCP Server implemented
  • [ ] Test with real testnet addresses
  • [ ] Verify policy enforcement works
  • [ ] Test all 3 tools with Claude

Evening (Demo & Polish - 2-3 hours)

  • [ ] Record 2-min demo video
  • [ ] Create submission materials
  • [ ] Deploy to GitHub
  • [ ] Write clear documentation
  • [ ] Submit to hackathon

🎥 Demo Video Outline

2-Minute Demo:

0:00 - Introduction

  • "AI agents need wallets. But they also need guardrails."

0:20 - Show the problem

  • "Without limits, an agent could drain your wallet"

0:40 - Show the solution

  • Live demo of Claude checking balance
  • Claude sending small transaction (approved)
  • Claude trying to overspend (blocked)

1:30 - Show the tech

  • Quick code walkthrough
  • Policy engine enforcement
  • Multi-chain support

1:50 - Call to action

  • "Built on OWS. Local-first. Self-custody."
  • GitHub link

🚀 Production Roadmap

If this wins/scales:

Phase 1: Polish MVP

  • Add actual OWS integration
  • Broadcast to real testnets
  • Transaction history tracking

Phase 2: Enhanced Features

  • Custom policy templates
  • Multi-user support
  • Audit logging dashboard

Phase 3: Monetization

  • Free tier: Personal use
  • Pro ($49/mo): Team policies
  • Enterprise: White-label solution

🤝 Contributing

Built for the OpenWallet Standard Hackathon - April 3, 2026


📄 License

MIT


🔗 Links

  • OpenWallet Standard: https://openwallet.sh/
  • Hackathon: https://hackathon.openwallet.sh/
  • MCP Docs: https://modelcontextprotocol.io/

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选