Back to Browse

Invar402 MCP Server

Developer ToolsLow Risk9.5MCP RegistryLocal
Free

Server data from the Official MCP Registry

Invar402 trust scores for x402 data APIs, checked against reference data.

About

Invar402 trust scores for x402 data APIs, checked against reference data.

Security Report

9.5
Low Risk9.5Low Risk

Valid MCP server (0 strong, 2 medium validity signals). 1 known CVE in dependencies Package registry verified. Imported from the Official MCP Registry.

14 files analyzed · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Optional API base. Defaults to https://invar402.comOptional

Environment variable: INVAR402_BASE

Optional label included in the User-Agent. Defaults to invar402-mcp.Optional

Environment variable: INVAR402_LABEL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "invar402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "invar402-mcp@0.1.1"
      ],
      "env": {
        "INVAR402_BASE": "your-invar402-base-here",
        "INVAR402_LABEL": "your-invar402-label-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Invar402 public packages

npm PyPI

This repository holds the Invar402 MCP server and thin plugins for other agent frameworks. Every package is our own MIT-licensed code. None of them hold a wallet, API key, or facilitator secret, and none of them pay automatically.

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

Paid /verify and /services calls return the x402 402 quote unless the developer opts in with both a payWithX402 / pay_with_x402 flag and a host-provided x402 fetch wrapper. Packages will not build a payer from a private key or from an AgentKit wallet.

Packages

FolderRegistry nameWhat it is
(repo root)invar402-mcp (npm)Stdio MCP server
packages/clientinvar402-client (npm)Shared HTTP client
packages/agentkitinvar402-agentkit (npm)Coinbase AgentKit action provider (TypeScript)
packages/agentkit-pyinvar402-agentkit (PyPI)Coinbase AgentKit action provider (Python)
packages/langchain-pylangchain-invar402 (PyPI)LangChain tools (Python)
packages/langchain-jslangchain-invar402 (npm)LangChain tools (JavaScript)
packages/ai-sdkinvar402-ai-sdk (npm)Vercel AI SDK tool factory

All of these names are published. See PUBLISH.md for later release commands.

Install

The MCP server is invar402-mcp on npm, currently 0.1.1. Listings: mcp.so and Glama.

npx (recommended)

No global install is required:

npx -y invar402-mcp

Or npm install -g invar402-mcp.

Claude Desktop, Cursor, or mcp.so:

{
  "mcpServers": {
    "invar402": {
      "command": "npx",
      "args": ["-y", "invar402-mcp"]
    }
  }
}

Optional environment: INVAR402_BASE (API base, default https://invar402.com) and INVAR402_LABEL (included in the User-Agent).

Docker

The Dockerfile at the repo root starts the stdio server with no secrets. stdin must stay attached (-i); there is no HTTP port.

git clone https://github.com/dumeinao441-ux/invar402-mcp.git
cd invar402-mcp
docker build -t invar402-mcp .
docker run --rm -i invar402-mcp
{
  "mcpServers": {
    "invar402": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "invar402-mcp"]
    }
  }
}

Pass optional env with -e INVAR402_BASE=... and -e INVAR402_LABEL=.... podman works with the same flags. Glama builds this Dockerfile for its listing once their review finishes.

From a local checkout

git clone https://github.com/dumeinao441-ux/invar402-mcp.git
cd invar402-mcp
node bin/invar402-mcp.js

To pin a checkout in a client, use "command": "node" and "args": ["/absolute/path/to/invar402-mcp/bin/invar402-mcp.js"]. src/index.mjs also works.

Python and other npm packages

pip install langchain-invar402
pip install invar402-agentkit

Other npm packages: npm install invar402-client, npm install invar402-agentkit, npm install langchain-invar402, npm install invar402-ai-sdk. PyPI: langchain-invar402, invar402-agentkit.

Tests from source

git clone https://github.com/dumeinao441-ux/invar402-mcp.git
cd invar402-mcp
npm test                 # MCP server only
bash scripts/test-all.sh # every package, plus a live free-route smoke test

Set INVAR402_LIVE=0 to skip the live smoke test.

invar402-mcp

A stdio MCP server. It adds Invar402's free discovery tools and unpaid paid-route quotes to an agent's tool list. When /verify or /services requires payment, the tool returns the x402 quote in-band. The host agent's own wallet decides whether to pay.

Requires Node.js 18 or later. Zero dependencies. Use the npx, Docker, or checkout commands in Install.

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
  • rankings — Category rankings (omit category to list categories; pass e.g. crypto-price or weather for a ranked list)
  • compare — Price-vs-quality compare (id, q, or category) with a value_pick
  • watch_create — Create a free grade-drop watchlist (ids, optional threshold); returns a 30-day token
  • watch_changes — Poll grade changes since the last poll (token)
  • get_history — Daily score and uptime history for one service (id, optional days); days with no stored observation are null
  • seller_selfcheck — Unpaid self-check of one https x402 endpoint (url); never pays

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
  • verify_bulk — GET /verify/bulk?ids=.... If payment is required, returns the 402 quote. Flat $0.01 USDC for up to 20 ids. This server never pays.

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 and Apache clients were used only as shape guides. No payment keys are included.

Reviews

No reviews yet

Be the first to review this server!