Test MCP servers with Burp Suite

API securityDiscovery

Written with a model's help from “Hacking MCP Servers with Burp Suite” by krisinclude on Include Security blog. Read the writeup before relying on it.

To test an MCP server with Burp Suite, send a POST request to the server with a JSON-RPC message. The response may be in application/json or text/event-stream format. If the response is in text/event-stream format, it may not be possible to use automated tools like Intruder or Scanner. Instead, use the Repeater tool to manually send requests and test the server's primitives, such as prompts, resources, and tools. You can use a Python script to exercise the MCP server and get a collection of requests into Burp's proxy history. Then, manually send these requests to the Repeater for further testing. Look for responses that indicate vulnerabilities, such as unexpected error messages or sensitive data disclosure.

Follow #burp-suite, #json-rpc or #mcp for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.