Download the PHP package antidrift/zeromcp without Composer
On this page you can find all versions of the php package antidrift/zeromcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antidrift/zeromcp
More information about antidrift/zeromcp
Files in antidrift/zeromcp
Package zeromcp
Short Description Zero-config MCP runtime for PHP
License MIT
Homepage https://github.com/antidrift-dev/zeromcp
Informations about the package zeromcp
ZeroMCP — PHP
Drop a .php file in a folder, get a sandboxed MCP server. Stdio out of the box, zero dependencies.
Getting started
That's it. Stdio works immediately. Drop another .php file to add another tool. Delete a file to remove one.
vs. the official SDK
The official PHP SDK (backed by The PHP Foundation) requires Composer, server setup, transport configuration, and explicit tool registration. ZeroMCP is file-based — each tool is its own file, discovered automatically. Pure PHP, no Composer, no extensions.
In benchmarks, ZeroMCP PHP handles 13,333 requests/second over stdio versus the official SDK's 18 — 740x faster. Over HTTP (Slim), ZeroMCP serves 1,561 rps at 11-33 MB versus the official SDK's 17 rps at 31-64 MB. The official SDK takes 54ms per request. ZeroMCP takes 0.53ms. The official SDK corrupted responses on giant strings and slow tools in chaos testing. ZeroMCP survived 22/22 attacks.
The official SDK has no sandbox. ZeroMCP lets tools declare network, filesystem, and exec permissions.
PHP passes all 10 conformance suites.
HTTP / Streamable HTTP
ZeroMCP doesn't own the HTTP layer. You bring your own framework; ZeroMCP gives you a handleRequest method that takes an associative array and returns an array (or null for notifications).
Slim
Requirements
- PHP CLI (no extensions required)
Sandbox
Directory structure
Tools are discovered recursively. Subdirectory names become namespace prefixes: