PlugWiki

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. 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. 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

  1. Project Requirements
  2. Project Structure
  3. File Templates
  4. composer.json
  5. .gitignore
  6. README.md
  7. Requirements
  8. Installation
  9. Usage
  10. Start Server (Stdio)
  11. Configure in Claude Desktop
  12. Testing
  13. Tools
  14. Development
  15. server.php
  16. src/Tools/ExampleTool.php

Key facts

Installs on skills.sh
8,881 (Nov 2, 2026)
Last repo commit
Oct 30, 2026

What it includes

  • Six questions: name, description, transport, tools, resources and prompts, PHP version

    Read · Ask for requirements

  • composer.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 tree

  • Simple tool, tool with validation and tool with enum using #[McpTool]

    Read · Tool patterns

  • Static resources with #[McpResource] and templates with #[McpResourceTemplate]

    Read · Resource patterns

  • composer 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 commands

  • A 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-onlyNo read-only switch exists.
Talks tonpm registry (npx @modelcontextprotocol/inspector)
Sign-in and keysSKILL.md names no key.
Scopes
  • Writes a new PHP project into your working folder

  • Its commands run composer install, PHPUnit, php server.php and npx for the MCP inspector

  • The Copilot CLI plugin route also installs a PHP MCP Expert agent

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

Folder
skills/php-mcp-server-generator

github/awesome-copilotskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 5
  1. awesome-copilot README · github.com
  2. php-mcp-development plugin.json · github.com
  3. awesome-copilot marketplace.json · github.com
  4. php-mcp-server-generator SKILL.md · github.com
  5. php-mcp-expert agent · github.com

Updated Nov 2, 2026.