Unauthenticated MCP Server
EasyChecks whether a Model Context Protocol server answers, and lists its tools, without authentication.
What this check looks for
A Model Context Protocol (MCP) server lets AI agents call tools in your application. StackShield sends the protocol's own handshake to the paths where these servers are usually mounted, such as /mcp and /api/mcp, without any credentials. If a server completes the handshake, StackShield asks it for its list of tools.
The tool list is metadata. StackShield never calls a tool, so nothing in your application is read or changed. If your server lives at another path, add it to this check's configuration.
Why it matters
An MCP route is an API whose every operation is described in plain language for whoever connects. With laravel/mcp, a server registered with Mcp::web() is public unless you add middleware to it, and it is easy to ship one that was only ever tested from a local agent. An agent, or a person with a few lines of script, can then call tools that create records, send messages or query data, with no account at all.
What the findings mean
A high finding lists tools whose names suggest they change data or reach accounts, files or queries. A medium finding means tools are public but look read-only. A warning means the server answers anonymously without listing any tools, which still leaves any tool added later public from the day it ships.
Put the route behind authentication, for example Sanctum or OAuth middleware on Mcp::web(), and authorize each tool for the calling user. If the server is public on purpose and its tools only return public data, turn this check off for that domain.
Automatically detect this issue
StackShield can automatically scan your Laravel application for this security issue and alert you when it's detected.
Start Free Trial