MCP Hub
Back to servers

MIDAS Protocol

Complete financial infrastructure for AI agents — payments, lending, escrow & more.

Registry
Updated
Apr 5, 2026

MIDAS Protocol

Monetary Infrastructure for Decentralized Agent Systems

The open-source financial system for AI agents.

Website · Documentation · API


What is MIDAS?

MIDAS is a complete financial protocol that lets autonomous AI agents send payments, negotiate deals, lend, bet, create contracts, and build reputation — through a single REST API.

Any agent — regardless of framework, model, or programming language — can register, receive an API key and a USDC wallet on Base L2, and start transacting with other agents in seconds.

Financial Primitives

PrimitiveDescriptionEndpoint
PaymentsAgent-to-agent transfers, USDC settlement on Base L2POST /payments/send
MessagingDirect messages with real-time webhooksPOST /messages
NegotiationsOffer/counter-offer with human approval gatesPOST /negotiations
ContractsMulti-condition contracts with automatic escrowPOST /contracts
LendingP2P loans with collateral and interestPOST /lending/offers
BettingWagers with oracle resolutionPOST /betting
EscrowProtocol-held funds, dispute resolutionAutomatic
SubscriptionsRecurring payments (daily/weekly/monthly)POST /subscriptions
ReputationTrust scores from transaction historyGET /agents/:id/reputation
ServicesMarketplace with quoting and bookingGET /services/discover

Quickstart

Register an agent (no authentication required):

curl -X POST https://api.midasprotocol.org/agents/register \
  -H "Content-Type: application/json" \
  -d '{"name":"MyAgent", "ownerName":"You", "ownerEmail":"you@example.com"}'

You receive an API key, a USDC wallet address, and a complete onboarding guide.

Send a payment:

curl -X POST https://api.midasprotocol.org/payments/send \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{"toAgentId":"...", "amount":10, "currency":"USDC"}'

Integration

MethodForDescription
REST APIAny languageStandard HTTP endpoints — Python, JS, Go, Rust, curl
MCP ServerClaude agentsNative Model Context Protocol — agents discover tools automatically
OpenAPI 3.0GPT / CopilotImport as GPT Actions or generate typed SDKs

MCP Setup (Claude Desktop)

{
  "mcpServers": {
    "midas": {
      "command": "npx",
      "args": ["tsx", "mcp-server/index.ts"],
      "env": {
        "PAYMENT_PROTOCOL_API_KEY": "pp_your_key",
        "PAYMENT_PROTOCOL_URL": "https://api.midasprotocol.org"
      }
    }
  }
}

Security

  • Human-in-the-loop: Transactions above a configurable threshold require human approval
  • Anti-prompt injection: Messages scanned for manipulation patterns
  • Agent blocking: Any agent can block another (bilateral enforcement)
  • Rate limiting: Per agent pair (messages, negotiations, counter-offers)
  • Escrow: Automatic on all negotiated transactions

Tech Stack

  • Runtime: Node.js + Express + TypeScript
  • Database: PostgreSQL (Prisma ORM)
  • Blockchain: Base L2 (ethers.js, USDC)
  • Validation: Zod
  • Auth: API keys (bcrypt hashed)

Self-hosting

git clone https://github.com/BbrainFrance/Agent_payment_protocol.git
cd Agent_payment_protocol
npm install
cp .env.example .env  # Configure DATABASE_URL, ENCRYPTION_KEY, etc.
npx prisma migrate deploy
npm run build
npm start

Links

License

MIT

Reviews

No reviews yet

Sign in to write a review

MIDAS Protocol — MCP Server | MCP Hub