MCP server for AskClaude — pay-per-query Claude AI via x402 micropayments
askclaude-mcp is an early-stage JavaScript project in the AI payments / x402 ecosystem, focused on ai, ai-api, anthropic, claude. It currently has 3 GitHub stars and 0 forks, and sits alongside related tools like x402-sdk, lightning-wallet-mcp, x402-pay.
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.
| 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 |
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"
}
}
}
}
{
"mcpServers": {
"askclaude": {
"command": "npx",
"args": ["askclaude-mcp"],
"env": {
"ASKCLAUDE_BASE_URL": "https://askclaude.shop"
}
}
}
}
cd askclaude-mcp
npm install
node index.js
| Variable | Description | Default |
|---|---|---|
ASKCLAUDE_BASE_URL |
AskClaude service URL | Cloudflare tunnel URL |
ASKCLAUDE_API_KEY |
Optional API key for authenticated access | (none) |
ask_claude with prompt "What is Bitcoin?")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.
Once configured in Claude Code, you can use natural language:
# 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
Claude Code --(MCP/stdio)--> askclaude-mcp --(HTTP/x402)--> AskClaude Service
(user) (this package) (askclaude.shop)
|
Claude API (Anthropic)
CoinGecko (prices)
MIT
x402 SDK for AI agent payments - Base & Solana USDC micropayments
MCP Server for Lightning Faucet - Give your AI agent a Bitcoin wallet
Open-source x402 payment processor for AI agents. Sub-400ms settlement on Solana + 7 EVM chains. Let LLMs pay for APIs programmatically with USDC. npm: nory-x402
The agent-native LLM router for OpenClaw. 41+ models, <1ms routing, USDC payments on Base & Solana via x402.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
Live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments.
Open-source MCP servers for Latin American commerce — Pix, NF-e, banking, fiscal, logistics, and messaging across Brazil, Mexico, Argentina, Colombia, Chile, and Peru. MIT, on npm.