# PRIMAMCP MCP server

> Provides AI assistants with verified, citable German and EU law through daily updates from official sources.

- Repository: https://github.com/PLANIT-TECH/primamcp
- Page: https://hostedmcp.org/servers/planit-tech/primamcp
- Transport: stdio, remote
- Stars: 11
- License: MIT
- Latest version: 0.2.1

## Install

### Claude Code

```sh
claude mcp add --env 'PRIMAMCP_API_KEY=<YOUR_PRIMAMCP_API_KEY>' primamcp -- npx -y @planit-tech/primamcp
```

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

```json
{
  "mcpServers": {
    "primamcp": {
      "command": "npx",
      "args": [
        "-y",
        "@planit-tech/primamcp"
      ],
      "env": {
        "PRIMAMCP_API_KEY": "<YOUR_PRIMAMCP_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "primamcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@planit-tech/primamcp"
      ],
      "env": {
        "PRIMAMCP_API_KEY": "<YOUR_PRIMAMCP_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"primamcp","type":"stdio","command":"npx","args":["-y","@planit-tech/primamcp"],"env":{"PRIMAMCP_API_KEY":"<YOUR_PRIMAMCP_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "primamcp": {
      "command": "npx",
      "args": [
        "-y",
        "@planit-tech/primamcp"
      ],
      "env": {
        "PRIMAMCP_API_KEY": "<YOUR_PRIMAMCP_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add primamcp --env 'PRIMAMCP_API_KEY=<YOUR_PRIMAMCP_API_KEY>' -- npx -y @planit-tech/primamcp
```

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

```toml
[mcp_servers.primamcp]
command = "npx"
args = ["-y", "@planit-tech/primamcp"]

[mcp_servers.primamcp.env]
PRIMAMCP_API_KEY = "<YOUR_PRIMAMCP_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'PRIMAMCP_API_KEY=<YOUR_PRIMAMCP_API_KEY>' primamcp npx -- -y @planit-tech/primamcp
```

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

```json
{
  "mcpServers": {
    "primamcp": {
      "command": "npx",
      "args": [
        "-y",
        "@planit-tech/primamcp"
      ],
      "env": {
        "PRIMAMCP_API_KEY": "<YOUR_PRIMAMCP_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PRIMAMCP_API_KEY` | yes | yes | PRIMAMCP API key (sk-legal-…). Create one at https://mcp.planitprima.com/ |

## FAQ

### Which AI clients are supported?

It supports Claude Desktop, Cursor, ChatGPT, Claude.ai, Copilot Studio, VS Code, Windsurf, Zed, and Cline.
