PHPackages                             vielhuber/simplemcp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. vielhuber/simplemcp

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

vielhuber/simplemcp
===================

Simple php mcp server with auto-discovery and totp auth.

1.1.3(1mo ago)12915MITPHPPHP &gt;=8.3

Since Mar 23Pushed 1mo agoCompare

[ Source](https://github.com/vielhuber/simplemcp)[ Packagist](https://packagist.org/packages/vielhuber/simplemcp)[ RSS](/packages/vielhuber-simplemcp/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (15)Used By (5)

[![GitHub Tag](https://camo.githubusercontent.com/5d5057a0f3134803d5d35098f0b915a90d946833ccd07dbecd5dce60290a65ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7669656c68756265722f73696d706c656d6370)](https://github.com/vielhuber/simplemcp/tags)[![Code Style](https://camo.githubusercontent.com/1540f8ce219727155ab62506c77b818b720421c22c4cf0b18a5f160942132e2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7073722d2d31322d6666363962342e737667)](https://www.php-fig.org/psr/psr-12/)[![License](https://camo.githubusercontent.com/460dc61169a8d0fc8c5dcc1ac885af0f1b160dd46edca033e1e87a8a29c1b9ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7669656c68756265722f73696d706c656d6370)](https://github.com/vielhuber/simplemcp/blob/main/LICENSE.md)[![Last Commit](https://camo.githubusercontent.com/574dc7cf7f572b8d93a3eddf54cc07b68f1874a786e12269afe1d8b644b36e74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7669656c68756265722f73696d706c656d6370)](https://github.com/vielhuber/simplemcp/commits)[![PHP Version Support](https://camo.githubusercontent.com/43556e6d013e0cfd2a85dad47ddc63ff65d06974aa2bd8a8cf2f15932e6685e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669656c68756265722f73696d706c656d6370)](https://packagist.org/packages/vielhuber/simplemcp)[![Packagist Downloads](https://camo.githubusercontent.com/6abddfa54c322bc909a55b53fed1102f8b958bf35bf4740be2d182e469731bb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669656c68756265722f73696d706c656d6370)](https://packagist.org/packages/vielhuber/simplemcp)

🐘 simplemcp 🐘
=============

[](#-simplemcp-)

simplemcp is a simple php mcp server. it auto-discovers tool classes via reflection, loads them from a directory you point it at, and authenticates requests via a static bearer token or rotating totp codes (rfc 6238).

installation
------------

[](#installation)

```
composer require vielhuber/simplemcp
```

configuration
-------------

[](#configuration)

```
php -r '$b="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";$r=random_bytes(20);$bits="";for($i=0;$i
