MCP Perforce MCP Server

A Model Context Protocol (MCP) server that provides a clean interface for Perforce (P4) operations in Claude Desktop. This server wraps P4 commands

Local serverstdio

What is the MCP Perforce MCP Server?

A Model Context Protocol (MCP) server that provides a clean interface for Perforce (P4) operations in Claude Desktop. This server wraps P4 commands to make them

What the server does

  • Non-interactive operations — All commands are wrapped to avoid interactive prompts
  • Structured responses — Clean, parseable output instead of raw P4 output
  • Multi-project support — Automatically uses .p4config files for per-project settings
  • Common operations — Add, edit, delete, submit, revert, sync, and more
  • Changelist management — Create and submit changelists with explicit parameters
  • Error handling — Graceful error handling with clear error messages

Credentials and setup notes

  • Node.js 18+ installed - Perforce command-line client (p4) installed and in your PATH - .p4config files in your project directories (recommended)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the MCP Perforce MCP Server

{
  "mcpServers": {
    "perforce": {
      "command": "npx",
      "args": [
        "-y",
        "@cocoon-ai/mcp-perforce"
      ],
      "env": {
        "P4CONFIG": ".p4config"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js 18+ installed - Perforce command-line client (p4) installed and in your PATH - .p4config files in your project directories (recommended)
VariableDescriptionRequired
P4CONFIGDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use MCP Perforce to Prerequisites.”

Frequently asked questions

A Model Context Protocol (MCP) server that provides a clean interface for Perforce (P4) operations in Claude Desktop. This server wraps P4 commands to make them Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.