p4mcp-server
by perforce·★ 92·Score 47
Perforce P4 MCP Server integrates with P4 version control to provide structured read/write tools for changelists, files, and more.
Overview
The Perforce P4 MCP Server is a comprehensive implementation that bridges the Model Context Protocol with Perforce Helix Core version control systems. Built on FastMCP with direct P4 Python bindings, it exposes safe, structured tools for managing changelists, files, shelves, workspaces, jobs, reviews, and server metadata. The server is designed with security in mind, featuring a read-only default mode, ownership checks, and interactive confirmation for destructive operations.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server if your team already uses Perforce P4 and wants AI assistants to safely interact with version control operations.
When NOT to choose this
Avoid this if you need support for version control systems other than Perforce, or if you require write operations without additional confirmation steps.
Tools this server exposes
8 tools extracted from the READMEquery_changelistsRead and write changelists in Perforce
query_filesRead files and metadata from Perforce
query_shelvesManage shelves in Perforce
query_workspacesQuery workspace information from Perforce
query_jobsQuery and manage jobs in Perforce
query_reviewsInteract with Perforce code reviews
query_streamsQuery Perforce stream information
query_serverQuery server information from Perforce
Note: Tool names inferred from the features section that mentions categories of tools (files, changelists, shelves, workspaces, jobs, reviews, streams, and server information). Exact tool names and signatures were not explicitly documented in the
Comparable tools
Installation
Installation Options
**Pre-built binaries (recommended)**:
- Download for [macOS](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-mac.zip), [Windows](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-win.zip), or [Linux](https://github.com/perforce/p4mcp-server/releases/latest/download/p4-mcp-server-linux.zip)
- Extract and use the executable directly
**Build from source**:
- Requires Python 3.11+ with Tkinter
- Run
chmod +x build.sh && ./build.sh package(macOS/Linux) orbuild.bat package(Windows)
**MCP Client Configuration**:
{
"mcpServers": {
"perforce-p4-mcp": {
"command": "/absolute/path/to/p4-mcp-server",
"env": {
"P4PORT": "ssl:perforce.example.com:1666",
"P4USER": "your_username",
"P4CLIENT": "your_workspace"
},
"args": [
"--readonly", "--allow-usage"
]
}
}
}FAQ
- What Perforce server versions are supported?
- The P4 MCP Server supports Perforce P4 Server version 2025.2 (earlier versions are untested).
- Can I use the MCP server with Docker?
- Yes, the server supports both STDIO and HTTP transport modes in Docker containers with detailed configuration options for different use cases.
Compare p4mcp-server with
Last updated · Auto-generated from public README + GitHub signals.