Skip to main content
Glama

invar402-mcp

A stdio MCP server for Invar402. It adds Invar402's free discovery tools and unpaid paid-route quotes to an agent's tool list.

The server never holds a wallet, API key, or facilitator secret, and it never pays automatically. When /verify or /services requires payment, the tool returns the x402 quote in-band. The host agent's own wallet decides whether to pay.

Website: https://invar402.com Network: Base (eip155:8453) Paid lookup: $0.002 USDC

Install and run

Requires Node.js 18 or later. Zero dependencies.

git clone https://github.com/dumeinao441-ux/invar402-mcp.git
cd invar402-mcp
node src/index.mjs

Optional environment:

  • INVAR402_BASE — API base, default https://invar402.com

  • INVAR402_LABEL — included in the User-Agent

Related MCP server: PreFlight

Claude Desktop

Add this to the Claude Desktop MCP config (then restart Claude):

{
  "mcpServers": {
    "invar402": {
      "command": "node",
      "args": ["/absolute/path/to/invar402-mcp/src/index.mjs"]
    }
  }
}

Cursor

Add this to .cursor/mcp.json or the Cursor MCP settings:

{
  "mcpServers": {
    "invar402": {
      "command": "node",
      "args": ["/absolute/path/to/invar402-mcp/src/index.mjs"]
    }
  }
}

Tools

Free routes (rate-limited by the API):

  • health — Worker health and catalog stats

  • check — Coarse pre-check for one service by id or url (no trust score)

  • search — Keyword search over the rated catalog

  • recommend — Need-based picks, such as btc-fees or bitcoin mempool fees

  • preview — Three sample /verify reports in the paid shape

  • leaderboard — Host-level mean scores

Unpaid paid routes (this server does not pay):

  • verify — GET /verify. If payment is required, returns the 402 quote

  • services — GET /services. If payment is required, returns the 402 quote

To get a full paid record, use an x402 client or start a 3-call weekly trial at https://invar402.com/trial. See also https://invar402.com/llms.txt.

Example

Ask the agent: "Recommend an x402 service for bitcoin mempool fees, then preview the report shape."

The agent should call recommend with need=btc-fees, then preview or check. It should not expect this MCP server to settle a payment.

License

MIT. This package is our own code. Public MIT clients were used only as shape guides. No payment keys are included.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers