What are the prerequisites for using this SDK?
PHP 8.1 or higher and Composer for dependency management are required.
@james2037
基本情報
A PHP Server Framework for Model Context Protocol (MCP)
ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
This project provides a PHP implementation of the Model Context Protocol (MCP), enabling you to build servers that can provide context (data and tools) to Large Language Models (LLMs). It is designed for PHP developers who want to expose custom functionalities and data to LLMs using the standardized MCP protocol.
Install the SDK via Composer with composer require james2037/mcp-php-server. Requires PHP 8.1 or higher. Define tools and resources using PHP attributes, then instantiate a Server, add capabilities (ToolsCapability, ResourcesCapability), connect a transport (StdioTransport or HttpTransport), and call $server->run(). Example scripts are provided in the examples/ directory.
PHP 8.1 or higher and Composer for dependency management are required.
The SDK provides StdioTransport for command-line based servers and HttpTransport for HTTP-based servers (compatible with standard PHP web server environments like Apache/Nginx with PHP-FPM/mod_php).
For development, start PHP’s built-in server: `php -S localhost:8000 examples/http_server.php`. For production, configure your web server (e.g., Nginx or Apache) to route requests to the `http_server.php` script.
Send JSON-RPC requests via curl, for example: `curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"echo","arguments":{"message":"Hello"}},"id":1}' http://localhost:8000/`.
Use PHP attributes such as `#[Tool]`, `#[Parameter]`, and `#[ResourceUri]` on classes that extend the base Tool or Resource classes.

Manage CI/CD pipelines, debug failed builds, and optimize test suites directly from your AI agents - no terminal required. The CircleCI MCP Server is a remote server hosted by CircleCI that connects AI tools and agents

Official Porkbun MCP server, maintained by Porkbun. Check domain availability and pricing, register, renew and transfer domains, and manage DNS records, nameservers, URL forwarding, glue records, DNSSEC and domain contac


Automated codebase documentation for GitHub: searchable docs, MCP context for AI agents, doc drift detection, and Friday Cleanup PRs.
Modelglass turns "which model should I use?" into a lookup instead of a guess. Seven tools give your agent live pricing across image, language, video, and audio models. Sourced and versioned, not scraped once and forgott
コメント