php-mcp-server-generator
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
npx skills add github/awesome-copilot --skill php-mcp-server-generator --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ├── .gitignore ├── README.md ├── server.php ├── src/ │ ├── Tools/ │ │ └── {ToolClass}.php │ ├── Resources/ │ │ └── {ResourceClass}.php │ ├── Prompts/ │ │ └── {PromptClass}.php │ └── Providers/ │ └── {CompletionProvider}.php └── tests/ └── ToolsTest.php ``` ## File Templates ### composer.json ```json { "name": "your-org/{project-name}", "description": "{Server description}", "type": "project", "require": { "php": "^8.2", "mcp/sdk": "^0.1" }, "require-dev": { "phpunit/phpunit": "^10.0", "symfony/cache": "^6.4" }, "autoload": { "psr-4": { "App\\\\": "src/" } }, "autoload-dev": { "psr-4": { "Tests\\\\": "tests/" } }, "config": { "op
- Project Requirements
- Project Structure
- File Templates
- composer.json
- .gitignore
- README.md
- server.php
- src/Tools/ExampleTool.php
- src/Resources/ConfigResource.php
- src/Resources/DataProvider.php
- src/Prompts/PromptGenerator.php
- tests/ToolsTest.php
- phpunit.xml.dist
- Implementation Guidelines
What does the php-mcp-server-generator skill do?
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
How do I install it?
Run `npx skills add github/awesome-copilot --skill php-mcp-server-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.