Skip to content
AdminKit
Free tool Updated

MCP endpoint check: is your MCP server exposed without auth?

How does this check work, and what does the result tell you?

Probes an MCP server's initialize call live via AdminKit's Check API to check whether authentication is required, continuing to tools/list — never calling a tool — when it is not, so you can see whether an AI agent could reach your server's tools without proving who it is, the same way an attacker scanning for exposed MCP endpoints would.

Part of the AI agents & MCP cluster — more tools, guides and terms on ai agents & mcp.

AI explanation Run a check below, then sign in to ask AI to explain the result in plain language.

Next step

Also check security headers or open ports on the same host.

Keep this result

Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.

How it works and limits

The Model Context Protocol (MCP) lets AI agents call tools exposed by a server — file access, database queries, shell commands, depending on what the server implements. An MCP server reachable on the internet without authentication lets anyone call those tools, not just the agent it was built for, a risk the specification’s own security best practices call out directly.

What it checks

  • Whether an MCP server’s initialize call succeeds without credentials.
  • If so, whether tools/list then reveals which tools are exposed, without calling any of them.
  • If the endpoint does not behave like an MCP server at all (wrong status code, connection refused), it reports that plainly rather than a false pass or fail.

This check targets Streamable HTTP, the transport the specification’s transport security guidance requires authentication for in the first place — a stdio-spawned server relies on the OS process boundary instead and isn’t reachable over the network for this check to probe. When a Streamable HTTP server does implement the specification’s optional authorization, it answers an unauthenticated request with 401 Unauthorized and points the client to its authorization server through OAuth 2.0 Protected Resource Metadata (RFC 9728).

How to read the results

  • Status badge — OK when initialize was refused with 401 or 403 and nothing else was flagged; Issue found when the server accepted initialize without credentials (a high finding, plus any critical one); Warning when initialize required authentication but the CORS preflight allows any origin with credentials; Could not complete when the server answered initialize with any other status code, could not be reached, or timed out. The text next to the badge is the check’s summary: “no anonymous access found”, “2 finding(s)”, “unexpected initialize response status 404” or “could not reach MCP endpoint: …” with the connection error.
  • Evidence fields — shown with underscores turned into spaces: tls (whether the URL is https), initialize status (the HTTP status code), auth required, www authenticate (the challenge header, if sent), server info and negotiated protocol version (only when initialize succeeded), tools list status (only when initialize succeeded and tools/list answered), tool names (only when that answer was a readable list), oauth metadata (the OAuth Protected Resource Metadata the origin publishes at /.well-known/oauth-protected-resource, plus its authorization server’s metadata when that is readable), cors (the Access-Control-Allow-* headers returned to a preflight request), legacy sse supported (whether the origin also answers on the older /sse transport) and error (when the server could not be reached).
  • Findings — high: initialize accepted without authentication; medium: the tool list is readable without authentication, or CORS allows any origin together with credentials; critical: a listed tool name suggests shell, file or network access (a name containing, for example, shell, exec, command, delete, write_file or fetch_url). The check matches tool names only; a critical finding does not mean the tool was called or proven dangerous.

Examples

Server answer to https://example.com/mcpResultWhat it means
initialize returns 401 with a WWW-Authenticate headerOK, auth required: trueThe server asks for credentials before anything else. This is what you want.
initialize returns 401; the preflight answers Access-Control-Allow-Origin: * with Access-Control-Allow-Credentials: trueWarning: mediumAuthentication is required, but the CORS policy is unsafe and should be narrowed.
initialize returns 200; tools/list returns search_docsIssue found: high + medium, “2 finding(s)”Anyone can open a session and see the tool list.
initialize returns 200; tools/list returns run_shellIssue found: high + medium + criticalAn anonymous client can see a tool that looks like it runs commands. Lock it down first.
initialize returns 404Could not complete: unexpected initialize response status 404Probably the wrong path, not an MCP endpoint.

Limits

  • This runs one check of the URL you give it; it does not independently verify the description text a tool reports stays the same across calls, which is the signature of tool poisoning — only that it can read the tool list at all when the server is unauthenticated. It records tool names only, not their descriptions.
  • Only test an MCP server you own or are authorized to test — the check itself is non-destructive (it never calls a tool), but reachability probing against a server you do not control can still violate its own terms of use.
  • Private and reserved addresses are refused: if the URL’s host is, or resolves to, a loopback, private (RFC 1918), link-local, CGNAT or other non-public IPv4/IPv6 address, the check returns an error instead of connecting.

Check manually today

MCP messages are JSON-RPC 2.0 requests, so for an HTTP-based MCP server a minimal unauthenticated initialize request looks like:

curl -s -X POST https://host/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

A response without an authentication error suggests the server accepts unauthenticated calls — only test an MCP server you own or are authorized to test, and stop at initialize/tools/list; do not call any tool it exposes.

Reference: MCP (Model Context Protocol). See also hosted MCP gateway options compared, AdminKit vs MCPScan.ai for how this live endpoint probe differs from a GitHub-repo source scan, and our page for developers & SaaS teams for the fuller picture of what’s free and what Netbase builds and runs for you.

Frequently asked questions

Is this check live?

Yes — it sends a real `initialize` request to the URL you enter via AdminKit's Check API (POST /v1/check/mcp-endpoint), the same endpoint anyone can call anonymously, rate-limited per visitor.

Why does an open MCP server matter?

An MCP server without authentication lets anyone call its tools, which can mean arbitrary file, database or shell access depending on what the server exposes.

Will it call any of the tools it finds?

No — the only MCP calls it sends are `initialize` and, if that succeeds without credentials, `tools/list`. Besides those it sends a CORS preflight (OPTIONS) to the same URL and plain GET requests to `/sse` and to the OAuth metadata paths under `/.well-known/` on the same host. It never invokes a tool the server exposes, so it cannot trigger a file write, database query or shell command.

Can I use this to check someone else's MCP server?

You can point it at any hostname, but as with AdminKit's other active checks you should only test a server you own or are authorized to test — the check itself stays non-destructive (no tool calls), but reachability probing against assets you don't control can still violate the target's own terms of use.

Why does the result say "Could not complete"?

The URL did not answer `initialize` with 200 (open) or 401/403 (authentication required). A 404 or 405 usually means the path is not the MCP endpoint (many servers use /mcp); a connection error means nothing answered at that host and port. Check the exact URL your MCP client uses and run it again.