# Aigentra x402 API

> Aigentra x402 API is a paid MCP server for ai models and llm tooling. Pay-per-call LLM chat, images, embeddings and data APIs for AI agents, paid in USDC. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web, CLI
- **Website:** https://api.aigentra.xyz
- **Repository:** https://github.com/ariaerendev/x402-api
- **MCP Registry name:** xyz.aigentra/api
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-03

## About

Aigentra exposes a set of HTTP endpoints that agents can call without creating an account or key. Each request is charged a small fixed amount in USDC on Base through the x402 payment protocol, so the caller pays per request rather than subscribing.

The catalogue covers OpenAI-compatible chat completions, text-to-image generation, and embeddings, alongside data routes for live crypto prices, Indonesian Rupiah conversion via ECB rates, URL-to-Markdown page reading, OpenAlex paper search, Hacker News search, Wikipedia summaries, translation and summarization. Failed or not-found calls are not charged.

The same endpoints are offered as a remote MCP server over Streamable HTTP, so MCP clients that can make x402 payments can call the tools directly. It suits developers building autonomous agents that need cheap, metered access to models and public data.

## Features

- **Pay per call:** Each request is charged in USDC on Base, with no account, subscription or API key required.
- **OpenAI-compatible inference:** Chat completions and embeddings accept the familiar OpenAI request shape across several open models.
- **Image generation:** Text-to-image requests return a 1024x1024 JPEG as base64 for a flat per-image fee.
- **Web page reader:** Converts a public URL into clean Markdown with metadata and links, suited to retrieval pipelines.
- **Public data lookups:** Covers live token prices, ECB-based currency conversion, scholarly papers, Hacker News and Wikipedia.
- **Remote MCP server:** Tools are listed for free, and calls return payment terms that an x402-capable client can satisfy.

## Good for

- Give an autonomous agent metered access to chat and embedding models without managing API keys
- Pull a web page into clean Markdown for research or retrieval-augmented generation
- Run a literature search over OpenAlex results with abstracts and DOIs
- Generate thumbnails or illustrations from a prompt inside an agent workflow
- Check token prices or convert amounts between IDR and other currencies

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http api https://api.aigentra.xyz/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "api": {
      "type": "http",
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.aigentra.xyz/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "api": {
      "type": "http",
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.aigentra.xyz/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add api --url https://api.aigentra.xyz/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.api]
url = "https://api.aigentra.xyz/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "api": {
      "httpUrl": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http api https://api.aigentra.xyz/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "api": {
      "serverUrl": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "api": {
      "type": "streamableHttp",
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "api": {
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.aigentra.xyz/mcp
```

Enter a Name (for example "Aigentra x402 API"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "api": {
      "type": "http",
      "url": "https://api.aigentra.xyz/mcp"
    }
  }
}
```

## FAQ

### Do I need an account or API key?

No. Requests are paid per call in USDC on Base using the x402 protocol, and an unpaid request returns HTTP 402 with payment terms.

### Are failed requests charged?

No. Calls that return HTTP 400 or higher are not settled.

### Which models are available for chat?

Llama 3.1 8B (default), SEA-LION v4 27B, Mistral Small 3.1 24B and Llama 3.2 3B.

### How do I connect Aigentra x402 API as an MCP server?

Point an MCP client at https://api.aigentra.xyz/mcp over Streamable HTTP. The client needs x402 payment support to complete paid calls.

### Is Aigentra x402 API free?

No. Aigentra x402 API is a paid product.

### How do I add Aigentra x402 API to Claude Code?

Run this command in your terminal: claude mcp add --transport http api https://api.aigentra.xyz/mcp

### What are the best alternatives to Aigentra x402 API?

The closest alternatives to Aigentra x402 API are AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools, DeriveAI x402 APIs, Switch402, Oblique Markets and Quartermaster.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools](https://ai-powered.com/mcp/agentx402-pay-per-call-ai-web-render-search-and-defi-tools): AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools is a freemium MCP server for cloud and infrastructure.
- [DeriveAI x402 APIs](https://ai-powered.com/mcp/deriveai-x402-apis): DeriveAI x402 APIs is a paid MCP server for web search and scraping.
- [Switch402](https://ai-powered.com/mcp/switch402-2): Switch402 is a paid MCP server for ai models and llm tooling.
- [Oblique Markets](https://ai-powered.com/mcp/oblique-markets): Oblique Markets is a paid MCP server for finance and payments.
- [Quartermaster](https://ai-powered.com/mcp/quartermaster): Quartermaster is a freemium MCP server for ai models and llm tooling.
- [trustai.center pay](https://ai-powered.com/mcp/trustai-center-pay): trustai.center pay is a paid MCP server for ai models and llm tooling.
- [PayperAnswer](https://ai-powered.com/mcp/payperanswer): PayperAnswer is a paid MCP server for ai models and llm tooling.
- [Synap](https://ai-powered.com/mcp/synap-2): Synap is a freemium MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/aigentra-x402-api
