logoalt Hacker News

mrgarotoday at 10:25 AM5 repliesview on HN

MCP has a great advantage over agent using cli: MCP is much easier to secure so that it's hardwired that the agent can only call the pre-configured MCP server. We run our agents so that they don't have access to public internet, so they could not run any cli commands. It's all either built-in agent tools, or 3rd party mcp servers. The agents never have access to any credentials, which makes them much more safe to use than a claude code running in yolo mode with fetching random cli binaries from the web.


Replies

zingartoday at 11:48 AM

Can you not just install/ restrict the available CLIs in the same way you do with MCPs?

Or what else am I missing about why MCP is more secure than a CLI?

show 4 replies
kyllingtoday at 5:31 PM

It is crazy how the preferred way or securing AI are vibe coded MCP servers which at the same time do access control, credentials handling and HTTP server/client boilerplate. Want to use a new API: just vibe code a new MCP you won't fully review. It is hardly better than yoloing. The security critical parts needs to leave MCP and be integrated with, or be in front of, the API in a way humans will understand and review.

show 1 reply
twoodfintoday at 12:32 PM

I think that’s exactly right: MCP provides a capability security model for agents.

v3ss0ntoday at 11:53 AM

How in the world MCP is going to be more secure? It introduce a big surface layers for injection attacks and supply chain attacks..

show 1 reply
joka88xjtoday at 12:54 PM

[dead]