Veridex Bazaar Discovery MCP Server
OfficialEnables discovery and payment for HTTP endpoints and MCP tools using x402 payment facilitation, with USDC/SEP-41 stablecoin settlement on the Stellar network (testnet and pubnet).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Veridex Bazaar Discovery MCP Serversearch the bazaar for sentiment analysis APIs payable in USDC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Veridex Stellar x402
Veridex is a Stellar x402 v2 facilitator plus an HTTPS API gateway, Bazaar discovery, a keyless MCP agent interface, focused buyer/seller tooling, and an experimental provider-quality layer.
Role | Start here |
Buyer | Use |
Existing API seller | Put |
Native seller | Protect an HTTP route with official x402 middleware for maximum application control. |
Agent builder | Search through Bazaar or MCP, apply local policy, then sign with the buyer wallet. |
Operator | Run the facilitator, PostgreSQL Bazaar, reference seller, and optional MCP service. |
Payment authority, discovery recommendation, and provider-quality evidence are separate. Bazaar helps find resources; it cannot change a signed recipient, asset, network, or amount. Provider quality is a policy signal, not payment authorization.
Current status
Current validation scope is stellar:testnet. No pubnet/mainnet transaction or
production-readiness claim is part of the current evidence set.
Capability | Status |
Stellar | Testnet proven with stock |
Veridex Stellar | Testnet proven; custom, experimental, and unaudited |
Bazaar catalog/discovery | Testnet proven for settlement-backed cataloging, search, and captured restart persistence |
MCP | Testnet proven for keyless discovery and exact paid calls |
| Built, packed, and externally exercised; npm publication remains pending |
Seller integration | Working with official x402 middleware; discovery is optional |
HTTPS API gateway | Testnet proven through the Playground: settlement, upstream response, Bazaar listing, and signed provider outcome |
Provider quality | Implemented and tested; representative independent-observer operation is not proven |
Federation | Local three-process/three-database restart proof; multi-operator production federation is not claimed |
Pubnet | Approval-gated and unvalidated |
External security audit | Pending |
See the testnet acceptance matrix and conformance report for recorded transactions and limitations.
Related MCP server: x402 Stellar MCP Server
Testnet quickstart
Requirements: Node.js 22+ and Docker.
npm run demoFrom a clean clone, this installs dependencies, creates fresh Friendbot-funded
testnet accounts, writes .env, starts PostgreSQL/Bazaar/facilitator/reference
seller, runs conformance, and writes conformance-report.json. The harness
re-reads settlement from Stellar instead of trusting a returned hash.
Service | Default URL |
Bazaar |
|
Facilitator |
|
Reference seller |
|
Gateway |
|
Playground |
|
For individual commands, expected output, clean-state steps, and port overrides, use the canonical testnet quickstart.
x402 v2 HTTP flow
buyer -> protected resource
resource -> HTTP 402 + PAYMENT-REQUIRED
buyer -> PAYMENT-SIGNATURE with a signed PaymentPayload
resource -> facilitator /verify
resource -> execute work
resource -> facilitator /settle
facilitator -> Stellar settlement
resource -> paid response + PAYMENT-RESPONSEx402 v2 separates core types, scheme logic, and transport encoding:
PaymentRequiredcontainsx402Version, resource information, acceptedPaymentRequirements, and optional extensions.PaymentRequirementscontainsscheme, CAIP-2network,asset, atomic-unitamount,payTo, timeout, and scheme-specificextra.PaymentPayloadcontains the selected requirements inacceptedplus the scheme-specific signedpayload.SettleResponsereports success/failure, transaction, network, optional actual amount, and extensions.HTTP carries base64 JSON in
PAYMENT-REQUIRED,PAYMENT-SIGNATURE, andPAYMENT-RESPONSE.X-PAYMENTandmaxAmountRequiredare v1 compatibility terminology, not active examples here.
The seller/resource server owns the HTTP 402 exchange. Veridex supplies the facilitator and optional discovery/evidence services; those are not additional sources of payment authority.
Buyer
import { createVeridexClient } from "@veridex/stellar";
const client = createVeridexClient({
network: "stellar:testnet",
privateKey: process.env.BUYER_SECRET_KEY!,
});
const response = await client.fetch("http://localhost:3003/paid-resource");
console.log(await response.json());exact is the default. Use scheme: "upto" only for a route advertising the
Veridex custom testnet scheme. The focused package is currently consumed from
this repository or a packed tarball; do not assume registry publication. See
the buyer guide.
Seller
The reference seller uses official @x402/hono and @x402/stellar server
integration. It declares Bazaar metadata in PaymentRequired.extensions.bazaar
through declareDiscoveryExtension(). After confirmed settlement, the
facilitator queues catalog work to a durable local outbox and delivers it
asynchronously to Bazaar.
Accepting payment does not require Bazaar, federation, or provider quality. See the seller guide.
Gateway seller
For an existing API, the gateway owns the 402/verify/settle edge and forwards the original request only after confirmed settlement:
existing HTTPS API -> gateway -> 402 -> facilitator -> Stellar -> original APIIt preserves safe request fields, blocks private/reserved upstreams, applies timeouts/body/concurrency/rate limits, declares the same Bazaar extension, and records normalized payment/provider events for the future Developer Portal. Start with the gateway quickstart.
Bazaar and MCP
Veridex exposes:
GET /discovery/resourcesfor filtered catalog browsing.GET /discovery/searchfor PostgreSQL full-text plus lexical feature-hash/RRF search, opaque cursors, and bounded telemetry scores.
Feature hashing is lexical, not learned semantic retrieval. Current response shapes are in the Bazaar guide and OpenAPI.
The custom stdio MCP service exposes discover_resources and pay_resource.
pay_resource is two-phase and exact-only: MCP returns a bounded challenge, the
client wallet signs it, and MCP re-fetches/matches the challenge before
submission. MCP does not hold a payer private key. See the
MCP guide.
Veridex Stellar upto
upto separates the authorized maximum from the actual settled amount:
0 <= actual <= maximumThe payer signs bound terms including payer, payTo, token, ceiling, validity,
facilitator, settlement ID, and request digest. After work executes, the
facilitator attests to actual and the result digest. The active Soroban
contract atomically pulls the ceiling, pays actual, refunds the remainder,
leaves no residual allowance/balance, and records replay state.
Zero, partial, and full-cap usage are distinct outcomes. Zero is a terminal on-chain settlement that refunds the full ceiling; the ceiling is never an automatic charge. Over-cap settlement is rejected.
This is a Veridex testnet implementation. Installed stock
@x402/stellar@2.21.0 exposes exact only, so upstream Stellar upto
interoperability is not claimed. See the
Stellar upto specification.
Documentation
Errors and payment proof
Validate
npm run docs:check
npm run typecheck
npm test
npm run build
cargo test --locked --manifest-path contracts/upto-settlement/Cargo.tomlThe repository is Apache-2.0. Optional Playground sharp/libvips artifacts
have explicit license-policy exceptions and still require distribution review.
This server cannot be deployed
Maintenance
Related MCP Connectors
Marketplace where AI agents buy datasets and API access, pay per call in USDC over x402.
Verify and settle x402 stablecoin payments; browse the PayAI Bazaar of x402-payable resources.
A machine-to-machine agent superstore -- paid API services for autonomous agents via x402 on Base.
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to access a marketplace of paid tools by automatically handling Stellar blockchain payments and wallet management. It utilizes the X-402 protocol to facilitate transparent, automated transactions for tool usage through a marketplace backend.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to pay for protected HTTP resources using Stellar USDC via the x402 protocol, facilitating automated payments and access to paid APIs.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover, call, and pay for existing HTTP APIs over MCP with x402 paywalls, non-custodial settlement, and no code changes to the backend.20523Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and pay for MCP tools on a sub-cent, pay-per-call basis using x402 and Algorand USDC settlements.9MIT