npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tools402/mcp

v0.2.2

Published

MCP stdio server for tools402 — 146 AI agent tools auto-exposed from /v1/_meta (pay-per-use, USDC on Base)

Readme

@tools402/mcp

MCP stdio server — exposes all 146 tools402 endpoints as MCP tools, auto-fetched from /v1/_meta.

Install in 30 seconds

Add tools402 to your AI client by pasting the config snippet below. No account, no API key — just a session token you generate once.

Claude Desktop

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) Config file: %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "tools402": {
      "command": "npx",
      "args": ["-y", "@tools402/mcp"],
      "env": { "TOOLS402_SESSION_TOKEN": "<paste-here>" }
    }
  }
}

Cursor

Config file: ~/.cursor/mcp.json

{
  "mcpServers": {
    "tools402": {
      "command": "npx",
      "args": ["-y", "@tools402/mcp"],
      "env": { "TOOLS402_SESSION_TOKEN": "<paste-here>" }
    }
  }
}

Cline

Open VS Code → Extensions → Cline → Settings (gear icon) → MCP ServersEdit MCP Settings.

Config file: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS)

{
  "mcpServers": {
    "tools402": {
      "command": "npx",
      "args": ["-y", "@tools402/mcp"],
      "env": { "TOOLS402_SESSION_TOKEN": "<paste-here>" }
    }
  }
}

Quick install (macOS/Linux)

One-liner: generates a session token and merges tools402 into your Claude Desktop config without overwriting existing MCP servers.

SESSION=$(npx tools402-authorize --amount 10 --days 30 --private-key 0x<your-base-wallet-key>) && \
jq --arg t "$SESSION" \
   '.mcpServers.tools402 = {command:"npx",args:["-y","@tools402/mcp"],env:{TOOLS402_SESSION_TOKEN:$t}}' \
   ~/Library/Application\ Support/Claude/claude_desktop_config.json > /tmp/c402.json && \
mv /tmp/c402.json ~/Library/Application\ Support/Claude/claude_desktop_config.json

jq merges the tools402 key into an existing mcpServers object — other servers are untouched. Install jq if needed: brew install jq (macOS) or apt install jq (Debian/Ubuntu).


Detailed setup

Step 1 — Generate a session token (runs locally, private key never transmitted):

npx tools402-authorize --amount 10 --days 30 --private-key 0x<your-base-wallet-key>

Output:

TOOLS402_SESSION_TOKEN=eyJ...

This token authorizes tools402 to pull up to 10 USDC from your wallet over 30 days. Worst case: lose 10 USDC before expiry. tools402 pays gas (~$0.00001/call).

Step 2 — Paste the token into <paste-here> in your client config above, then restart the client.


Environment variables

| Var | Required | Default | |-----|----------|---------| | TOOLS402_SESSION_TOKEN | Yes | — | | TOOLS402_BASE_URL | No | https://api.tools402.dev |


How it works

Your wallet                tools402
    │                          │
    │  sign EIP-3009 locally   │
    │  (private key stays here)│
    ├─ TOOLS402_SESSION_TOKEN ─►│
    │                          │  transferWithAuthorization()
    │                          ├─────────────────► Base mainnet
    │                          │  tools402 pays gas (~$0.00001)
    │◄─────── API response ────┤

No account. No API key. No KYC. Each call is 0.001–0.05 USDC, verifiable on-chain.