Agent skill · Backend & API

php-mcp-server-generator

Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK

GitHub68,948★ · +463/wk · 2 repos on radarProfile →
copilotMIT
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/php-mcp-server-generator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 37,432 · +281 this week
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the 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 ├── .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

What's inside
Steps it walks through
  1. Project Requirements
  2. Project Structure
  3. File Templates
  4. composer.json
  5. .gitignore
  6. README.md
  7. server.php
  8. src/Tools/ExampleTool.php
  9. src/Resources/ConfigResource.php
  10. src/Resources/DataProvider.php
  11. src/Prompts/PromptGenerator.php
  12. tests/ToolsTest.php
  13. phpunit.xml.dist
  14. Implementation Guidelines
More from awesome-copilot
All skills →
About this skill
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.

Keep going