# App Store Connect MCP server

> Allows an AI agent to manage App Store Connect accounts, including releases, TestFlight, reviews, and sales reports.

- Repository: https://github.com/idoo/hamn
- Page: https://hostedmcp.org/servers/idoo/hamn
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add --env 'ASC_PRIVATE_KEY=<YOUR_ASC_PRIVATE_KEY>' --env 'ASC_KEY_ID=<ASC_KEY_ID>' hamn -- docker run -i --rm ghcr.io/idoo/hamn:0.1.3
```

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

```json
{
  "mcpServers": {
    "hamn": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/idoo/hamn:0.1.3"
      ],
      "env": {
        "ASC_PRIVATE_KEY": "<YOUR_ASC_PRIVATE_KEY>",
        "ASC_KEY_ID": "<ASC_KEY_ID>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "hamn": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/idoo/hamn:0.1.3"
      ],
      "env": {
        "ASC_PRIVATE_KEY": "<YOUR_ASC_PRIVATE_KEY>",
        "ASC_KEY_ID": "<ASC_KEY_ID>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"hamn","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/idoo/hamn:0.1.3"],"env":{"ASC_PRIVATE_KEY":"<YOUR_ASC_PRIVATE_KEY>","ASC_KEY_ID":"<ASC_KEY_ID>"}}'
```

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

```json
{
  "mcpServers": {
    "hamn": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/idoo/hamn:0.1.3"
      ],
      "env": {
        "ASC_PRIVATE_KEY": "<YOUR_ASC_PRIVATE_KEY>",
        "ASC_KEY_ID": "<ASC_KEY_ID>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add hamn --env 'ASC_PRIVATE_KEY=<YOUR_ASC_PRIVATE_KEY>' --env 'ASC_KEY_ID=<ASC_KEY_ID>' -- docker run -i --rm ghcr.io/idoo/hamn:0.1.3
```

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

```toml
[mcp_servers.hamn]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/idoo/hamn:0.1.3"]

[mcp_servers.hamn.env]
ASC_PRIVATE_KEY = "<YOUR_ASC_PRIVATE_KEY>"
ASC_KEY_ID = "<ASC_KEY_ID>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'ASC_PRIVATE_KEY=<YOUR_ASC_PRIVATE_KEY>' -e 'ASC_KEY_ID=<ASC_KEY_ID>' hamn docker -- run -i --rm ghcr.io/idoo/hamn:0.1.3
```

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

```json
{
  "mcpServers": {
    "hamn": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/idoo/hamn:0.1.3"
      ],
      "env": {
        "ASC_PRIVATE_KEY": "<YOUR_ASC_PRIVATE_KEY>",
        "ASC_KEY_ID": "<ASC_KEY_ID>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ASC_PRIVATE_KEY` | yes | yes | Contents of the .p8 key (PEM or base64 PEM) |
| `ASC_KEY_ID` | yes | no | App Store Connect API key ID |
| `ASC_ISSUER_ID` | no | no | Issuer ID (omit for an Individual API key) |
| `ASC_VENDOR_NUMBER` | no | no | Vendor number for sales and finance reports |
| `HAMN_ALLOW_WRITES` | no | no | Set to 1 to expose write and destructive tools |

## FAQ

### Is the server read-only?

Yes, it is read-only by default and requires explicit permission before performing any write actions or making anything public.

### How can I use the web toolset for creating apps?

You can use the opt-in web toolset by running 'app-store-connect-mcp web login', which uses your Apple ID to perform actions the standard API cannot, such as creating app records.
