Skip to main content
Glama

imd-mcp

Hire the IMD swarm from any AI agent, without wasting IMD.

imd-mcp is an MCP server for Claude Desktop, Claude Code, Cursor, Windsurf or any MCP client. With it, your assistant can commission IMD's agent swarm: websites, sourced reports, code audits, images, smart-contract projects and oracle questions.

A built-in saver stands between the agent and your wallet:

The saver…

Why it matters

searches what already exists before anything is bought

over 1,300 shipped results are public, and reusing one is free

requires IMD's free check for the exact body, proven by a signed checkToken

IMD keeps the payment of a body it refuses, so an unchecked order can be money lost

blocks duplicates of something you already bought

asking twice should not mean paying twice

holds hard caps: IMD per order and IMD per day

an agent in a loop cannot drain the wallet

waits for confirm: true after the user has seen the plan and the price

no silent spending

keeps every order and its read token on disk

nothing paid is ever lost

explains IMD errors in plain words

so problems get fixed rather than retried blindly

Install

# 1. Optional, only for ordering: a fresh wallet just for IMD orders
npx -y github:RobertKodes/imd-mcp wallet

# 2. Print the config for your client: claude | claude-code | cursor | windsurf
npx -y github:RobertKodes/imd-mcp setup claude

# 3. Check the network, the wallet and the limits
npx -y github:RobertKodes/imd-mcp doctor

Paste the printed block into your client's MCP config and restart the client. Without a wallet, search, drafts, checks and tracking all still work for free.

To order, fund the wallet with a few IMD (0.5 IMD per order on Ethereum mainnet, 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7) and a little ETH. Then run imd_setup_wallet once for the Permit2 approval.

Related MCP server: meshledger-mcp-server

Tools

Tool

Cost

What it does

imd_status

free

Network health, price, wallet balances and Permit2, today's spend against the caps, the saver's totals

imd_find_existing

free

Search shipped work: sites, research, audits, code, tokens, contracts, media

imd_draft

free

A valid body for a website, tool, report, audit (it resolves the repo commit itself), image or contracts, with IMD's check, plan, cost, similar work and a checkToken

imd_draft_oracle

free

A typed oracle question (panel, quorum, sources, definitions), with IMD's wording screen

imd_check

free

IMD's check on any body you wrote yourself

imd_order

spends IMD

Quote, pay with x402 + Permit2, sign the quote approval, submit. Guarded by the saver

imd_track

free

Order → payment → admission → job steps → delivered site, repo and files

imd_orders

free

History, spend, and what the saver prevented

imd_setup_wallet

ETH gas

The one-time Permit2 approval

imd_explain

free

What an IMD error code means and what to do

There is also a prompt, hire-the-swarm, which walks an agent through find → draft → confirm → order → track.

Settings (environment)

Variable

Default

IMD_KEY_FILE / IMD_PRIVATE_KEY

—

The order wallet. Prefer the key file imd-mcp wallet creates

IMD_DAILY_CAP

2

Most IMD spent per UTC day

IMD_MAX_PER_ORDER

0.5

Most IMD for one order. A schedule costs 0.5 × runs

IMD_REQUIRE_CONFIRM

1

0 lets an agent order without an explicit confirm

IMD_DEDUPE_HOURS

168

How long an identical body counts as a duplicate

IMD_READ_ONLY

0

1 disables ordering entirely

IMD_MCP_HOME

~/.imd-mcp

Orders, request token, saver state, wallet key

IMD_API, ETH_RPC

api.imd.fun, publicnode

Endpoints

Develop

pnpm install
pnpm test            # saver, drafts, and an in-memory MCP client/server round trip
pnpm build
node scripts/smoke.mjs   # live: stdio server against api.imd.fun, free tools only

The paid path follows IMD's documented flow and the @x402/core / @x402/evm 2.28.0 versions the plane pins. The free tools are verified live. The first paid order deserves a small wallet.

MIT. Not affiliated with IMD.

Available Tools

10 tools
imd_checkFree check of any IMD bodyA

Runs IMD's free check on a body you wrote yourself: blockers, suggestions, the plan, the cost and similar existing work. Returns the checkToken imd_order requires. Free; holds nothing.

Inputs: input (required), action (required).

imd_draftDraft a valid IMD orderA

Builds a correct body for a website, tool, report, audit, image or contracts job, runs IMD's free check on it, and returns the body, the plan, the cost, similar existing work and a checkToken for imd_order. Free.

Inputs: kind (required), brief (required), repoUrl, siteLabel, +1 more.

imd_draft_oracleDraft an oracle questionC

Builds a typed question for an IMD oracle panel (independent agents, quorum, EIP-712 attestation), runs the free check including the wording screen, and returns the body and a checkToken. Free.

Inputs: evidence (required), question (required), answerType (required), hours, +5 more.

imd_explainExplain an IMD error codeC

Turns an IMD error code into what happened and what to do. Free.

Inputs: code (required).

imd_find_existingFind existing IMD work before payingA

Searches everything the swarm already shipped (sites, research, audits, code, tokens, contracts, media). Reusing a public result costs nothing. Free.

Inputs: query (required), type, limit.

imd_orderPay for and open IMD workA

Pays from the configured wallet (x402 + Permit2 + quote approval) and opens the work. The saver refuses it without a passing checkToken for this exact body, for a duplicate of something you already bought, over the per-order or daily caps, or without confirm: true. SPENDS IMD.

Inputs: input (required), action (required), checkToken (required), title, +2 more.

imd_ordersOrder history and savingsC

Everything bought through this install: orders, states, IMD spent today and in total, and what the saver prevented. Free.

Inputs: limit.

imd_setup_walletApprove Permit2 for IMD (once)A

IMD payments go through Permit2. This sends the one-time ERC-20 approval from the configured wallet (costs ETH gas). Requires confirm: true.

Inputs: confirm.

imd_statusIMD status, wallet and limitsA

Network health, the live price per action, this wallet's IMD/ETH balance and Permit2 approval, today's spend against the caps, and what the saver has saved so far. Free.

Inputs: no named parameters.

imd_trackTrack an order or jobA

Follows an order through payment and admission, then its job step by step, and returns the delivered site, repo and files once done. Accepts an orderId, a jobId or a prefix from imd_orders. Free.

Inputs: id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool has a fairly distinct role (check, draft, order, track, list), and descriptions clarify boundaries. Minor overlap between imd_check and imd_draft (which also runs a check) and the imd_order/imd_orders singular-plural pair could briefly confuse an agent, but context makes the distinction clear.

    Naming Consistency5/5

    All tools use a uniform imd_ prefix with snake_case verb-style names (imd_check, imd_draft, imd_order, imd_track). The only near-collision is imd_order vs imd_orders, which is a natural singular/plural distinction rather than a convention break.

    Tool Count5/5

    Ten tools is well within the ideal 3-15 range and each maps to a distinct step: check, draft, draft_oracle, order, track, orders, status, find_existing, setup_wallet, explain. Nothing feels redundant or padded.

    Completeness4/5

    The surface covers the full flow well: discovery (find_existing, status), preparation (check, draft, draft_oracle), payment (setup_wallet, order), and follow-through (track, orders, explain). Missing explicit cancel/refund or dispute operations, but core lifecycle is covered.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Universal coordination hub for AI agents. Find collaborators, negotiate terms, form contracts, and build reputation through an MCP interface. Supports natural language search across agent networks.
      5
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      AI-to-AI economic marketplace with on-chain USDC escrow on Base L2. Agents browse skills, hire each other, manage jobs, release payments, and handle disputes via AI Judge. 15 MCP tools, reputation scoring.
      15
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents such as Claude, Gemini, and a headless Runner to post, list, claim, report, and defer work on a single shared board through seven MCP tools. Every call carries a human-rooted chain of authority that is verified on each call, narrows at every hand-off, and can be revoked at any link.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables developers and AI agents to check, price, pay for, and follow paid work on a network of AI agents over stdio or streamable HTTP, exposing eight tools where only ordering can spend and only behind four safety gates. Without a wallet key every tool stays free and ordering returns a dry run, so an agent can inspect plans and prices before any payment is signed.
      MIT