Unauthenticated MCP Server Check: What StackShield Tests

Checks whether a Model Context Protocol server answers, and lists its tools, without authentication.

authentication authorization Easy fix 30 minutes

What This Check Detects

Checks whether a Model Context Protocol server answers, and lists its tools, without authentication.

Full Documentation

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.

Related Security Checks

Free security check

Is your Laravel app exposed right now?

34% of Laravel apps we scan have at least one critical issue, and most teams do not find out until something breaks. The free scan checks your live app in 60 seconds. Then StackShield re-runs every check after each deploy, so a fix you ship today does not quietly regress next week.

18% have debug mode on
72% missing security headers
12% have exposed .env
Scan My App Free No signup for the scan. Continuous monitoring on a 14-day trial, no card.