Skip to main content
ClaudeWave

Install one middleware. Monetize unused 402 responses with recommendations, discovery, and machine commerce analytics.

MCP ServersOfficial Registry0 stars0 forks● JavaScriptMITUpdated today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/5/2026
Install in Claude Code / Claude Desktop
Method: NPX · @forgemeshlabs/x402-ads-mcp
Claude Code CLI
claude mcp add x402-ads-mcp -- npx -y @forgemeshlabs/x402-ads-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "x402-ads-mcp": {
      "command": "npx",
      "args": ["-y", "@forgemeshlabs/x402-ads-mcp"],
      "env": {
        "WALLET_PRIVATE_KEY": "<wallet_private_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
WALLET_PRIVATE_KEY
Use cases

MCP Servers overview

# @forgemeshlabs/x402-ads-mcp

[![M8ven Score](https://m8ven.ai/badge/mcp/forgemeshlabs-x402-ads-mcp-lwf9ka)](https://m8ven.ai/mcp/forgemeshlabs-x402-ads-mcp-lwf9ka)
[![mcpservers.org](https://mcpservers.org/badge.svg)](https://mcpservers.org/servers/forgemeshlabs/x402-ads-mcp)

**Install one middleware. Monetize unused 402 responses with recommendations, discovery, and machine commerce analytics.**

This is the MCP side of that network: what autonomous agents probe, want, and abandon across the x402 ecosystem — as tools for your agent.

Wraps the [ForgeMesh x402 Ads & Intent Network](https://ads.forgemesh.io). Paid tools settle per call in USDC on Base mainnet over the [x402 protocol](https://x402.org) — no account, no API key; your wallet is the login. Publishers get reports on their own services **free**.

## Install

```json
{
  "mcpServers": {
    "intent": {
      "command": "npx",
      "args": ["-y", "@forgemeshlabs/x402-ads-mcp"],
      "env": {
        "WALLET_PRIVATE_KEY": "0x... (optional — enables paid analytics)",
        "X402_ADS_PUBLISHER_KEY": "pub_... (optional — free reports on your own services)"
      }
    }
  }
}
```

Both env vars are optional. With neither set, free tools work fully and paid tools return the x402 payment challenge (price, network, payTo) instead of settling — useful for inspection before spending anything.

## Bonus: one-command publisher registration

This package doubles as the signup CLI for API operators (no MCP client needed):

```bash
# read the terms first: https://ads.forgemesh.io/terms
WALLET_PRIVATE_KEY=0xYOUR_WALLET npx -y @forgemeshlabs/x402-ads-mcp register \
  --url https://api.your-service.com --accept-terms
```

One $0.10 USDC payment on Base; the paying wallet becomes your identity and your publisher key is printed once. Invalid requests are rejected **before** payment — you can't pay for a doomed registration.

## Tools

| Tool | Price | What it returns |
|---|---|---|
| `get_network_counters` | free | Live network totals: 402s observed, agent-class requests, recommendations served |
| `preview_recommendations` | free | The exact recommendations block the middleware injects into a 402 |
| `get_terms` | free | Canonical terms + complete data-collection disclosure |
| `get_network_stats` | $0.005 | Network totals + monitor/indexer/agent classification split |
| `get_intent_trends` | $0.01 | Top endpoints & categories autonomous agents request |
| `get_category_demand` | $0.02 | Demand depth for one category: volume, buyer share, price points |
| `get_intent_report` | $0.05 / **free*** | Why-agents-didn't-buy funnel for one service |

\* `get_intent_report` is free with `X402_ADS_PUBLISHER_KEY` for services you contribute events to — the data co-op rule: your own data is free, forever.

## Environment

| Variable | Required | Purpose |
|---|---|---|
| `WALLET_PRIVATE_KEY` | no | Base mainnet wallet holding USDC; enables automatic settlement of paid tools |
| `X402_ADS_PUBLISHER_KEY` | no | Publisher key from ads.forgemesh.io; free lane for your own reports |
| `X402_ADS_BASE_URL` | no | Override the network base URL (default `https://ads.forgemesh.io`) |
| `BASE_RPC_URL` | no | Override the Base RPC (default `https://mainnet.base.org`) |

Use a dedicated hot wallet holding only small working balances. The key never leaves your machine — payments are signed locally (EIP-3009) and settle on-chain.

Ready-made configs live in [`examples/`](./examples): a Claude Desktop `mcpServers` block and a commented env-var template.

## Testing (safe by construction)

```bash
npm test                # smoke: MCP boots over stdio and lists its 7 tools
npm run test:free       # free tools against the live network
npm run test:challenge  # every paid tool returns an x402 challenge — no wallet, nothing can spend
npm run test:all        # all of the above
```

No test settles a payment. The challenge test deletes the payment env vars before loading, so it cannot move funds even if your shell has a wallet configured.

## The network in one sentence

**We measure machine commerce, not API content** — publishers running the [`@forgemeshlabs/x402-ads`](https://www.npmjs.com/package/@forgemeshlabs/x402-ads) middleware contribute anonymized 402 probe metadata; this MCP sells the aggregate demand signal back to agents and builders.

Full disclosure of what publishers send (and never send): https://ads.forgemesh.io/terms

## License

MIT © ForgeMesh
402adsanalyticsx402

What people ask about x402-ads-mcp

What is forgemeshlabs/x402-ads-mcp?

+

forgemeshlabs/x402-ads-mcp is mcp servers for the Claude AI ecosystem. Install one middleware. Monetize unused 402 responses with recommendations, discovery, and machine commerce analytics. It has 0 GitHub stars and its last recorded update is dated 2026-10-05.

How do I install x402-ads-mcp?

+

You can install x402-ads-mcp by cloning the repository (https://github.com/forgemeshlabs/x402-ads-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is forgemeshlabs/x402-ads-mcp safe to use?

+

Our security agent has analyzed forgemeshlabs/x402-ads-mcp and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains forgemeshlabs/x402-ads-mcp?

+

forgemeshlabs/x402-ads-mcp is maintained by forgemeshlabs. The last recorded GitHub activity is dated 2026-10-05, with 1 open issues.

Are there alternatives to x402-ads-mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy x402-ads-mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: forgemeshlabs/x402-ads-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/forgemeshlabs-x402-ads-mcp)](https://claudewave.com/repo/forgemeshlabs-x402-ads-mcp)
<a href="https://claudewave.com/repo/forgemeshlabs-x402-ads-mcp"><img src="https://claudewave.com/api/badge/forgemeshlabs-x402-ads-mcp" alt="Featured on ClaudeWave: forgemeshlabs/x402-ads-mcp" width="320" height="64" /></a>

More MCP Servers

x402-ads-mcp alternatives