Skip to content
< all work

LLM research · Independent research · 2025

Authentication and authorization flaws in MCP servers

Early research on how Model Context Protocol servers handle authentication and authorization, starting from a threat taxonomy across the server lifecycle and a test server to break on purpose.

mcpllm-securityagent-systems

A lifecycle threat map for MCP and a minimal MCP server as the baseline for an intentionally vulnerable test bed. Work in progress.

Role
Independent researcher
Stack
Python · MCP Python SDK · FastMCP · httpx
Diagram mapping Model Context Protocol threats to creation, operation and update phases, from name collision to configuration drift
Threats across the MCP server lifecycle, adapted from the taxonomy of Hou et al.

MCP lets an agent call tools on servers it did not write. That makes the server's authentication and authorization the trust boundary between the model and real systems. I started this project to study where that boundary fails.

I began by mapping known MCP threats onto the server lifecycle, adapting the taxonomy of Hou et al. Creation covers name collision, installer spoofing and backdoors. Operation covers tool name conflicts, slash command overlap and sandbox escape. Update covers privilege persistence, vulnerable versions and configuration drift. Privilege persistence is the one closest to authorization: access that should have been revoked stays live after an update.

The test bed starts from a minimal MCP server built with FastMCP: two tools over stdio that call a public weather API. The plan is to add authentication and authorization to it, introduce flaws on purpose, and study what an agent client can reach through each one.