# pkg MCP server

> Allows coding agents to find, install, and assemble reusable software builds and project foundations across various technology stacks.

- Repository: https://github.com/tneemo/pkg
- Page: https://hostedmcp.org/servers/tneemo/pkg
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add pkg -- npx -y @tneemo/pkg
```

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

```json
{
  "mcpServers": {
    "pkg": {
      "command": "npx",
      "args": [
        "-y",
        "@tneemo/pkg"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "pkg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tneemo/pkg"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkg": {
      "command": "npx",
      "args": [
        "-y",
        "@tneemo/pkg"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.pkg]
command = "npx"
args = ["-y", "@tneemo/pkg"]
```

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

```json
{
  "mcpServers": {
    "pkg": {
      "command": "npx",
      "args": [
        "-y",
        "@tneemo/pkg"
      ]
    }
  }
}
```

## Environment variables

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

## FAQ

### How do I connect my agent to pkg?

You can connect your agent using 'npx -y @tneemo/pkg setup' or, specifically for Claude Code, by running 'claude mcp add pkg -- npx -y @tneemo/pkg mcp'.

### Are builds installed as packages or source code?

Builds are distributed as source code, similar to the shadcn registry, meaning files are copied directly into your project rather than being managed as external library packages.

### How does pkg handle security and trust?

The system performs automated checks on every publish to reject unsafe paths and secrets, and it provides warnings for things like npm install scripts or hard-coded IPs. Users can also inspect a dry-run plan before installing dependencies.
