MCP Catalogs
Home

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.

developer-toolsops-infraother
19
Forks
7
Open issues
1 mo ago
Last commit
2d ago
Indexed

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:

you:AI assistants accessing Perforce repositories to analyze code changes and provide feedback
you:Automating code review workflows through MCP-enabled AI tools
you:Streamlining version control operations for development teams via natural language interfaces
you:What Perforce server versions are supported?
you:Can I use the MCP server with Docker?

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 README
  • query_changelists

    Read and write changelists in Perforce

  • query_files

    Read files and metadata from Perforce

  • query_shelves

    Manage shelves in Perforce

  • query_workspaces

    Query workspace information from Perforce

  • query_jobs

    Query and manage jobs in Perforce

  • query_reviews

    Interact with Perforce code reviews

  • query_streams

    Query Perforce stream information

  • query_server

    Query 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

github-mcpgit-mcpfile-system-mcp

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) or build.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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.