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

askclaude-mcp

v1.0.0

Published

MCP server for AskClaude — pay-per-query Claude AI via x402 micropayments

Readme

askclaude-mcp

MCP (Model Context Protocol) server for AskClaude — pay-per-query Claude AI via x402 micropayments.

This server exposes AskClaude's paid endpoints as tools that Claude Code (or any MCP client) can call. Each tool call triggers a request to the AskClaude x402 service, where payment is handled in USDC on Base network.

Tools

| Tool | Description | Cost | |------|-------------|------| | ask_claude | Ask Claude Haiku/Sonnet/Opus a question | $0.01 / $0.03 / $0.10 | | summarize | Summarize text (articles, docs, whitepapers) | $0.02 | | code_review | Review code with quality score and suggestions | $0.05 | | translate | Translate text between any languages | $0.02 | | sentiment | Analyze sentiment of text | $0.01 | | crypto_analysis | AI crypto analysis with live CoinGecko data | $0.03 |

Installation

Option 1: Add to Claude Code MCP config

Add this to your Claude Code settings (~/.claude/settings.json or project .mcp.json):

{
  "mcpServers": {
    "askclaude": {
      "command": "node",
      "args": ["/path/to/askclaude-mcp/index.js"],
      "env": {
        "ASKCLAUDE_BASE_URL": "https://askclaude.shop"
      }
    }
  }
}

Option 2: Run with npx (after publishing)

{
  "mcpServers": {
    "askclaude": {
      "command": "npx",
      "args": ["askclaude-mcp"],
      "env": {
        "ASKCLAUDE_BASE_URL": "https://askclaude.shop"
      }
    }
  }
}

Option 3: Run manually

cd askclaude-mcp
npm install
node index.js

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | ASKCLAUDE_BASE_URL | AskClaude service URL | Cloudflare tunnel URL | | ASKCLAUDE_API_KEY | Optional API key for authenticated access | (none) |

How x402 Payment Works

  1. You call a tool (e.g., ask_claude with prompt "What is Bitcoin?")
  2. The MCP server sends the request to the AskClaude service
  3. The service is gated by x402 — it requires USDC payment on Base network
  4. If payment is configured (via x402 client wallet), it's handled automatically
  5. The AI response is returned as the tool result

For the payment flow to work end-to-end, the AskClaude service handles x402 negotiation. Users interact with the service through this MCP layer — the x402 payment middleware on the server side validates payments before processing requests.

Usage Examples

Once configured in Claude Code, you can use natural language:

  • "Use askclaude to ask opus: what are the implications of quantum computing on cryptography?"
  • "Summarize this article using askclaude"
  • "Review this Python code with askclaude"
  • "Translate 'hello world' to Japanese using askclaude"
  • "What's the sentiment of this tweet? Use askclaude"
  • "Get crypto analysis for ethereum using askclaude"

Development

# Install dependencies
npm install

# Test locally (stdio mode)
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node index.js

# Point to local service
ASKCLAUDE_BASE_URL=http://localhost:4021 node index.js

Architecture

Claude Code  --(MCP/stdio)-->  askclaude-mcp  --(HTTP/x402)-->  AskClaude Service
   (user)                      (this package)                   (askclaude.shop)
                                                                     |
                                                              Claude API (Anthropic)
                                                              CoinGecko (prices)

License

MIT

Author

@pvega23