
aipaygen
io.github.Damien829/aipaygen
100+ pay-per-call tools: web and company intel, AI media, crypto. x402 or credit; free trial key.
Documentation
AIPayGen
AIPayGen is a remote MCP server at https://mcp.aipaygen.com/mcp that lists 111 tools for agents. Most cost
$0.001 to $0.01 per call. You pay per call with x402 (USDC on Base) or from prepaid
credit that you top up by card or USDC.
- Free to try. A free key comes with $0.25 of trial credit (about 50 to 250 calls on the cheaper tools, no card).
Without a key you get a few free calls a day on
page_to_markdownandweb_search. - Web and company intelligence.
domain_reportdoes one-call due diligence on a site. Other tools cover DNS, WHOIS, SSL, tech stack and email security. - AI text and media. For example
generate_image($0.005). - Crypto data and safety.
token_report,token_securityandsanctions_check, plus reference data. - Pages that charge AI agents.
paid_fetchbuys pages from x402 sites with your credit, so your agent needs no wallet. The freecheck_before_payingtool shows the price first. Details: aipaygen.com/docs#paid-fetch. - Find a service. The free
find_toolandsearch_marketplacetools search a marketplace of APIs, MCP servers and skills. The x402 directory is also a free JSON API (aipaygen.com/x402/api). - For site owners. AI Terms and pay-per-crawl. The free
ai_termstool reads a site's AI Terms (/.well-known/ai-terms) and says whether a use is allowed, priced or refused.
{ "mcpServers": { "aipaygen": { "command": "npx", "args": ["-y", "aipaygen-mcp"], "env": { "AIPAYGEN_API_KEY": "apg_..." } } } }
That works in Claude Desktop, Cursor, VS Code, Windsurf and other stdio clients. Get your free key with
curl -X POST https://aipaygen.com/v1/keys; paid_fetch pays sites only from credit you add to it
(aipaygen.com/billing#topup). Claude Code connects directly:
claude mcp add --transport http aipaygen https://aipaygen.com/mcp --header "Authorization: Bearer apg_..."
This repository holds the open-source MCP packages. The hosted service itself is not open source.
| Package | Install | Source |
|---|---|---|
aipaygen-mcp on npm | npx -y aipaygen-mcp | npm/aipaygen-mcp |
aipaygen-mcp on PyPI | uvx aipaygen-mcp | python/aipaygen-mcp |
aipaygent-mcp on PyPI (old name, forwards to the above) | python/aipaygent-mcp-moved |
Both packages relay a stdio MCP client (Claude Desktop, Cursor, Claude Code, VS Code, Windsurf and others) to
the hosted server at https://aipaygen.com/mcp. You can also point a client at that URL directly.
{ "mcpServers": { "aipaygen": { "command": "npx", "args": ["-y", "aipaygen-mcp"] } } }
Tools, prices and docs: aipaygen.com/tools and aipaygen.com/docs.
Integrations
Copy-paste examples, each with a short README. All call real tools on production (stock_quote $0.001, web_search $0.005, page_to_markdown $0.002).
| Framework | Example |
|---|---|
| Claude Desktop, Claude Code, Cursor (remote MCP) | examples/mcp-clients |
| OpenAI Agents SDK (Python) | examples/openai-agents-python |
| LangChain / LangGraph (Python) | examples/langchain-python |
| Vercel AI SDK (TypeScript, MCP) | examples/vercel-ai-sdk |
Cloudflare Agents (withX402Client) | examples/cloudflare-agents |
| curl with an API key, and x402 from Node | examples/plain-http |
For websites
The site integrations (WordPress, Cloudflare Workers, Nginx, Apache, Caddy, Next.js, Express, Django), the AI Terms spec, its JSON Schema, test vectors and a Python reader are in Damien829/pay-per-crawl.
Contact
Questions, bugs and security reports: hello@aipaygen.com, or open an issue here.
License
MIT (LICENSE) for everything in this repository.
Name and trademarks
AIPayGen™ and the AIPayGen logo are trademarks of AIPayGen. The licence covers the code, not the name: please don't use the name or logo for another product or package, or in a way that suggests we run or endorse it. Saying that your tool "works with AIPayGen" is fine.
aipaygen-mcpnpm install aipaygen-mcpaipaygen-mcppip install aipaygen-mcp