Testing MCP Servers with Burp Suite Include Security reported that client demand for security assessments of MCP (Model Context Protocol) servers is rising, and published guidance on testing MCP's Streamable HTTP transport with Burp Suite. The firm found that Burp Suite's Proxy and Repeater tools can handle the Server-Sent Events (SSE) responses MCP servers return, but automated requests via Intruder and Scanner did not work in its testing, and that some MCP servers return application/json instead of SSE's text/event-stream content type, making them testable like conventional HTTP APIs. Include Security advises treating an MCP server as a conventional HTTP API with similar security properties, rather than focusing only on prompt injection against the language model. At Include Security we have started to receive more requests to assess MCP servers, or applications that utilize MCP. This is a trend we expect to increase as integrating language models into applications is becoming more popular. But what is MCP, and how do we perform a security assessment of an MCP server? There are developer tools such as MCP Inspector https://modelcontextprotocol.io/docs/tools/inspector which can be used to interact with MCP services. However, in this blog post we are focusing on the unique challenges in performing security assessments of MCP servers specifically with Burp Suite, a tool which we use heavily in our security assessments. What is MCP? MCP Model Context Protocol is a protocol for enabling language model-based applications “AI agents” to access external resources and tools. For example, when an agent interacts with a file on the filesystem, or invokes an API integration, MCP is the protocol likely used to do so. The MCP protocol is based on JSON-RPC messages with standard methods used to enumerate and invoke primitives including tools, resources, and prompts. An MCP server can be accessed by language model tooling over standard input/output stream stdio transport for servers running on the local machine, or through Streamable HTTP transport, which can be accessed remotely. Other transports may be supported by MCP servers; for example there is a deprecated SSE transport, some applications use a websocket transport, or developers may implement custom transports. In this post we’re focusing on the Streamable HTTP transport, and taking a look at intercepting it with Burp Suite. MCP defines several primitives that it provides clients access to: resources, tools, and prompts. Resources are data to be provided to the language model, for example files, emails, database schemas, or additional application-specific context for the language model. Tools are functions that can be invoked by the language model to perform tasks such as executing commands, database queries, performing calculations, or other application-specific tasks. Prompts are instructions for the language model to perform specific tasks within the application. A user may invoke a prompt through a user-interface, which would cause the text of the prompt to be fed to the language model. From a security perspective, it’s helpful to think of an MCP server as similar to a conventional HTTP API with similar security properties. The differences are that MCP is intended to be consumed by a language model, and the Streamable HTTP transport is atypical for an HTTP API. This framing helps clarify how a MCP server can be tested for vulnerabilities typical for HTTP APIs beyond focusing on the language model with attacks such as prompt injection. Testing MCP’s Streamable HTTP Transport in Burp The official remote transport for MCP, Streamable HTTP https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http , supports Server-Sent Events SSE https://en.wikipedia.org/wiki/Server-sent events , which allows the server to send multiple asynchronous messages to the client over a relatively long-running HTTP connection. SSE is a technology that we don’t see very often in HTTP APIs, and SSE support in Burp Suite is limited. Burp can handle SSE requests in the Proxy and Repeater tools, however automated requests with the Intruder or Scanner didn’t work in our testing. MCP messages from the client to the server are sent in POST requests, and messages from the server to the client are sent in the POST response or depending on protocol version in the response to a GET request. We have observed that some MCP servers depending on framework and configuration will return responses with content-type application/json rather than SSE’s text/event-stream content-type. In this case the MCP server can be tested straightforwardly in Burp like other HTTP APIs. This situation may improve over time as the MCP protocol specification and libraries evolve. The MCP Python SDK version 2, which was released in July 2026 defaults to application/json responses by default, for example. At this point though, the majority of MCP servers we’ve seen use SSE, making testing more difficult. This is an MCP POST response with content-type application/json. In this case, the json response=True option was used in the FastMCP framework. Alternatively, here’s an SSE MCP POST response with content-type text/event-stream, which is the default behavior of the FastMCP framework. We wrote a script \ 1\ https://github.com/IncludeSecurity/mcp-burp-enumeration/blob/main/mcpburp.py that uses the Python MCP library to exercise an MCP server. The purpose of the script is to get a collection of requests into Burp’s proxy history that can then be manually sent to the Repeater for further testing. As mentioned before, automated burp tools such as Intruder and Scanner don’t work. After running the script, it was also necessary to repeat an initialization request and update the mcp-session-id header in subsequent requests for MCP servers before the 2026-07-28 specification, which removed the initialization requirement , but manual testing in Repeater was possible. The Python Client Script The purpose of the script is to get requests that exercise the features of an arbitrary MCP server into Burp’s proxy history. To do so, the script first initializes the connection, then lists and requests each of MCP’s major primitives, prompts, resources, and tools. At the time of writing, the latest version of the MCP specification is 2026-07-28 , which removed the initialization step and added the discover method, so the script first attempts discover and then the older initialize : async def initialize self : try: await self.session.discover except: await self.session.initialize Here’s what that looks like against the “Everything” MCP test server https://github.com/modelcontextprotocol/servers/tree/781a93db14c430b9410d89910f42a65a3c9d0c72/src/everything , which uses the 2025-11-25 protocol version. The discover request returns a 400 response because it is unsupported by the older server library version: And here’s the initialize request: This screenshot shows the discover request against some sample MCP server code https://py.sdk.modelcontextprotocol.io/client/ which supports the 2026-07-28 protocol version: Next, the code runs through each of the primitives starting with prompts: async def fetch resources self : result = await self.session.list resources pp result for resource in result.resources: try: async with asyncio.timeout self.timeout : resource result = await self.session.read resource resource.uri pp resource result except: pass result = await self.session.list resource templates pp result for template in result.resource templates: uri = re.sub r"{ ^} }", "TEST", template.uri template try: async with asyncio.timeout self.timeout : resource result = await self.session.read resource uri pp resource result except: pass The code makes a request to list prompts, and then requests each prompt, filling in “TEST” for any arguments. Here are some screenshots from Burp that show listing prompts and fetching a prompt. Listing prompts supported by the MCP server Fetching a prompt, with arguments filled in as “TEST” Next the code handles resources: async def fetch resources self : result = await self.session.list resources pp result for resource in result.resources: try: async with asyncio.timeout self.timeout : resource result = await self.session.read resource resource.uri pp resource result except: pass result = await self.session.list resource templates pp result for template in result.resource templates: uri = re.sub r"{ ^} }", "TEST", template.uri template try: async with asyncio.timeout self.timeout : resource result = await self.session.read resource uri pp resource result except: pass In the case of resources, there are normal resources as well as resource templates. The code fills in resource templates with the string “TEST”. The following screenshots show listing and requesting a resource: Listing resources available through the MCP server Fetching a resource These next two screenshots show listing resource templates and requesting a templated resource: Listing resource templates Fetching a resource with the template value filled in as “TEST” Finally, the code lists and calls tools. async def fetch tools self : result = await self.session.list tools pp result for tool in result.tools: arguments = recursive generate from schema tool.input schema try: async with asyncio.timeout self.timeout : tool result = await self.session.call tool tool.name, arguments pp tool result except: pass The code lists available tools, then generates tool call requests for each tool. The added complication here is generating arguments that at least match the types enumerated in the tool’s input schema. For that, the script uses the following function to generate nonsense tool input. The function is recursive because the schema can contain objects or arrays that themselves can contain objects, arrays, or primitive types. def recursive generate from schema schema : if "type" not in schema: return None schema type = schema "type" if schema type == "object": example obj = {} properties = schema.get "properties", {} for prop name, prop schema in properties.items : example obj prop name = recursive generate from schema prop schema return example obj elif schema type == "array": items schema = schema.get "items", {} return recursive generate from schema items schema elif schema type == "string": if "format" in schema and schema "format" == "date-time": return "1999-01-01T12:00:00Z" return "TEST" elif schema type == "integer": return 12345 elif schema type == "number": return 123.45 elif schema type == "boolean": return True elif schema type == "null": return None elif isinstance schema type, list : chosen type = schema type 0 for optional type in schema type: if optional type = "null": chosen type = optional type return recursive generate from schema {"type": chosen type} return None These two screenshots show listing tools and calling a tool: Listing tools available in the MCP server Calling a tool As is clear from some of the above screenshots, the test values such as “TEST” or 123.45 that the script fills in to arguments or templates might not make sense in the context of any given MCP server, however they serve to produce well-formed requests for arbitrary MCP servers that can then be edited in Burp’s repeater. MCP Burp Plugins At the time of writing, the only plugin for testing MCP servers available in the official Burp Bapp store was the MCP Server Scanner https://github.com/PortSwigger/mcp-server-scanner . It also was the most mature plugin that we found for testing Streamable HTTP. The plugin supported connecting to an MCP server, listing primitives, and running a handful of prewritten scanner checks against the MCP server. MCP Server Scanner plugin UI showing a list of scanner checks The MCP Server Scanner plugin also implemented a built-in proxy to translate non-SSE POST requests to SSE requests. In this pattern, requests are sent from Burp to the internal proxy, which then sends messages to the MCP server. This isn’t ideal since it obfuscates the real transport from the Burp user, even hiding HTTP response headers for example, which may cause potential vulnerabilities to be overlooked. MCP Request and response from MCP Server Scanner’s built-in proxy The above MCP Request sent again and response with the MCP Server Scanner plugin unloaded Screenshot of Wireshark showing MCP Server Scanner’s built-in proxy in operation: first a request from the burp repeater to the proxy, then the request from the proxy to the MCP server, then the response from the MCP server highlighted , and finally the response from the proxy We took a look at a few more available MCP Burp plugins. The MCPwned https://github.com/FenriskSecurity/MCPwned extension was able to enumerate MCP server primitives, similar to our Python script, but in its own Burp UI tab. Individual primitives could then be sent to a repeater tab. MCPwned extension showing enumerated Tools, Resources, Resource Templates, and Prompts. MCP-ASD https://github.com/hoodoer/MCP-ASD and MCP-Inspector https://github.com/Manjesh24/MCP-Inspector didn’t support the Streamable HTTP transport at the time of writing. MCP-Inspector supported starting an optional internal proxy similar to MCP Server Scanner’s but for the deprecated HTTP with SSE transport, and had its own user interface for Repeater-style request editing. We also considered SSE Parser https://github.com/UncleJ4ck/SSE Parser , which again implements an internal proxy for SSE but not MCP specifically. It didn’t work for the MCP servers in our limited testing, however, likely because of it not supporting MCP-specific HTTP request headers. Conclusion MCP is becoming more popular as language model integrations become more commonplace. Though in many respects MCP servers are similar to traditional HTTP APIs, the Streamable HTTP transport makes security testing with Burp Suite more challenging due to Burp Sute’s limited support of SSE. Many of the existing MCP-oriented Burp plugins are either outdated or immature, and at the same time, the MCP protocol specification and SDK libraries are evolving rapidly. As a result, strategies for testing MCP servers in Burp may change over time. However, for now our recommended strategy is the following: • First, use a MCP client or script like ours \ 1\ https://github.com/IncludeSecurity/mcp-burp-enumeration/blob/main/mcpburp.py to enumerate the MCP server in Burp’s Proxy history. • If the MCP server doesn’t use SSE for any of its responses which can depend on protocol version and server configuration , then the server can be treated like any other HTTP API. • If the MCP server is using SSE for some or all of its responses, load the MCP Server Scanner plugin from Burp’s BApp Store in order to use the built-in proxy, while being aware of the limitations of the proxy obfuscating the details of the transport. • Finally, other MCP clients can be used without proxying through Burp Suite for testing any additional workflows. In this blog post, we’ve taken a look at what MCP is, with a focus on security testing remotely-accessable MCP servers that use the Streamable HTTP transport using Burp Suite. We shared a Python script used to enumerate MCP servers, took a look at several Burp plugins, and outlined a strategy for working around the limitations of SSE in Burp. Resources 1 mcpburp.py https://github.com/IncludeSecurity/mcp-burp-enumeration/blob/main/mcpburp.py