Skip to content

solana-foundation/moneymq

Repository files navigation

MoneyMQ — Open Payment Engine for Stablecoins

The local-first, open-source payment engine for stablecoins

Think of it as Stripe, but for stablecoins — declarative, self-hosted, and yield-bearing.

CI Release Crates.io License Discord


Build, test, and deploy stablecoin payments right from your laptop. Define invoices, subscriptions, and pay-per-API billing as declarative YAML — then deploy anywhere. Open-source, portable, and x402-ready.

Key Features

  • Local-first sandbox — Spin up your entire payment stack locally (products, prices, billing rules, test accounts) without touching external APIs. Billing is code.
  • Native x402 support — Test, iterate, and deploy x402 payment-gated API endpoints in minutes with an auto-provisioned local sandbox.
  • MCP embedded, agent-ready — Built-in MCP runtime connects AI agents directly to your payment stack for autonomous payment strategy design and testing.
  • Embedded yield (coming soon) — Idle stablecoin liquidity is automatically routed to yield strategies. Your cashflow earns by default.
  • Stripe-compatible import — Import existing products, prices, and plans from Stripe. Migrate incrementally.

MoneyMQ in action

MoneyMQ 101 series

Installation

Homebrew (macOS)

brew install txtx/taps/moneymq

From source

git clone https://github.com/txtx/moneymq.git && cd moneymq
cargo moneymq-install

Docker

docker run moneymq/moneymq --version

Verify: moneymq --version

Getting Started

# Start a local payment sandbox
moneymq sandbox

From there, you can:

  • Define products, prices, and plans locally (or import from Stripe)
  • Simulate checkout sessions and API metering
  • Test x402-gated endpoints before going live

Architecture

MoneyMQ is a Rust workspace organized into focused crates:

Crate Description
crates/cli Command-line interface
crates/core Core payment logic and API endpoints
crates/mcp Embedded MCP server runtime
crates/sdk SDK for integrations
crates/stream Event streaming
crates/studio Studio UI
crates/types Shared type definitions
crates/drivers/stripe Stripe driver
crates/drivers/kit Driver toolkit

Examples: examples/surfpool · examples/x402 · examples/agent-buyer · examples/agent-seller

Community

Contributing

We welcome contributions of all kinds. Here's how to get started:

  1. Check out issues labeled good first issue or help wanted
  2. Fork the repo, create a branch, and open a pull request
  3. Join Discord for questions and discussion

Please read our Code of Conduct before contributing.

Security

MoneyMQ handles payment logic — security is a first-class concern.

If you discover a security vulnerability, please report it responsibly via security@txtx.io. Do not open a public issue for security vulnerabilities.

License

MoneyMQ is licensed under the Apache License 2.0.

About

Payment rails made right. Award winning developer experience.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages