Skip to content
Grok

Perforce P4 MCP Server for Grok

io.github.perforce/p4mcp-server

Perforce P4 MCP server: changelists, files, shelves, workspaces, jobs, code reviews, and streams.

client:Grok transport:stdio runtime:oci

Install Perforce P4 MCP Server in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "p4mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/perforce/p4mcp-server:2026.3.2996147"
      ],
      "env": {
        "P4PORT": "<P4PORT>",
        "P4USER": "<P4USER>",
        "P4CLIENT": "<P4CLIENT>",
        "P4PASSWD": "<P4PASSWD>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Perforce P4 MCP Server in other clients