# AIMarket — live agent marketplace [Health: Active]

**Category:** 🗣️ Conversational AI  
**Repository:** https://github.com/alexar76/aimarket-hub  
**GitHub Stars:** 0  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/aimarket-live-agent-marketplace

## Description
Search and invoke real AI capabilities on modelmarket.dev. Free trial, then USDC on Base.

## Tools
Capabilities this server exposes over MCP:

- **market_search** — Search this hub's catalogue of live data and computation by what you need, in plain words. Each match gives the product_id, capability_id and source_hub to pass to market_invoke, its price, `input` (the fields its input object takes) and `relevance` from 0 to 1; a `note` says when nothing matched well.
- **market_invoke** — Invoke a capability found via market_search. A few trial invokes are granted per caller with no wallet, key or channel, and each returns the hub's signed receipt; when the allowance is spent the hub answers 402 and this reports that rather than inventing a result, with next_steps saying how to pay. Paid access uses the prepaid balance of an API key sent as this connection's X-API-Key header, payment_channel (+ secret), or an on-chain x402 payment (x_payment + x_payment_nonce + x_payment_secret).
- **pipeline_prepare** — Validate a graph and return a signed quote and payment offers. No work or payment. Free steps require no wallet; paid steps require buyer wallet address. Use gas_mode=required to demand gas sponsorship or auto to prefer it. Inspect ready/blockers and gas_sponsorship. Sign offers LOCALLY, never provide a private key. Then call pipeline_invoke.
- **pipeline_invoke** — Execute or continue the SAME prepared graph. Submit authorizations when the signed quote enables gas_sponsorship, otherwise buyer-signed transactions; none for free steps. Never submit both payment modes. Retain run_id/access_token and the exact bundle. Pending is not failure; repeat the same run or read pipeline_status. Never create a replacement purchase after a lost response.
- **pipeline_status** — Read an existing pipeline, including cached signed result, without broadcasting payments or invoking providers. No wallet signer or blockchain RPC required. Inspect recovery.action for unresolved work.
- **pipeline_refund_prepare** — Prepare a cash refund for a verified paid step of a finished pipeline. This moves no money. The original seller must approve the exact EIP-3009 authorization locally; never send a private key. Refunds require seller cooperation and a configured gas sponsor.
- **pipeline_refund** — Submit the original seller's refund authorization or resume the SAME refund. The recipient is the original buyer, amount is the paid step price, and the sponsor pays gas. Preserve the exact authorization after a lost response. Returns a separately signed credit note; the original bill is unchanged.
- **pipeline_refund_status** — Read the saved cash-refund status and signed credit note without broadcasting a transaction. No private key or RPC is required. Pending means resume the same refund, never send a replacement transfer.
- **weather_now** — Current weather at a place: temperature (°C), humidity (%), pressure (hPa) and wind (m/s) from the nearest live Open-Meteo relay within 75 km, with a signed receipt. Pass latitude and longitude, or a city. Costs $0.001 per call. The first 5 priced calls per caller are free.
- **air_quality_now** — Current air quality at a place: PM2.5 and PM10 (µg/m³), US and European AQI, from Copernicus CAMS via Open-Meteo, with a signed receipt. Pass latitude and longitude, or a city. Costs $0.001 per call. The first 5 priced calls per caller are free.
- **nearby_sensors** — The nearest live public sensors to a point, one per layer asked for (e.g. weather, air, radiation, quake), each with its reading, distance and source, and a signed receipt. Costs $0.03 per call. The first 5 priced calls per caller are free.
- **fair_random** — Verifiable random bytes for a draw, raffle or tie-break: an ECVRF output over your seed plus a proof anyone can check offline. The same seed always gives the same output, so publish the seed first to show the result was not picked. Costs $0.006 per call. The first 5 priced calls per caller are free.
- **x402_check** — Check a signed x402 USDC payment before submitting it: recovers the EIP-712 signer, runs USDC's own checks and the seller's (payTo, amount, asset, network), and when the signature fails names the domain it was really made for (e.g. Base Sepolia's 'USDC' used on Base, where USDC is 'USD Coin'). Costs $0.003 per call. The first 5 priced calls per caller are free.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "aimarket-live-agent-marketplace": {
    "command": "uvx",
    "args": ["--from","aimarket-hub","aimarket"]
  }
}
```

## Documentation

## What AIMarket — live agent marketplace does

AIMarket — live agent marketplace exposes a marketplace of live data and computation through MCP. Its hosted endpoint is available at `https://modelmarket.dev/mcp`, where an agent can search a federated catalogue and invoke a matching capability. Search results include identifiers, the originating hub, expected input fields, price, and a relevance score, so an agent can pass the selected capability to a later invocation.

The marketplace supports free trial invocations and paid execution. Payment can use a prepaid API-key balance, a payment channel, or an on-chain x402 payment. Calls return signed receipts. Receipt verification authenticates the signed record, but does not prove that the returned answer is true or high quality.

## How it works

Start with `market_search` using a plain-language description of the required capability. Pass the returned `product_id`, `capability_id`, and `source_hub` to `market_invoke`; omitting the source hub can prevent invocation for federated catalogue entries. Trial calls are available for a limited allowance before the service returns a quota response.

For multi-step work, `pipeline_prepare` validates a graph and produces a signed quote plus payment offers without executing anything. `pipeline_invoke` then executes or continues that same prepared graph. Clients should retain the `run_id`, access token, and exact request bundle. If execution is pending or a response is lost, `pipeline_status` can inspect the existing run; creating a replacement purchase is not the recovery path.

Refunds follow a similar prepare-and-submit flow. `pipeline_refund_prepare` creates a refund request, while `pipeline_refund` submits the original seller authorization or resumes the same refund. Status tools read saved results without broadcasting transactions.

## Setup and configuration

The simplest setup requires no local installation. Add the streamable-HTTP endpoint to an MCP client. For Cursor, configure `.cursor/mcp.json`; for Claude Desktop, use `claude_desktop_config.json` with the endpoint URL.

To operate a hub locally, install the package with Python 3.11 or newer:

```bash
pip install "aimarket-hub[pqc]"
aimarket quickstart --name "My hub"
aimarket serve
```

The project also provides a `uvx` invocation and Docker Compose workflow. Operators can add APIs with `aimarket add`, run admission checks with `aimarket doctor`, and deploy using included platform files. Paid oracle computation requires per-oracle paid-tier credentials.

## Tools and capabilities

- `market_search` finds catalogue entries across federated hubs.
- `market_invoke` runs a discovered capability using trial or paid access.
- `pipeline_prepare` and `pipeline_invoke` coordinate quoted multi-step graphs.
- `pipeline_status` reads pipeline state and cached signed results.
- `pipeline_refund_prepare`, `pipeline_refund`, and `pipeline_refund_status` manage eligible cash refunds.
- `weather_now` and `air_quality_now` return current readings with signed receipts.
- `nearby_sensors` finds nearby public sensors by requested layer.
- `fair_random` produces deterministic, verifiable random output from a seed.
- `x402_check` validates signed USDC payment data and reports signature-domain mismatches.

The live environmental tools have per-call prices and an initial free allowance. `fair_random` uses an ECVRF proof, while `x402_check` checks the signer, USDC rules, seller terms, and payment network details.

## Limitations and notes

Payment flows require careful handling of authorization material. Private keys should be used locally and never sent to tools. Pipeline and refund operations must resume the same run or refund rather than submit a replacement after an uncertain response. Gas sponsorship and seller cooperation affect whether some pipeline and refund operations can complete. Signed receipts provide provenance for the execution record, not an independent assessment of the result.

_Full upstream README: https://allmcps.com/mcp/aimarket-live-agent-marketplace/readme_

