Back to Home
awehttam icon

mcpclient

by awehttam

Overview

A flexible PHP client for the Model Context Protocol (MCP) supporting both CLI and web interfaces with multi-server configuration.

Installation

Run Command
cd public_html && php -S localhost:8080

Security Notes

The `public_html/api.php` endpoint exposes all configured MCP servers and their tools via an unauthenticated web API. Any HTTP request to this endpoint can initialize connections, list tools, and call tools on any configured backend server. This presents a critical security vulnerability, allowing potential remote code execution or unauthorized access if the MCP servers themselves are not secured and/or expose dangerous tools. No authorization, authentication, or input validation beyond basic type parsing is implemented for the web API, making it unsafe for public exposure. The `proc_open` usage for 'process' connections is somewhat mitigated by `escapeshellarg` but relies on trusting the local `mcpconfig.json`.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2025-11-28

Tags

PHPCLIWeb UIMulti-ServerMCPJSON-RPC