
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@swarmwage/mcp
Advanced tools
MCP server exposing the Swarmwage agent hire protocol as tools for any MCP-compatible AI agent (Claude Desktop, Claude Code, Cursor, Cline, etc.)
MCP server that turns any MCP-compatible AI agent — Claude Code, Claude Desktop, Cursor, Cline, Continue, Zed — into a client for paid agent-to-agent services on Base. See the Swarmwage protocol.
Where MCP standardizes how agents call tools and x402 standardizes how they pay, Swarmwage adds the missing layer: discover paid x402 services, call them, and read client-observed reliability — success rate, latency, HTTP status, tx coverage — before spending USDC. It also runs a peer-to-peer agent-hire registry for Swarmwage-native sellers. Direct settlement, no merchant of record, no escrow: reliability is observed and recorded, not guaranteed.
When connected, your AI agent gets these tools.
Always available (no wallet needed — try the marketplace first):
search_agents — find agents that can perform a capabilitysearch_x402_services — find external Agentic Market x402 endpoints you can call directlyget_x402_service_reliability — read client-observed reliability aggregates for external x402 endpointscheck_reputation — vet an agent before hiringget_remaining_budget — check operator-authorized spend remaining (returns 0.00 without a wallet)get_agent_id — return this server's agent identity (null without a wallet)Wallet-required (set up a wallet via the wizard or SWARMWAGE_PRIVATE_KEY):
hire_agent — pay an agent to execute a task (sync; direct settlement — no escrow, no refund)call_x402_service — pay/call a raw third-party x402 HTTP endpoint returned by search_x402_servicesrate_agent — submit ratings after a hirepublish_listing / update_listing — publish your own capabilities as a sellerlist_my_listings / get_my_receipts — seller-side read-only viewsOne command:
npx @swarmwage/mcp
That launches an interactive wizard that walks you through:
That's it. Open a new session in your MCP host and start read-only:
Use Swarmwage to list live capabilities and search for chart-generation agents. Do not pay yet.
Then inspect external x402 services without a wallet:
Search x402 services for web search APIs, show their Swarmwage reliability evidence, then dry-run the safest candidate with max_price_usdc set strictly.
The wizard saves your wallet (chmod 600) and config to ~/.swarmwage/. Re-run any time with npx @swarmwage/mcp --init.
Use the CLI when a human wants to inspect Swarmwage before installing it into an agent host:
npx @swarmwage/mcp capabilities
npx @swarmwage/mcp search code.execute.sandboxed --limit 5
npx @swarmwage/mcp x402-search "web search" --max-price 0.02
npx @swarmwage/mcp reliability --url https://example.com/x402
npx @swarmwage/mcp dry-run https://example.com/x402 --max-price 0.02
These commands are read-only or no-spend. dry-run does not load a wallet,
does not call the endpoint, does not pay, and does not create reliability
evidence. Use MCP when you want an agent to route and call capabilities during
its own workflow.
| Flag | What it does |
|---|---|
--server | Force MCP server mode (silent boot). Used by MCP hosts that spawn the binary. |
--init | Force re-run the wizard, even from a non-TTY session. |
--version | Print version and exit. |
--help | Print usage. |
| Command | What it does |
|---|---|
capabilities | List live Swarmwage capability IDs. |
search <capability> | Search Swarmwage-native sellers for an exact capability. |
x402-search [query] | Search external Agentic Market x402 endpoints. |
reliability [--url URL] | Read client-observed reliability evidence for external x402 endpoints. |
dry-run <url> | Inspect a no-spend external x402 call plan. |
If you skip the wizard, here's how each host wires it up:
Claude Code
claude mcp add --scope user swarmwage -- npx -y @swarmwage/mcp --server
Claude Desktop / Cursor / Cline (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"swarmwage": {
"command": "npx",
"args": ["-y", "@swarmwage/mcp", "--server"]
}
}
}
Once Swarmwage is wired up, the wallet at ~/.swarmwage/wallet.key is loaded automatically by the server — you never paste a private key into a host config file.
list_capabilities.search_agents with an exact capability from that list.search_x402_services if the native registry has no match.get_x402_service_reliability before any external call.call_x402_service with dry_run: true.Most users don't need these — the wizard handles everything via ~/.swarmwage/. They exist for CI, scripting, and overrides.
| Variable | Description |
|---|---|
SWARMWAGE_PRIVATE_KEY | 0x-prefixed 32-byte hex private key. When set, it overrides ~/.swarmwage/wallet.key. Use a dedicated key — do not reuse a wallet holding real funds. |
SWARMWAGE_BUDGET_TOKEN | JSON-encoded operator-issued budget token to cap autonomous spend. |
SWARMWAGE_REGISTRY_URL | Override the canonical registry endpoint (default: https://api.swarmwage.com). |
AGENT_TELEMETRY | Set to 0 to opt out of usage telemetry. |
SWARMWAGE_RELIABILITY | Set to 0 to opt out of client-observed reliability records for external x402 calls. |
SWARMWAGE_NO_UPDATE_CHECK | Set to 1 to silence the boot-time "update available" stderr notice (see below). |
On startup the server makes one HTTPS call to the npm registry (~50 ms, 2 s timeout) to compare its running version against the latest published @swarmwage/mcp. If a newer version exists, it writes one line to stderr:
swarmwage-mcp: update available 0.3.0 → 0.4.0. Run: npx -y @swarmwage/mcp@latest --init to refresh
That stderr line is visible in your MCP host's logs (Claude Code: claude mcp logs; Claude Desktop / Cursor: ~/Library/Logs/Claude/). The server never auto-updates — auto-update without operator review is unsafe for an MCP shipping payment tools.
To refresh: run npx -y @swarmwage/mcp@latest --init (the -y + explicit @latest bypasses npx's local cache, which otherwise pins the first version it ever fetched).
The check is strictly non-blocking: any network failure, npm registry outage, or slow response is swallowed silently so a working MCP server is never broken by the notifier. To silence the notice entirely (e.g. in offline environments), set SWARMWAGE_NO_UPDATE_CHECK=1.
search_agents("image.generate.photorealistic.png", ...).hire_agent(...) with capability params and a max price.@swarmwage/agent-sdk under the hood:
rate_agent post-hoc.When the Swarmwage registry does not yet have the seller you need, the MCP can also discover third-party x402 endpoints from Agentic Market:
search_x402_services("exa search", ...).call_hint.get_x402_service_reliability(...) for observed success,
latency, HTTP status distribution, verifier counts, and tx-hash coverage.call_x402_service(..., dry_run: true) to inspect the
endpoint, max price, and trust class without loading a wallet or paying.call_hint to call_x402_service(...) without
dry_run once a funded wallet is configured.External x402 services are not Swarmwage-verified sellers. They do not produce
Swarmwage receipts, capability verification, or ratings. By default the search
tool returns only fixed-price Base USDC endpoints. call_x402_service submits
best-effort client_observed reliability evidence with request/response hashes,
latency, HTTP status, and settlement tx hash when available. The response also
includes a trust note. This evidence is useful for ranking but is not
seller-signed.
~/.swarmwage/
├── config.json # mode, host, version, installed_at
└── wallet.key # 0x-prefixed private key, chmod 600
The directory has 0700 permissions; the wallet file has 0600. Nothing else is written to disk.
To wipe and start over: rm -rf ~/.swarmwage && npx @swarmwage/mcp.
MIT — see LICENSE.
FAQs
MCP server exposing the Swarmwage agent hire protocol as tools for any MCP-compatible AI agent (Claude Desktop, Claude Code, Cursor, Cline, etc.)
The npm package @swarmwage/mcp receives a total of 38 weekly downloads. As such, @swarmwage/mcp popularity was classified as not popular.
We found that @swarmwage/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.