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

@nmrtn/blacktea-mcp

v0.1.3

Published

MCP server exposing blacktea's pay tool to Claude Desktop, Cursor, and other MCP-aware clients.

Readme

@nmrtn/blacktea-mcp

MCP server exposing blacktea's pay tool to Claude Desktop, Cursor, and any other MCP-aware client. Drop one config block and your assistant gains a typed pay tool with full policy + audit enforcement.

Tools exposed

| Tool | What it does | |---|---| | pay | Make a paid HTTP request via x402. Library applies your policy before signing; large or unusual payments may require approval. Returns the response body and a payment receipt. | | audit_query | Read recent payment events from the audit log. Useful when the assistant needs to explain what was paid for or how much was spent today. |

Install

You do not install it permanently. The MCP client spawns it on demand via npx. Configure once per client.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Add under mcpServers:

{
  "mcpServers": {
    "blacktea": {
      "command": "npx",
      "args": ["-y", "@nmrtn/blacktea-mcp"],
      "env": {
        "EVM_PRIVATE_KEY": "0xYourBaseSepoliaPrivateKey",
        "BLACKTEA_POLICY": "/absolute/path/to/policy.json",
        "BLACKTEA_CHAIN": "base-sepolia"
      }
    }
  }
}

Restart Claude Desktop. The new tool appears in the tool list. Ask "use the pay tool to fetch <some x402 URL>" and watch.

Cursor

In Cursor settings, add an MCP server with the same shape: npx -y @nmrtn/blacktea-mcp, and the same env vars.

Cline / Continue / other MCP-aware clients

Same pattern. The MCP standard is consistent across clients.

Configuration env vars

| Env var | Required | Default | What | |---|---|---|---| | EVM_PRIVATE_KEY | yes | none | 0x-prefixed wallet private key. Holds USDC for payments. | | BLACKTEA_POLICY | no | ./policy.json | Path to the policy file. Use an absolute path; relative paths resolve from wherever the MCP client spawns the server. | | BLACKTEA_CHAIN | no | base-sepolia | EVM chain identifier passed to x402. Use base for mainnet. | | BLACKTEA_HISTORY | no | ./.blacktea/history.jsonl | Path to the JSONL audit log. |

What a policy file looks like

See docs/policy-cookbook.md in the main repo for the full DSL reference. Quick example:

{
  "rules": [
    { "if": { "amount_gte": 5 },   "then": { "reject": "absolute_cap" } },
    { "if": { "amount_lt": 0.1 },  "then": { "approve": true } },
    { "if": { "amount_gte": 0.1 }, "then": { "approval": "console" } }
  ],
  "default": { "approval": "console" }
}

Save it somewhere stable (e.g. ~/.config/blacktea/policy.json) and point BLACKTEA_POLICY at it.

What this does NOT do

  • It does not hold your private key for you. The key stays on your machine; we never see it.
  • It does not include a UI for approval prompts. v0.0.1 uses the console channel which prompts on stderr; for Slack/SMS/etc, the caller of the underlying library can supply an onApprovalNeeded callback (SDK path, not yet exposed through MCP).

See also

License

MIT.