# Cloudflare AI Gateway (verified)

AI Gateway management. Search logs, inspect prompts and responses, and monitor AI traffic.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add cloudflare/ai-gateway

# Browse available tools
npx -y @smithery/cli@latest tool list cloudflare/ai-gateway

# Get full schema for a tool
npx -y @smithery/cli@latest tool get cloudflare/ai-gateway accounts_list

# Call a tool
npx -y @smithery/cli@latest tool call cloudflare/ai-gateway accounts_list '{}'
```

## Direct MCP Connection

Endpoint: `https://cloudflare-ai-gateway.run.tools`

## Tools (7)

- `accounts_list` — List all accounts in your Cloudflare account
- `set_active_account` — Set active account to be used for tool calls that require accountId
- `list_gateways` — List Gateways
- `list_logs` — List Logs
- `get_log_details` — Get a single Log details
- `get_log_request_body` — Get Log Request Body
- `get_log_response_body` — Get Log Response Body

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get cloudflare/ai-gateway <tool-name>
```
