Live data from Hacker News

Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

mcpdefender.com

1–10 of 42 posts

Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#1
Hi HN,

MCP Defender is an open source desktop app that automatically proxies your MCP traffic in AI apps like Cursor, Claude, Windsurf and VSCode. It then scans all requests and responses between the apps and the MCP tools they call. If it detects anything malicious, it alerts you and lets you allow or block the tool call.

While the threat landscape of MCP is still being actively researched, there are dangerous things that MCP Defender can block today. For example, a developer asks Cursor to fix a Github issue with an attached crash log. However, the Github issue was created by an attacker who included secret instructions buried in the crash log. These instructions tell Cursor to send the developer’s SSH keys to a server the attacker controls. MCP Defender detects these malicious instructions and alerts the developer who otherwise may not be careful in running tool calls.

The scanning is currently done via an LLM and checks for things like prompt injection, credential theft (ssh keys, tokens) and arbitrary code execution. You can use an MCP Defender account or provide your own API keys for LLM providers to perform the scanning.

Currently we’ve published a beta Mac build and we’ll soon publish builds for Windows and Linux as well.

Any feedback would be greatly appreciated.

Thanks!

Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc
mcpdefender.com

Re: Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#4

What’s to stop an attacker from using prompt injection against this firewall? I don’t understand how your AI is anymore secure than the AI it’s protecting

> What’s to stop an attacker from using prompt injection against this firewall?

Clearly you need a firewall-firewall.

..defense in depth?

Re: Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#5
post #3

How are you intercepting the huge variety of network calls and range of protocols that a local MCP service can make? Are you between the client and process? Or do you only support remote MCP?

I guess it depends if you want to restrict an agent to a set of protocols or let it go wild.

I think in most use cases and agent would need just https and dns, both which can be MiTM monitored. In other some cases maybe also one or more of SSH, redis, MySQL, Postgres etc.

But YOLOing and letting it to connect to anything is probably not needed.

Re: Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#6
If your application can be significantly diverted from its intended purpose by the presence of instructions in a normal input file, your application is unsuitable for production workloads.

This feels like installing an "antivirus" addon into wordpress instead of updating php.

Re: Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#7
I know I'm being extremely ignorant here, you are seeing my thought process live, but antivirus/firewall for AI? I'm sure the likes of Bitdefender etc. will start including something like this if it's real. I just can't believe any of this is real. After computers and phone, is AI the next market for antiviruses, 1 click optimizing tools and registry cleaners?

Kudos to you for making something, but if this is the next gold rush I want a piece of it too. Never took this AI, mcp, cursor business seriously because I thought of them as just poor boiler plates for web dev. I was wrong.

Re: Show HN: MCP Defender – OSS AI Firewall for Protecting MCP in Cursor/Claude etc

#9
post #3

How are you intercepting the huge variety of network calls and range of protocols that a local MCP service can make? Are you between the client and process? Or do you only support remote MCP?

In the video example, the 'bad guy' tried to get the MCP server to read ~/.ssh/id_rsa and post it to the attacker site. The MCP Defender popup balked just by it trying to read a suspicious file so it didn't get to the point of making the network connection. It was unclear whether just getting it to ping a remote server with something less shocking than your private keys, such as for instance, source code or environment variables in the current project, would also be treated as malicious.
Post reply on HN