[Community Supported] Perforce P4 Plan MCP is a Model Context Protocol (MCP) that integrates with the P4 Plan real-time planner.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add p4plan --env P4PLAN_API_AUTH_TOKEN='<P4PLAN_API_AUTH_TOKEN>' -- npx -y @perforce/p4plan-mcp~/.codex/config.toml
[mcp_servers.p4plan]
command = "npx"
args = ["-y", "@perforce/p4plan-mcp"]
env = { P4PLAN_API_AUTH_TOKEN = "<P4PLAN_API_AUTH_TOKEN>" }
# codex mcp add p4plan --env P4PLAN_API_AUTH_TOKEN='<P4PLAN_API_AUTH_TOKEN>' -- npx -y @perforce/p4plan-mcp~/.cursor/mcp.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "<P4PLAN_API_AUTH_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"p4plan": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "<P4PLAN_API_AUTH_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "<P4PLAN_API_AUTH_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "<P4PLAN_API_AUTH_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"p4plan": {
"command": "npx",
"args": [
"-y",
"@perforce/p4plan-mcp"
],
"env": {
"P4PLAN_API_AUTH_TOKEN": "<P4PLAN_API_AUTH_TOKEN>"
}
}
}
}Environment variables
P4PLAN_API_AUTH_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.