# XDC AI

> XDC AI is an MCP server for finance and payments. Wallet and x402 payment tools for AI agents paying in USDC on XDC. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **MCP Registry name:** io.github.0xbeny/xdc-ai
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [agent payments](https://ai-powered.com/categories/agent-payments)
- **Listing updated:** 2026-11-21

## About

XDC AI gives an AI agent its own wallet so it can pay for x402-gated APIs in USDC on the XDC network without a human approving each request. Spending is bounded by on-chain limits set for the wallet, so an agent can only transact within the allowance it was given.

The server is reached over streamable HTTP at a hosted endpoint, so an MCP-compatible client can connect to it without installing local packages. Once connected, the agent can call paid APIs and have the payment settled automatically in the background.

It suits developers building autonomous agents that need to consume pay-per-request APIs and want spending controls enforced on-chain rather than in application code.

## Features

- **Agent wallet:** Gives an AI agent a wallet it can use to hold and send USDC on XDC.
- **Automatic x402 payments:** Settles payment for x402-gated API calls without manual confirmation at each step.
- **On-chain spending limits:** Caps what the agent can spend using limits enforced by the blockchain.
- **Hosted MCP endpoint:** Connects to MCP clients over streamable HTTP with no local package install.

## Good for

- Letting an autonomous agent pay for pay-per-call APIs in USDC
- Running agent workflows that need budgeted spending without per-transaction approval
- Adding micropayment capability to an MCP-based agent on the XDC network

## Install

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

```sh
claude mcp add --transport http xdc-ai https://api.xdcai.tech/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": {
    "xdc-ai": {
      "type": "http",
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

```text
https://api.xdcai.tech/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": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "type": "http",
      "url": "https://api.xdcai.tech/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.xdcai.tech/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 xdc-ai --url https://api.xdcai.tech/mcp
```

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

```toml
[mcp_servers.xdc-ai]
url = "https://api.xdcai.tech/mcp"
```

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "httpUrl": "https://api.xdcai.tech/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http xdc-ai https://api.xdcai.tech/mcp

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "serverUrl": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/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": {
    "xdc-ai": {
      "type": "streamableHttp",
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/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": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "xdc-ai": {
      "url": "https://api.xdcai.tech/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.xdcai.tech/mcp
```

Enter a Name (for example "XDC AI"), 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": {
    "xdc-ai": {
      "type": "http",
      "url": "https://api.xdcai.tech/mcp"
    }
  }
}
```

## FAQ

### What currency do agents pay in?

Payments are made in USDC on the XDC network.

### How is spending controlled?

Spending is kept within limits enforced on-chain for the agent's wallet.

### How does a client connect?

Through a streamable HTTP MCP endpoint hosted at api.xdcai.tech.

### How do I add XDC AI to Claude Code?

Run this command in your terminal: claude mcp add --transport http xdc-ai https://api.xdcai.tech/mcp

### What are the best alternatives to XDC AI?

The closest alternatives to XDC AI are x402 Wallet, X402 Payagent MCP, three.ws Agent Wallet, x402 Trinity and X402 Gateway.

## Where this comes from

- Description: written from its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [x402 Wallet](https://ai-powered.com/mcp/x402-wallet): x402 Wallet is an open-source MCP server for finance and payments.
- [X402 Payagent MCP](https://ai-powered.com/mcp/x402-payagent-mcp): X402 Payagent MCP is an open-source MCP server for finance and payments.
- [three.ws Agent Wallet](https://ai-powered.com/mcp/three-ws-agent-wallet): three.ws Agent Wallet is an MCP server for finance and payments.
- [x402 Trinity](https://ai-powered.com/mcp/x402-trinity): x402 Trinity is an open-source MCP server for finance and payments.
- [X402 Gateway](https://ai-powered.com/mcp/x402-gateway): X402 Gateway is an MCP server for finance and payments.
- [Circle Agent Stack MCP](https://ai-powered.com/mcp/circle-agent-stack-mcp): Circle Agent Stack MCP is an open-source MCP server for finance and payments.
- [Payagent MCP](https://ai-powered.com/mcp/payagent-mcp): Payagent MCP is an open-source MCP server for agent payments.
- [Agent Wallet](https://ai-powered.com/mcp/agent-wallet-2): Agent Wallet is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/xdc-ai
