> ## Documentation Index
> Fetch the complete documentation index at: https://agentcash.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP mode

> Run AgentCash as an MCP server inside any compatible AI client.

AgentCash can run as a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server, giving your AI client direct tool access to all AgentCash capabilities: paid API calls, endpoint discovery, wallet management, and authenticated requests.

MCP mode is one of three ways to use AgentCash, alongside the [CLI](https://agentcash.dev/docs/cli/overview.md) and the [agent skill](https://agentcash.dev/docs/quickstart-agents.md#2-give-your-agent-the-skill).

## When to use MCP mode

MCP mode is ideal when your AI client supports MCP and you want:

* **Tool-based access**: the agent calls AgentCash tools directly
* **Structured responses**: tool responses come back as structured data the agent can parse
* **Automatic integration**: the tools are available in the agent's context with no extra setup

## Quick install

The guided installer detects your client:

```bash theme={null}
npx agentcash install
```

Or install for a specific client:

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add agentcash --scope user -- npx -y agentcash@latest
> ```

> [tab] Cursor
>
> ```bash theme={null}
> npx agentcash install --client cursor
> ```
>
> Or add manually to `.cursor/mcp.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "agentcash": {
>       "command": "npx",
>       "args": ["-y", "agentcash@latest"]
>     }
>   }
> }
> ```

> [tab] Claude Cowork
>
> Follow the [guided install](https://agentcash.dev/install/claude) to download and install the MCPB bundle.

> [tab] Claude Desktop
>
> Follow the [guided install](https://agentcash.dev/install/claude), or add manually to your config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "agentcash": {
>       "command": "npx",
>       "args": ["-y", "agentcash@latest"]
>     }
>   }
> }
> ```
>
> Restart Claude Desktop after saving.

> [tab] Other clients
>
> See [full client list](https://agentcash.dev/docs/installation/other-clients.md) for Codex, Windsurf, Warp, and more.

## Available tools

When running in MCP mode, AgentCash exposes these tools to your agent:

| Tool | What it does |
| - | - |
| [`fetch`](https://agentcash.dev/docs/tools/fetch) | HTTP request with automatic SIWX auth and payment |
| [`fetch_with_auth`](https://agentcash.dev/docs/tools/fetch-with-auth) | Deprecated alias for `fetch` |
| [`get_balance`](https://agentcash.dev/docs/tools/get-balance) | Total wallet balance across supported networks |
| [`list_accounts`](https://agentcash.dev/docs/tools/list-accounts) | Per-network balances, addresses, and deposit links |
| [`search`](https://agentcash.dev/docs/tools/search) | Find API providers by natural-language query |
| [`check_endpoint_schema`](https://agentcash.dev/docs/tools/check-endpoint-schema) | Probe pricing and schema without paying |
| [`discover_api_endpoints`](https://agentcash.dev/docs/tools/discover-api-endpoints) | Find all endpoints on an origin |
| [`redeem_invite`](https://agentcash.dev/docs/tools/redeem-invite) | Redeem an invite code for free USDC |

## Verify installation

Start a session with your AI client and ask:

> What is my AgentCash balance?

The agent should call the `get_balance` tool and return your total balance. If you later need deposit links or network-specific addresses, the agent should call `list_accounts`.

## Server options

You can pass flags to the MCP server process:

| Flag | Description |
| - | - |
| `--verbose` / `-v` | Enable debug output on stderr |
| `--quiet` / `-q` | Suppress all stderr output |
| `--dev` | Use development endpoints (localhost) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.