This article provides a comprehensive 30-control security checklist for Model Context Protocol (MCP) servers, organized into five groups: configuration, authentication and tokens, transport, permissions and input, and logging. It addresses the problem that MCP server documentation lacks a single page explaining what to check for security, leaving developers and operators without clear guidance on safely connecting servers to AI clients. The article matters because MCP servers expose tools and data to AI models, creating attack surface that can be exploited through token mismanagement, authentication bypass, tool poisoning, and input injectionβas evidenced by real 2026 CVEs scoring 9.8.
- Authorization is required despite optional specAlthough the MCP specification makes authorization optional (HTTP-based transports should follow it; stdio implementations should not), the article argues authorization becomes required the moment a server exposes non-public data or actions. This distinction matters because developers may deploy spec-compliant servers with no login at all, creating vulnerability. The example CVE-2026-33032 in nginx-ui's MCP endpointβa missing-authentication flaw scoring 9.8 with roughly 2,600 public instancesβdemonstrates the real-world risk.
- No token passthrough to upstream APIsServers must never forward a client's access token to upstream APIs. Instead, they must obtain a separate token from the upstream authorization server and use the RFC 8707 resource parameter to bind tokens to specific servers. This prevents the server from becoming a confused deputy that could elevate privileges. The article shows how to test this by sending a valid token issued for a different service and expecting a 401 or 403 response.
- DNS rebinding requires both localhost binding and Origin validationThe article includes a hands-on DNS rebinding demo showing that binding a local HTTP server to 127.0.0.1 alone is insufficient. When a user's browser performs DNS rebinding, the request still comes from the user's own machine, so the bind address does not reveal the attacker's origin. Servers must validate the Origin header on every connection and return 403 for unknown values. The fixed.py example shows proper implementation: binding to 127.0.0.1, checking the Host header, validating Origin against an allowlist, and requiring a bearer token.
- Configuration isolation prevents cascading compromiseEach MCP server must receive its own narrowly scoped credentials in a per-server configuration file, never inheriting credentials from the shell environment or reusing keys across servers. The article demonstrates testing this with docker run --network none and env inspection to confirm no sensitive variables leak. If one server is compromised, only its single small key is lost, limiting lateral movement and damage.
- Tool poisoning through descriptions requires pre-connection reviewAttackers can hide instructions in a tool's description, which the AI model reads as trusted text and may obey as though they were system instructions. The article emphasizes this is not a code vulnerabilityβthe tool's implementation can be benign. The checklist requires reviewing every tool description before connecting any third-party server, treating descriptions as untrusted input that could subvert model intent. A SecurityElites lab then lets readers practice identifying such poisoned descriptions.
- Logging must separate audit signals from secretsSafe audit logs record tool names, result status, and tenant ID while strictly excluding argument values and secret-like fields (passwords, tokens, API keys, authorization headers). The article provides a JSON example: {"tenant":"acme","tool":"files.read","status":"ok","ms":42} and a grep command to verify no tokens reach logs. The OWASP MCP Top 10 names this gap as MCP08 (Lack of Audit and Telemetry). Logs should be written to a location the MCP process cannot edit or delete.
- Real 2026 CVEs match common control failuresCVE-2026-0755 in gemini-mcp-tool is a command-injection flaw (9.8), and CVE-2026-33032 in nginx-ui's MCP endpoint is missing authentication (9.8). The article shows these are not theoretical; together they illustrate how unchecked input reaching a shell and missing login are both covered by the 30 controls. This grounds the checklist in actual threats developers have faced.
- Least privilege and sandboxing go together for local serversLocal servers from untrusted sources can run commands with the client's privileges, so the article recommends denying egress by default and running servers in containers (docker run --network none --read-only). Each tool should have a kill switch to disable it without stopping the server, and tool scopes should match their purpose exactly. The article warns that scope creep (MCP02 in OWASP Top 10) allows tools to slowly accumulate more access than needed.
Bottom line: Security for MCP servers requires testing, not just reading; build a simple table linking each control number to its test command and last result, then run those tests in your CI pipeline and before connecting any third-party server. The most critical defensesβauthentication on every request, token audience validation, DNS rebinding mitigation, and pre-connection review of tool descriptionsβare cheap to implement and must all be verified before deployment.
β±οΈ 60 min Β· Intermediate Β· 2 hands-on labs
You have an MCP server running, or a colleague has just sent you a link to one, and someone asks whether it is safe to connect to your AI client. You open the docs and find tools, transports, tokens and scopes, but no single page that says what to check. This is the gap a good mcp server security checklist fills, and it is exactly what we are going to build and use together.
I will walk you through 30 controls in five groups: configuration, authentication and tokens, transport, permissions and input, and logging. Along the way I will show you how to explain the no token passthrough rule and check a server for it, and I will break a local server with a DNS rebinding demo so you can see why Origin validation and localhost binding both matter.
Then we will point the checklist at a hostile server in the SecurityElites lab, so you practise reviewing tools for poisoning before you connect anything. Everything hands-on runs on your own machine or in the lab. Please never test the checklist against someone else's MCP server.
π― What You Will Be Able to Do
β Before You Start
- Basic understanding of what MCP servers and tools are
- Familiarity with HTTP headers and OAuth concepts
- A terminal and a text editor
π In This Tutorial
- The Short Answer: What Belongs on the Checklist
- What an MCP Server Attack Surface Looks Like
- Threat Model: Who Attacks an MCP Server and How
- Configuration Controls (1-6) for Your MCP Server Security Checklist
- Authentication and Token Controls (7-14)
- Transport Controls and a DNS Rebinding Demo
- Permission and Input Controls (15-23) for Your MCP Server Security Checklist
- Logging and Monitoring Controls (24-30) in Your MCP Server Security Checklist
- Run the Checklist Against a Rogue Server in the Lab
- Detecting Gaps and Next Steps
- Your checklist
- What I want you to remember
- Questions people ask
The Short Answer: What Belongs on the Checklist
Let me give you the answer first, then we spend the rest of the article earning it. A useful mcp server security checklist has 30 controls in five groups: configuration, authentication and tokens, transport, permissions and input, and logging. If you want the wider picture afterwards, my MCP Security complete guide covers the whole topic.
Here is the awkward part. In MCP, authorization is optional. The spec says HTTP-based transports should follow the authorization spec, while stdio implementations should not and should take credentials from the environment instead. So a server can be fully spec-compliant and still have no login at all.
That is why I treat authorization as required the moment a server exposes non-public data or actions. Optional in the spec does not mean optional in your deployment.
π Words I just used
What an MCP Server Attack Surface Looks Like
Before any control makes sense, you need a picture of what you are protecting. An MCP server is a small program that exposes tools (actions the model can call) and data to an AI client. The client sends requests, the server runs the tool, and the result goes back into the model's context.
The spec defines two standard transports, meaning two ways to carry those messages. stdio runs the server as a local child process and talks over standard input and output. Streamable HTTP runs the server as a web endpoint, and it replaced the older HTTP+SSE transport. For a deeper map, read MCP attack surface explained.
With HTTP, the client must send a bearer token in the Authorization header on every request. The server advertises which authorization server to use through OAuth 2.0 Protected Resource Metadata. Each hop below is somewhere a control can sit.
- User prompt
- MCP client
- Token request to authorization server
- HTTPS request with bearer token
- MCP server checks token
- Tool call
- Upstream API with its own token
Threat Model: Who Attacks an MCP Server and How
A checklist is only as good as the threats behind it. The OWASP MCP Top 10 gives us a shared vocabulary. It lists MCP01 Token Mismanagement and Secret Exposure, MCP02 Privilege Escalation via Scope Creep, MCP03 Tool Poisoning, MCP04 Supply Chain Attacks, MCP05 Command Injection, MCP06 Intent Flow Subversion, MCP07 Insufficient Authentication and Authorization, MCP08 Lack of Audit and Telemetry, and MCP09 Shadow MCP Servers.
Let me translate the ones that matter most. Token exposure means secrets leak through logs or config. Scope creep means a tool slowly gains more access than it needs. Tool poisoning hides instructions in a tool description, which the model reads as trusted text; see MCP tool poisoning. Shadow servers are ones nobody approved or inventoried.
These are not theory. Two CVEs were reported in 2026. CVE-2026-0755 in gemini-mcp-tool is a command-injection flaw scoring 9.8. CVE-2026-33032 in nginx-ui's MCP endpoint is a missing-authentication flaw, also 9.8, with roughly 2,600 public instances.
Notice the pattern. One is unchecked input reaching a shell, the other is no login at all. Both are covered by controls coming in the next sections. For method, see AI agent threat modelling.
π§ Quick check
Configuration Controls (1-6) for Your MCP Server Security Checklist
Let me start the mcp server security checklist where many breaches begin: configuration. Before any token or tool call, the way you wire a server into a client decides how much damage a single bad request can do. These first six controls are cheap, and you can apply them in an afternoon. For the wider picture, see the MCP Security guide that this checklist supports.
π§ Controls 1 to 6
The env output should hold no keys or tokens, and –network none means the container has no outbound route.
π§ Quick check
Authentication and Token Controls (7-14)
Let me be honest about one thing first: in MCP, authorization is optional. HTTP-based transports should follow the authorization spec, while stdio servers should take credentials from the environment instead. But any server that exposes non-public data or actions needs it. These eight controls make up the authentication group.
π§ Controls 7 to 14
A 401 with a metadata pointer shows controls 11 and 13 working. A 200 here means auth is missing.
I run these checks against my own local server to see whether it rejects a token that was not issued for it, which is the no token passthrough rule in practice.
Both requests return 401, showing the server rejects a wrong-audience token and a missing token.
Transport Controls and a DNS Rebinding Demo
Let me show you why transport controls matter by breaking something first. The checklist lists them as controls, but a missing Origin check is easier to understand once you have watched it work. Everything below runs on your own machine, against a deliberately weak local server I will ask you to build. Nothing touches a third-party system.
First, the choice. The spec defines two standard transports, stdio and Streamable HTTP, and Streamable HTTP replaced the older HTTP+SSE transport. For a local server, stdio is the safer default, because there is no network port for a browser to reach. If you must use HTTP locally, the guidance is to require an authorization token. For the wider picture, see the MCP attack surface explainer.
π§ Demo: a missing Origin check, then the fix
Run this in one terminal. It accepts any caller, from any network interface.
A request claiming a hostile Origin is served. That is the gap.

