p4mcp-server

v2025.1.2830393
io.github.hjain-perforce/p4mcp-server Checked 13 hours ago Published 11 months ago

Perforce P4 MCP Server is a MCP server that integrates with the Perforce P4 version control system.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add p4mcp-server -- uvx --from p4mcp-server==2026.4.3126709 p4mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "p4mcp-server": {
      "args": [
        "--from",
        "p4mcp-server==2026.4.3126709",
        "p4mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "p4mcp-server": {
      "args": [
        "--from",
        "p4mcp-server==2026.4.3126709",
        "p4mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "p4mcp-server": {
      "args": [
        "--from",
        "p4mcp-server==2026.4.3126709",
        "p4mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.p4mcp-server]
command = "uvx"
args = ["--from", "p4mcp-server==2026.4.3126709", "p4mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: query_server, query_workspaces, modify_workspaces, query_files, modify_files, query_changelists, modify_changelists, query_shelves, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json