
HTTPayer
io.github.HTTPayerPublished by GitHub account HTTPayerv0.1.7Updated Oct 24, 2026
x402 micropayments for AI agents — credits-based, no wallets, no blockchain.
Overview
Local MCP server that lets an AI assistant call x402-paid APIs through HTTPayer's credit-based proxy, without wallets or blockchain setup.
- What you can do
- Check credit balance, daily limit, spend and remaining capacity, and get a top-up link when credits run low, plus global system limits and remaining capacity for HTTPayer as a whole, and poll the status of asynchronous operations by webhook ID, and make HTTP requests to x402-enabled endpoints with automatic payment from your credits, and dry-run a request to see the cost estimate before spending credits.
- When to use it
- Useful when an assistant needs to reach APIs that charge per call through the x402 protocol and you would rather pay from a prepaid credit balance than manage a wallet. The simulate tool helps check costs before making paid requests.
- Requirements
- Runs locally via npx with Node.js, launched over stdio by an MCP client. Needs an HTTPayer API key (sk-live-...) obtained from the HTTPayer dashboard, stored in a local config file or passed during setup. Network access to the HTTPayer API is required.
Installation
In SourceWeft
- Open HTTPayer in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@httpayer/mcp
MCP (Model Context Protocol) server for HTTPayer. Lets AI agents call x402-enabled APIs using credit balance — no wallets, no blockchain, no Web3 knowledge required.
- Dashboard & API keys: app.httpayer.com
- npm: @httpayer/mcp
- GitHub: httpayer/mcp
Quickstart
With an AI agent (recommended)
Paste this into any MCP-compatible agent (Claude Code, Cursor, Windsurf, OpenCode...):
The agent detects your environment and handles everything automatically.
Without an agent (manual)
1. Run setup:
Get your API key at app.httpayer.com when prompted.
Flags:
2. Add to your client:
Claude Code:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Cursor (.cursor/mcp.json), Windsurf (.windsurf/mcp.json), Cline (.cline/mcp_settings.json):
OpenCode (opencode.json or ~/.config/opencode/config.json):
Zed:
3. Restart your client and verify:
Ask your agent: "fetch https://api.httpayer.com/demo/v1/base-weather"
A weather response means HTTPayer is working.
How it works
Runtime flow
- Your client launches the MCP server via
npx -y @httpayer/mcp@lateston startup (stdio transport). - The server reads the API key from
~/.httpayer/mcp-config.json. - The agent receives the tool list, system instructions, prompts, and resources in its context.
- When the agent calls
fetch, the MCP server forwards the request toPOST https://api.httpayer.com/proxy. - HTTPayer's proxy detects a 402, pays using your credits, retries, and returns the final response.
- The result (status, body, headers) comes back to the agent.
MCP capabilities
This server exposes three MCP primitives so agents get context automatically — without the user having to ask.
Tools
Six tools (see full reference below).
Prompts
Compatible clients (Claude Desktop, Cursor, and others) call prompts/list on connection and inject these into the agent's context proactively.
Resources
MCP tools reference
get_balance
Check credit balance and daily usage.
Input: none
Example response:
fetch
Make an HTTP request to any x402-enabled endpoint. Payment is handled automatically.
Input:
Example response:
On 502, the response includes webhook_id for async polling.
simulate
Dry-run a fetch. Returns cost estimate without spending credits.
Input: Same as fetch (except timeout).
Example response:
get_topup_link
Returns the dashboard URL to add credits. Show to user when balance is low.
Input: none
check_limits
Check global HTTPayer system daily limits and remaining capacity.
Input: none
get_webhook_status
Poll the status of an async operation. Use when fetch returns a 502 with webhook_id.
Input: webhook_id (string, required)
Status values: pending, success, success_refunded, payment_failed, upstream_error, internal_error, rate_limited
HTTPayer API reference
Authentication: x-api-key: sk-live-... header on all requests.
Proxy endpoint
POST https://api.httpayer.com/proxy
Only api_url and method are required.
Status codes:
Configuration
API key stored at: ~/.httpayer/mcp-config.json
To update: npx @httpayer/mcp setup --update-key
x402 protocol overview
x402 is an HTTP-native micropayment protocol using the 402 Payment Required status code.
Without HTTPayer:
- Client hits endpoint → gets
402+ payment requirements - Client pays on-chain (requires wallet + USDC)
- Client retries with payment proof
With HTTPayer:
- Client calls
POST /proxy { api_url, method, ... } - HTTPayer detects
402, pays using your credits - HTTPayer retries and returns the final response
All blockchain interaction happens on HTTPayer's side.
Credit system
Top up at app.httpayer.com. Below 100 credits, the agent will prompt you to top up.
Error handling
Setup errors
MCP tool errors
All errors return isError: true — the server stays alive and the agent gets a readable message.
© 2026 HTTPayer Inc.
Source: README.md at commit 0fd8780
Tools
0Version history
1- v0.1.7LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.