SuperAPIAI Directory

veyra-mcp

github.com · AI developer platforms

Veyra MCP is a payment wallet integration layer for AI agents, providing an MCP server and a typed client. It enables agents to make non-custodial payments in USDC on the Base network, with per-transaction limits, daily limits, human approval ranges, and payee allowlists enforced server-side, which the model itself cannot bypass. Agents initiate payments through tools such as create_payment but never see private keys; transfers exceeding the auto-approval limit require the user to sign and confirm in their own wallet. The project includes a stdio bridge program, credentials are stored locally, and policies are enforced by the hosted service. It supports a simulated settlement channel for integration testing before real funds are used.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Veyra MCP is designed to address several unsafe practices that AI agents face when they need to make payments: handing private keys directly to the model, giving the model a card with no limits, or requiring human approval for every payment. It provides an intermediate control layer: users connect their existing wallet, set the amount the agent may spend, and then give the agent an MCP endpoint. The agent gets tools such as create_payment but never sees private keys and cannot exceed the limits set by the user, because these limits are enforced by the Veyra server rather than relying on the model to follow instructions.

Key capabilities:

  • Non-custodial USDC payments: funds go directly from the user's wallet to the payee; Veyra does not hold funds, and there is no Veyra balance in between.
  • Server-enforced policies: supports per-payment caps, daily caps, human approval ranges, and payee allowlists.
  • Approval mechanism: transfers exceeding the auto-approval limit are not delegated for execution; the user must sign each one in their own wallet via an approval link, and Veyra verifies that the on-chain receipt matches the request.
  • Relaying within the auto-approval limit: the user grants a capped ERC-20 allowance to a relayer operated by Veyra; the token contract enforces that cap, and the Veyra policy engine decides the recipient address within that cap; it can be revoked at any time.
  • Simulated channel: integration can be completed using simulated settlement before touching real funds, with status marked as confirmed_simulated and simulated: true.
  • Audit log: records every decision, including limit changes and credential rotation.
  • Typed client and tool definitions: VEYRA_TOOLS exports tool definitions as JSON Schema, which can be registered with the Vercel AI SDK, LangChain, or plain function calling without a network round trip.

How to use:

  1. Register at veyra.money and connect a wallet, or first use a simulated source that does not move funds.
  2. Create an MCP endpoint with limits and copy the credential starting with veyra_.
  3. Add the credential to the host environment; the v eyra-mcp binary is a stdio bridge program that holds the credential locally and forwards each call to the hosted endpoint; the bridge itself contains no policy. You can also set VEYRA_TOKEN in the shell before starting Gemini CLI.
  4. Have the agent perform a task that requires spending money and observe how the policy decides.

Handling payment results: payments rejected by policy do not throw an exception, but returns a normal result with status set to failed. Only malformed parameters, invalid credentials, or unknown IDs throw exceptions. Therefore, do not use try/catch to detect declines; use paymentOutcome instead. Before telling anyone that funds have moved, use movedRealMoney; simulated settlements return false even if the status starts with confirmed. When unsure whether a payment succeeded, read getPayment instead of creating it again; after a real payment settles, getPayment returns tx_ref, which can serve as confirmation and a receipt. Reusing the same idempotency_key returns the original payment; a new key charges again. If the same payee already has an identical payment in progress, possible_duplicate_of is set.

Use cases: an agent pays for API calls, datasets, bounties, or other agents; scenarios that need to give an agent limited payment capability while retaining human approval and payee control.

Limitations and notes: currently only USDC on the Base network is supported; more rails are on the roadmap. Self-hosting is not currently supported; this repository is the client and bridge program, and the policy engine is a hosted service of veyra.money; the wallet approval path is fully non-custodial. A free plan is available; see the official website for specific pricing. Policy decision questions should be reported through the dashboard; repository issues are only for the client and bridge program.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools