# Phpactor MCP Server

> Use this tool when you need to refactor PHP code efficiently, as it provides project-wide semantic tools such as finding references, renaming classes and members, and moving classes. It solves problems like code organization and maintenance by offering class information and intelligent code manipulation. The Phpactor MCP Server takes PHP code as input and outputs refactored code, making it ideal for AI assistants to improve code quality and readability.

Canonical page: https://skillsregistry.net/skills/p4it-kft-p4it-phpactor-mcp  
JSON: https://api.skillsregistry.net/v1/skills/p4it-kft-p4it-phpactor-mcp

## Description

Provides project-wide semantic PHP refactoring tools (find references, rename classes/members, move class, class info) for AI assistants by wrapping Phpactor.

## Trust

- **Trust score (0–1):** 0.60
- **Verification tier:** unverified

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-06-18

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/y9kun2nwey)
- **Repository:** <https://github.com/p4it-kft/p4it-phpactor-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "p4it-kft-p4it-phpactor-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/p4it-kft-p4it-phpactor-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/p4it-kft-p4it-phpactor-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
