Sponsored by Deepsite.site

MoltPe

Created By
umangbuilds5 days ago
AI-native payment infrastructure that gives AI agents isolated wallets with programmable spending policies for autonomous USDC stablecoin transactions. 11 MCP tools for Claude Desktop, Cursor, and Windsurf. Tri-rail support: x402 (HTTP-native micropayments), MPP (session-based streaming), and traditional fiat. Non-custodial wallets with Shamir key splitting, sub-second settlement on Polygon PoS, Base, and Tempo. Free tier, no credit card. Website: https://moltpe.com Reference impl (Apache 2.0): https://github.com/umangbuilds/moltpe-agent-payments
Overview

MoltPe Agent Payments

Payment infrastructure for AI agents — reference implementation with x402, MPP, and fiat payment paths.

License: Apache 2.0 Content: CC BY-SA 4.0 Tests npm: mcp-payments npm: x402-client Zero Dependencies Open in GitHub Codespaces

Disclaimer: This is a reference implementation with mock data. For production, implement real PaymentProvider adapters. MoltPe's production server is at moltpe.com/mcp.

What This Is

This repository contains a reference implementation for handling payments in AI agent systems. It supports three payment paths: stablecoin micropayments (x402), session-based streaming (MPP), and traditional fiat rails. The goal is to show how agents can pay, get paid, and manage money across different protocols.

Quick Start

# MCP Server — payment tools for AI agents
cd mcp-server && npm install && npm start
# Server runs on port 3000 with 11 MCP tools
# Connect Claude Desktop with config from examples/claude-desktop-config.json

# x402 Client — stablecoin micropayments
cd x402-client && npm install && npm run build
# Use in your project:
# import { pay } from '@moltpe/x402-client'

See mcp-server/README.md and x402-client/README.md for full usage.

Demo

Start the server and open http://localhost:3000 to explore all 11 payment tools interactively.

The demo includes:

  • Tool explorer with editable inputs for every MCP tool
  • Live balance tracking across stablecoin, session, and fiat providers
  • MPP session budget visualizer with real-time progress
  • Invoice lifecycle: create → send → track → collect
  • Transaction timeline of all actions

Run with mock data (default) or connect to MoltPe's live MCP server.

See mcp-server/DEMO.md for a step-by-step walkthrough.

Live Mode

cd mcp-server
PROVIDER_MODE=live MOLTPE_AGENT_TOKEN=swai_... npm start

Connects to moltpe.com/mcp for real on-chain transactions. See mcp-server/README.md for setup.

What's Inside

DirectoryDescription
research/Market research, protocol analysis, competitive landscape
mcp-server/MCP payment server with 11 tools, 3 mock providers (x402, MPP, fiat), 53 tests
x402-client/TypeScript x402 client SDK with facilitator adapters and interceptors, 34 tests
playbook/Build playbook: process, templates, results from building this
docs/Architecture docs, protocol landscape, market analysis

Tri-Rail Architecture

This implementation supports three parallel payment paths:

  • Path A — Stablecoin (x402): Per-request micropayments settled on-chain in USDC
  • Path B — Session-based (MPP): Authorize a budget, stream payments within a session
  • Path C — Fiat: Traditional card authorization, capture, and settlement

Each path serves different use cases. A collections layer sits above all three to handle agent receivables.

flowchart TD
    Agent[AI Agent] --> Collections[Collections Layer<br/>Invoicing · Billing · Receivables]

    Collections --> A[Stablecoin Path<br/>x402]
    Collections --> B[Session Path<br/>MPP]
    Collections --> C[Fiat Path<br/>Card / Bank]

    A --> A1[USDC Micropayments]
    A1 --> A2[On-chain Settlement<br/>Polygon · Base]

    B --> B1[Budget Sessions]
    B1 --> B2[Streaming Settlement<br/>Tempo Network]

    C --> C1[Card Authorization]
    C1 --> C2[Gateway Settlement<br/>Razorpay · Stripe]

    classDef agent fill:#0ea5e9,stroke:#0284c7,color:#fff
    classDef collections fill:#f59e0b,stroke:#d97706,color:#fff
    classDef x402 fill:#22d3ee,stroke:#06b6d4,color:#000
    classDef mpp fill:#a78bfa,stroke:#8b5cf6,color:#000
    classDef fiat fill:#34d399,stroke:#10b981,color:#000

    class Agent agent
    class Collections collections
    class A,A1,A2 x402
    class B,B1,B2 mpp
    class C,C1,C2 fiat

See docs/tri-rail-architecture.md for the full breakdown.

Research Highlights

Quality & Security

MetricValue
Tests87 (53 mcp-server + 34 x402-client)
Pass rate100%
Statement coverage86.2% / 95.9%
Runtime dependencies0 (both packages)
npm audit0 vulnerabilities
Secret scan0 findings

See QUALITY.md for full coverage breakdowns and scan results. See SECURITY.md for vulnerability reporting and security posture. See docs/production-security-checklist.md for the 64-item production deployment checklist.

Integration Examples

Looking to integrate MoltPe Agent Payments with your AI framework? These issues track planned integrations with example code:

Contributions welcome — pick an issue and open a PR.

Deep Dives

Long-form guides covering the MoltPe stack, AI agent payment patterns, and India-specific integration:

For developers evaluating MoltPe

For Indian developers and AI startups

Protocols and fundamentals

Short answers (Q&A format)

Also: FAQ · Glossary · Use cases · Developer docs

License

See NOTICE for attribution details.

Citation

@software{moltpe_agent_payments,
  author = {Gupta, Umang},
  title = {MoltPe Agent Payments},
  year = {2026},
  url = {https://github.com/umangbuilds/moltpe-agent-payments},
  license = {Apache-2.0}
}

Author

Created by Umang Gupta. MoltPe builds payment infrastructure for AI agents.

Server Config

{
  "mcpServers": {
    "moltpe": {
      "command": "npx",
      "args": [
        "-y",
        "@moltpe/mcp-server"
      ],
      "env": {
        "MOLTPE_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。