# XDC AI MCP MCP Server

> **XDC AI MCP MCP Server** is a hosted, multitenant Model Context Protocol (MCP) server run by **MewCP** (https://mewcp.com), giving AI agents managed access to XDC AI MCP.
>
> MewCP takes care of all MCP infrastructure for you — credential storage, OAuth flows,
> token refresh, and production-grade auto-scaling — so your AI agents can connect to
> third-party services and run freely without you managing any MCP server yourself.
>
> Server page:  https://mewcp.com/mcp/xdcai-mcp
> MewCP docs:   https://docs.mewcp.com
> All servers:  https://mewcp.com/servers (JSON: https://mewcp.com/api/servers)
> About MewCP:  https://mewcp.com/llms.txt

---

## About

XDC AI is agent-native commerce on the XDC Network. AI agents discover APIs in a curated marketplace and pay for them per call with USDC over the x402 protocol — from a non-custodial smart wallet, within an on-chain spending limit you control, and without ever holding gas.

---

## Details

- Server ID: `xdcai-mcp`
- Version: 2026-08-18
- Tools: 17
- Authentication: OAuth, managed by MewCP
- Transport: http

---

## Access

The gateway URL below serves your **entire MewCP toolset**, not this server on its
own. Pasting a config snippet is not enough — XDC AI MCP has to be in the toolset
first. In order:

1. Add XDC AI MCP to your toolset at https://mewcp.com/mcp/xdcai-mcp
2. Connect your XDC AI MCP account (OAuth); MewCP stores the credential and attaches it to each call
3. Add the gateway URL to your client (see Connect below). It signs in with OAuth
   the first time it connects, so there is no key to copy.

Once connected, an agent does **not** see this server's tools as top-level tools.
It sees four meta-tools and reaches everything through them:

- `search(query)` — find tools by keyword across the toolset
- `get_schema(tools)` — full description and arguments for the tools you picked
- `list_accounts(provider)` — only when one app has several connected accounts
- `call_tool(server_maskedId, tool_name, args)` — execute

So the list below is what `search` can return for this server, not a set of
callable tool names on their own.

---

## Tools (17)

Descriptions are truncated to 160 characters; call `get_schema`
for the full text and the argument schema. Where a tool is annotated, its type
is shown — treat `destructive` as irreversible.

- `get_service_info` — Service manifest for THIS x402 demo server (its built-in test endpoints) PLUS the full XDC AI marketplace catalog of paid APIs from all providers. The…
- `list_resources` — List ALL payable APIs in the XDC AI marketplace (every provider's endpoints), plus this demo server's built-in test resources. Use this (or marketplace_list)…
- `inspect_resource` — Get the x402 402 payment requirements for a resource id (without paying).
- `wallet_address` — Get the logged-in user's XDC wallet address to fund with USDC (XDC network only). Returns the smart wallet - the account your agent pays from within on-chain…
- `defi_lend` — Propose a lending action from the user's smart wallet on XDC: supply/deposit (earn yield), withdraw, borrow, or repay USDC. Protocols: 'fathom' (Fathom…
- `defi_supply` — Propose a DeFi supply (earn USDC yield) from the user's smart wallet on XDC. Pick a protocol: 'fathom', 'morpho', or 'silo'. For withdraw/borrow/repay use…
- `defi_positions` — Show the user's current DeFi positions held in their smart wallet on XDC (supplied/deposited balances earning yield): Fathom Lending, Morpho (XDC Yield…
- `defi_swap` — Propose a token SWAP from the user's smart wallet on XDC, routed by the LI.FI aggregator (best price across XDC DEXes). Supported tokens: XDC (native), WXDC,…
- `wallet_balance` — Show YOUR wallet's balances (requires login): USDC, native XDC (the gas token), and WXDC (wrapped XDC). Returns the smart wallet - the account your agent pays…
- `wallet_authorize_agent` — Non-custodial setup: check whether an agent's own session key is approved to spend from the user's smart wallet (Safe), and get the one-time browser approval…
- `marketplace_list` — THE full XDC AI marketplace catalog: lists ALL paid APIs from every provider (not just this server's demo endpoints). Start here to discover any service. Use…
- `call` — Call an x402 URL and auto-pay on HTTP 402 with USDC (gasless, a relayer pays the XDC gas). If the user holds marketplace credit from a referral campaign it is…
- `wallet_transfer` — Send USDC to an APPROVED payee (gasless). `to` may be a 0x address OR a saved contact NAME (e.g. "Tarun") - names are resolved from the user's payees. The…
- `list_payees` — List the user's saved payees (approved contacts) - each with address + label. Use this to resolve a contact NAME the user mentions (e.g. 'send to Tarun') to an…
- `add_payee_link` — When the user wants to ADD/APPROVE a new contact (payee) so they can send USDC to it, call this to get a one-click approval link. It moves nothing and adds…
- `transactions` — Use this whenever the user asks about their transactions, payment history, what they paid, recent payments, or wants tx hashes / xdcscan links. Returns the…
- `verify_transaction` — Verify whether a transaction went through for the user. Returns found/status/settled + the service and explorer link. Use this to confirm a payment settled.

---

## Connect

- URL: https://gateway.mewcp.com/personal/mcp
- Transport: Streamable HTTP (remote). Nothing to install.
- Sign-in: OAuth. On first connect the client opens a browser window to sign in
  to MewCP and approve access. No API key.
- Headless clients (SDKs, servers without a browser) send an API key instead:
  `Authorization: Bearer <API_KEY>`, key from https://mewcp.com/dashboard/api-keys

Agents setting themselves up: follow https://mewcp.com/SKILL.md

Step-by-step guide per client:

- Claude Desktop: https://mewcp.com/mcp/xdcai-mcp/connect/claude
- ChatGPT: https://mewcp.com/mcp/xdcai-mcp/connect/chatgpt
- VS Code: https://mewcp.com/mcp/xdcai-mcp/connect/vscode
- Cursor: https://mewcp.com/mcp/xdcai-mcp/connect/cursor
- Codex: https://mewcp.com/mcp/xdcai-mcp/connect/codex
- Claude Code: https://mewcp.com/mcp/xdcai-mcp/connect/claude-code
- OpenCode: https://mewcp.com/mcp/xdcai-mcp/connect/opencode
- OpenClaw: https://mewcp.com/mcp/xdcai-mcp/connect/openclaw
- Antigravity: https://mewcp.com/mcp/xdcai-mcp/connect/antigravity
- Hermes: https://mewcp.com/mcp/xdcai-mcp/connect/hermes
- DeepSeek Harness: https://mewcp.com/mcp/xdcai-mcp/connect/dsh
- Python: https://mewcp.com/mcp/xdcai-mcp/connect/python
- TypeScript: https://mewcp.com/mcp/xdcai-mcp/connect/typescript