PHP MCP Server Generator Skill for Claude Code: What It Does and How to Install It
Makes the agent scaffold a complete PHP MCP server project with tools, resources, prompts and tests.
- Installs
- 8.9K
- on skills.sh
- Stars
- 40.7K
- on GitHub
- Updated
- Oct 2026
- last repo commit
The agent asks for the project name, a description, the transport (stdio, http or both), the tools to include, whether you want resources and prompts, and the PHP version (8.2 or newer). It then writes the project: composer.json, server.php, src/Tools, src/Resources, src/Prompts, src/Providers, a PHPUnit test file, phpunit.xml.dist, a README and a .gitignore.
The code uses the official PHP SDK (mcp/sdk) with the #[McpTool], #[McpResource], #[McpResourceTemplate], #[McpPrompt] and #[Schema] attributes. SKILL.md lists 8 implementation guidelines, such as strict types, PSR-12 and PSR-16 caching for discovery. It ends with the commands to install, test, run and inspect the server, and a Claude Desktop config snippet.
Good for
- PHP developers who want to expose their code to an AI assistant through MCP
- Teams starting a new MCP server on PHP 8.2 or newer
Install php-mcp-server-generator
Claude Code
- 1
Copy this prompt.
Install the php-mcp-server-generator skill in Claude Code. Run this command: npx skills add https://github.com/github/awesome-copilot --skill php-mcp-server-generator Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
The Copilot CLI plugin installs the php-mcp-development bundle: this skill and a PHP MCP Expert agent (see plugin.json). The skills CLI and folder routes install only this skill. If Copilot CLI reports an unknown marketplace, the awesome-copilot README says to run copilot plugin marketplace add github/awesome-copilot first.
Built from the package data we hold. Not yet tested by us.
What's in the skill
When it loads
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
Sections in SKILL.md
- Project Requirements
- Project Structure
- File Templates
- composer.json
- .gitignore
- README.md
- Requirements
- Installation
- Usage
- Start Server (Stdio)
- Configure in Claude Desktop
- Testing
- Tools
- Development
- server.php
- src/Tools/ExampleTool.php
Key facts
- Installs on skills.sh
- 8,881 (Nov 2, 2026)
- Last repo commit
- Oct 30, 2026
- Audits on skills.sh
- Gen Agent Trust Hub: pass, Socket: pass, Snyk: pass
- What it includes
- 1 file: SKILL.md (no scripts)
What it includes
Six questions: name, description, transport, tools, resources and prompts, PHP version
Read ·
Ask for requirementscomposer.json, server.php, src/, tests/, phpunit.xml.dist, README and .gitignore
Try: “Generate a PHP MCP server called file-tools with read and list tools”
Write ·
Generate the project treeSimple tool, tool with validation and tool with enum using #[McpTool]
Read ·
Tool patternsStatic resources with #[McpResource] and templates with #[McpResourceTemplate]
Read ·
Resource patternscomposer install, vendor/bin/phpunit, php server.php and the MCP inspector through npx
These are listed in SKILL.md under Running the Server.
Runs code ·
Run commandsA mcpServers entry that runs php with the path to server.php
Read ·
Claude Desktop config
From the official docs
Permissions
Low risk
The agent writes a new project in your folder and its commands install Composer and npm packages. Review composer.json and the generated files before you run them.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It installs Composer and npm packages
The generated composer.json requires mcp/sdk, phpunit and symfony/cache, and the inspector runs through npx. Review both before you run them. github.com
The plugin route adds an agent
plugin.json lists the PHP MCP Expert agent besides this skill. Its frontmatter names a model and no tool list. The skills CLI route installs only the skill. github.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | No read-only switch exists. |
|---|---|
| Talks to | npm registry (npx @modelcontextprotocol/inspector) |
| Sign-in and keys | SKILL.md names no key. |
| Scopes |
|
Questions
What does the php-mcp-server-generator skill do?
It makes the agent create a full PHP MCP server project from your answers. The project has tools, optional resources and prompts, PHPUnit tests and a README, built on the official PHP SDK.
How do I install it?
Use the install box at the top of this page. It lists a Copilot CLI plugin that also adds a PHP MCP Expert agent, a skills CLI command for this skill only, and folder routes.
What do I need to run the result?
PHP 8.2 or newer and Composer, per the generated composer.json and the SKILL.md commands. The inspector command also uses npx.
Do I need an API key?
No key is named in SKILL.md.
Is it safe?
It writes a new project into your working folder and its listed commands run composer install and npx. The skill folder bundles no scripts. Review composer.json before you install packages.
How do I connect the server to Claude Desktop?
SKILL.md includes a config snippet with an mcpServers entry that runs php with the absolute path to server.php. Replace the project name and the path with your own.
Information
updated Nov 2, 2026
- Repository
- github/awesome-copilot
- Folder
skills/php-mcp-server-generator
Sources
Docs, issue trackers and discussions this page is built from.
Show all 5Hide
- awesome-copilot README · github.com
- php-mcp-development plugin.json · github.com
- awesome-copilot marketplace.json · github.com
- php-mcp-server-generator SKILL.md · github.com
- php-mcp-expert agent · github.com