MCP Hub
Back to servers

AiPayGen

88 AI tools — research, write, code, translate, analyze, scrape, agent memory, and more

Registry
Stars
1
Updated
Mar 7, 2026

Quick Install

uvx aipaygen-mcp

AiPayGen

Pay-per-use Claude AI API for autonomous agents. 140+ endpoints, USDC micropayments on Base via x402, no API keys or signups required.

License: MIT PyPI - MCP PyPI - langchain PyPI - llamaindex npm

How it works

  1. Agent calls any endpoint (e.g. POST /research)
  2. First 10 calls/day are free — no payment needed
  3. After that, the server returns HTTP 402 with payment instructions
  4. Agent signs a USDC transaction on Base and retries with an X-Payment header
  5. Server verifies payment via CDP x402 and returns the result
Agent ──POST /research──▶ AiPayGen ──402 + payment info──▶ Agent
Agent ──POST /research + X-Payment──▶ AiPayGen ──200 + result──▶ Agent

Quick start

Try free (no setup)

curl -X POST https://api.aipaygen.com/preview \
  -H "Content-Type: application/json" \
  -d '{"query": "What is x402?"}'

Python

pip install aipaygen-langchain
from aipaygen_langchain import AiPayGenToolkit

tools = AiPayGenToolkit(x402_token="your_token").get_tools()
# Use with LangChain agents, CrewAI, etc.

JavaScript / TypeScript

npm install aipaygen
import { AiPayGen } from "aipaygen";
const client = new AiPayGen({ token: "your_token" });
const result = await client.research("quantum computing trends");

MCP Server (Claude Desktop, Cursor, etc.)

Connect as a remote MCP server — no local install:

https://mcp.aipaygen.com/mcp

Or run locally:

pip install aipaygen-mcp
aipaygen-mcp

Claude Desktop config:

{
  "mcpServers": {
    "aipaygen": {
      "command": "aipaygen-mcp"
    }
  }
}

Endpoints

AI / NLP

EndpointMethodDescription
/researchPOSTDeep research on any topic
/summarizePOSTCompress text (bullets, paragraph, TLDR)
/analyzePOSTStructured analysis with findings
/translatePOSTTranslate to any language
/sentimentPOSTPolarity, score, emotions
/keywordsPOSTExtract keywords and topics
/classifyPOSTClassify into custom categories
/rewritePOSTRewrite for audience or voice
/extractPOSTPull structured JSON from text
/qaPOSTQ&A over a document
/codePOSTGenerate code in any language
/diagramPOSTGenerate Mermaid diagrams
/chainPOSTMulti-step AI pipelines

Web Intelligence

EndpointMethodDescription
/scrapePOSTScrape any webpage
/searchPOSTWeb search with AI summary
/researchPOSTDeep multi-source research
/extract/{url}GETExtract structured data from URL
/scrape/tweetsPOSTSearch and scrape tweets
/scrape/google-mapsPOSTGoogle Maps business data

Agent Memory

EndpointMethodDescription
/memory/setPOSTStore persistent key-value data
/memory/getPOSTRetrieve stored data
/memory/searchPOSTSearch memories by keyword

Discovery

EndpointMethodDescription
/discoverGETFull endpoint catalog
/catalogGETBrowse discovered APIs
/openapi.jsonGETOpenAPI 3.0 spec
/llms.txtGETLLMs.txt for AI agents
/.well-known/agent.jsonGETAgent discovery manifest
/previewPOSTFree 120-token Claude demo

Full list: api.aipaygen.com/discover

Architecture

  • Runtime: Flask + Gunicorn on Raspberry Pi 5
  • AI: Claude Haiku 4.5 via Anthropic API
  • Payments: x402 protocol, USDC on Base Mainnet, verified via CDP
  • Tunnel: Cloudflare Tunnel → api.aipaygen.com
  • Storage: SQLite (memory, usage tracking, API keys)
  • Discovery: OpenAPI, LLMs.txt, MCP, agents.json, ai-plugin.json

Links

ResourceURL
Live APIhttps://api.aipaygen.com
Discover endpointshttps://api.aipaygen.com/discover
OpenAPI spechttps://api.aipaygen.com/openapi.json
LLMs.txthttps://api.aipaygen.com/llms.txt
MCP serverhttps://mcp.aipaygen.com/mcp
Bloghttps://api.aipaygen.com/blog
npm SDKhttps://www.npmjs.com/package/aipaygen
PyPI (LangChain)https://pypi.org/project/aipaygen-langchain/
PyPI (LlamaIndex)https://pypi.org/project/aipaygen-llamaindex/

License

MIT

Reviews

No reviews yet

Sign in to write a review