cd /news/ai-agents/testing-mcp-servers-with-burp-suite · home › topics › ai-agents › article
[ARTICLE · art-178779] src=blog.includesecurity.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

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.

recommendation

Intercept MCP Streamable HTTP traffic manually in Burp Proxy and Repeater rather than relying on Intruder or Scanner, since automated tooling failed on SSE responses in Include Security's testing.

more in playbook: Securing agents and AI tools
by read10 min views7 publishedNov 30, 2026
Testing MCP Servers with Burp Suite
Image: Blog (auto-discovered)

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 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, supports Server-Sent Events (SSE), 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] 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, 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 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. 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 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 and 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, 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] 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

── more in #ai-agents 4 stories · sorted by recency
── more on @include security 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/testing-mcp-servers-…] indexed:0 read:10min 2026-11-30 · —