What is the Perforce P4 MCP Server MCP server?
Perforce P4 MCP server: changelists, files, shelves, workspaces, jobs, code reviews, and streams.
How to install Perforce P4 MCP Server
Copy-paste configuration for popular MCP clients.
transport: stdio
Config generated by PluginBench — verify against the source before use.Environment / auth
P4PORTPerforce server address (e.g. ssl:perforce.example.com:1666)
P4USERPerforce username
P4CLIENTPerforce workspace/client name
P4PASSWDPerforce password or ticket
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"p4mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/perforce/p4mcp-server:2026.3.2996147"
],
"env": {
"P4PORT": "<YOUR_P4PORT>",
"P4USER": "<YOUR_P4USER>",
"P4CLIENT": "<YOUR_P4CLIENT>",
"P4PASSWD": "<YOUR_P4PASSWD>"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"p4mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/perforce/p4mcp-server:2026.3.2996147"
],
"env": {
"P4PORT": "<YOUR_P4PORT>",
"P4USER": "<YOUR_P4USER>",
"P4CLIENT": "<YOUR_P4CLIENT>",
"P4PASSWD": "<YOUR_P4PASSWD>"
}
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"p4mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/perforce/p4mcp-server:2026.3.2996147"
],
"env": {
"P4PORT": "<YOUR_P4PORT>",
"P4USER": "<YOUR_P4USER>",
"P4CLIENT": "<YOUR_P4CLIENT>",
"P4PASSWD": "<YOUR_P4PASSWD>"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"p4mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/perforce/p4mcp-server:2026.3.2996147"
],
"env": {
"P4PORT": "<YOUR_P4PORT>",
"P4USER": "<YOUR_P4USER>",
"P4CLIENT": "<YOUR_P4CLIENT>",
"P4PASSWD": "<YOUR_P4PASSWD>"
}
}
}
}Claude Code
claude mcp add p4mcp-server --env P4PORT=<YOUR_P4PORT> --env P4USER=<YOUR_P4USER> --env P4CLIENT=<YOUR_P4CLIENT> --env P4PASSWD=<YOUR_P4PASSWD> -- docker run -i --rm ghcr.io/perforce/p4mcp-server:2026.3.2996147Related MCP servers
MCP server for P4 Plan — tasks, sprints, bugs, comments, custom fields via GraphQL API.
View repository →