# AgentGate MCP server

> Provides a human-in-the-loop approval gateway that lets users define policies to approve, deny, or route AI agent actions via multiple communication channels.

- Repository: https://github.com/agentkitai/agentgate
- Page: https://hostedmcp.org/servers/agentkitai/agentgate
- Transport: stdio
- Stars: 33
- License: MIT
- Latest version: 0.0.3

## Install

### Claude Code

```sh
claude mcp add agentgate -- npx -y @agentkitai/agentgate-mcp
```

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

```json
{
  "mcpServers": {
    "agentgate": {
      "command": "npx",
      "args": [
        "-y",
        "@agentkitai/agentgate-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agentgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentkitai/agentgate-mcp"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "agentgate": {
      "command": "npx",
      "args": [
        "-y",
        "@agentkitai/agentgate-mcp"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.agentgate]
command = "npx"
args = ["-y", "@agentkitai/agentgate-mcp"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agentgate": {
      "command": "npx",
      "args": [
        "-y",
        "@agentkitai/agentgate-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AGENTGATE_API_KEY` | no | no |  |
| `AGENTGATE_URL` | no | no |  |

## Tools (10)

- `agentgate_request`
- `agentgate_get`
- `agentgate_list`
- `agentgate_decide`
- `agentgate_list_policies`
- `agentgate_create_policy`
- `agentgate_update_policy`
- `agentgate_delete_policy`
- `agentgate_list_audit_logs`
- `agentgate_get_audit_actors`

## FAQ

### How can I integrate AgentGate with Claude Desktop?

You can integrate it by adding the @agentkitai/agentgate-mcp package to your claude_desktop_config.json file.

### What channels can I use to approve agent requests?

Approvals can be handled through a web dashboard, Slack, Discord, or email.

### Does AgentGate provide an audit trail for compliance?

Yes, it maintains a full audit trail where every decision is logged and tagged with the relevant OWASP LLM Top-10 risk it mitigates.

### How is authentication handled in AgentGate?

AgentGate uses API keys for authentication, with different scopes available for different levels of access.
