# MCPG MCP server

> A protocol-authority gateway that manages identity, authorization, and execution dispatch for Model Context Protocol clients and backends.

- Repository: https://github.com/mcpg-dev/mcpg
- Page: https://hostedmcp.org/servers/mcpg-dev/mcpg
- Transport: stdio
- Stars: 0
- License: Apache-2.0

## Install

### Claude Code

```sh
claude mcp add mcpg -- npx -y model-context-protocol-gateway
```

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

```json
{
  "mcpServers": {
    "mcpg": {
      "command": "npx",
      "args": [
        "-y",
        "model-context-protocol-gateway"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcpg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "model-context-protocol-gateway"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcpg","type":"stdio","command":"npx","args":["-y","model-context-protocol-gateway"]}'
```

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

```json
{
  "mcpServers": {
    "mcpg": {
      "command": "npx",
      "args": [
        "-y",
        "model-context-protocol-gateway"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcpg -- npx -y model-context-protocol-gateway
```

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

```toml
[mcp_servers.mcpg]
command = "npx"
args = ["-y", "model-context-protocol-gateway"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcpg npx -- -y model-context-protocol-gateway
```

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

```json
{
  "mcpServers": {
    "mcpg": {
      "command": "npx",
      "args": [
        "-y",
        "model-context-protocol-gateway"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `MCPG_CONFIG` | no | no |  |

## Tools (1)

- `built`

## FAQ

### What does MCPG do?

It acts as a gateway between MCP clients and backend systems, handling protocol handling, session lifecycle, identity, authorization, and observability.

### How can I deploy MCPG on Kubernetes?

You can deploy it using Helm charts, with options for single instance or high availability using a NATS backend.
