# Magg MCP server

> Lets an AI client discover, add, enable, and proxy other MCP servers, aggregating their tools under unified prefixes at runtime.

- Repository: https://github.com/sitbon/magg
- Page: https://hostedmcp.org/servers/sitbon/magg
- Transport: stdio
- Stars: 143
- License: AGPL-3.0
- Latest version: 1.2.1

## Install

### Claude Code

```sh
claude mcp add magg -- uvx magg
```

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

```json
{
  "mcpServers": {
    "magg": {
      "command": "uvx",
      "args": [
        "magg"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "magg": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "magg"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"magg","type":"stdio","command":"uvx","args":["magg"]}'
```

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

```json
{
  "mcpServers": {
    "magg": {
      "command": "uvx",
      "args": [
        "magg"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add magg -- uvx magg
```

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

```toml
[mcp_servers.magg]
command = "uvx"
args = ["magg"]
```

### Gemini CLI

```sh
gemini mcp add -s user magg uvx -- magg
```

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

```json
{
  "mcpServers": {
    "magg": {
      "command": "uvx",
      "args": [
        "magg"
      ]
    }
  }
}
```

## Environment variables

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

## Tools (14)

- `magg_list_servers`
- `magg_add_server`
- `magg_remove_server`
- `magg_search_servers`
- `magg_list_tools`
- `magg_smart_configure`
- `magg_analyze_servers`
- `magg_status`
- `magg_check`
- `magg_reload_config`
- `magg_load_kit`
- `magg_unload_kit`
- `magg_list_kits`
- `magg_kit_info`

## FAQ

### What does Magg do?

Magg is a meta-MCP server that manages and proxies other MCP servers, letting LLMs search for, add, and enable servers and aggregate their tools at runtime.

### How do I install and run Magg?

Install it with uv tool install magg, then run `magg serve` for stdio or `magg serve --http` for HTTP access.

### Does Magg support authentication?

Yes, it offers optional bearer token authentication using RSA-based JWT tokens created with `magg auth init` and `magg auth token`.

### Where does Magg store its configuration?

Server configurations persist in a `.magg/config.json` file that is reloaded dynamically.

### Can Magg run in both stdio and HTTP modes at once?

Yes, hybrid mode serves stdio and HTTP simultaneously via `magg serve --hybrid`.
