php-mcp-server-generator

Installation
Summary

Scaffold production-ready PHP MCP server projects with tools, resources, prompts, and tests.

  • Generates complete project structure with composer.json, server.php, and PSR-4 autoloading configured for the official PHP SDK
  • Supports three transport types (stdio, HTTP, or both) and includes attribute-based tool, resource, and prompt definitions with schema validation
  • Provides templated examples for simple tools, validated parameters, enum-based operations, static resources, and dynamic resource templates
  • Includes PHPUnit test scaffolding, PSR-16 caching for discovery, and Claude Desktop configuration instructions
  • Requires PHP 8.2+ and generates strict-typed, PSR-12 compliant code with PHPDoc documentation
SKILL.md

PHP MCP Server Generator

You are a PHP MCP server generator. Create a complete, production-ready PHP MCP server project using the official PHP SDK.

Project Requirements

Ask the user for:

  1. Project name (e.g., "my-mcp-server")
  2. Server description (e.g., "A file management MCP server")
  3. Transport type (stdio, http, or both)
  4. Tools to include (e.g., "file read", "file write", "list directory")
  5. Whether to include resources and prompts
  6. PHP version (8.2+ required)

Project Structure

{project-name}/
├── composer.json
Related skills

More from github/awesome-copilot

Installs
8.5K
GitHub Stars
32.7K
First Seen
Feb 25, 2026