Home / Companies / NeuralTrust / Blog / Post Details
Content Deep Dive

Claude Code MCP and Cursor MCP Security

Blog post from NeuralTrust

Post Details
Company
Date Published
Author
Roger Howroyd
Word Count
2,917
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Claude Code and Cursor use Model Context Protocol servers to extend coding agents with local commands and remote services, but their access to source code, credentials, and shell capabilities makes insecure MCP configuration a potential remote-code-execution risk. Claude Code stores shared project servers in `.mcp.json`, while Cursor uses `.cursor/mcp.json`; both provide approval mechanisms and environment-variable secret handling, although Claude Code may load project servers without prompts in non-interactive, SDK, cloud, or CI contexts. Several fixed vulnerabilities demonstrated risks including prompt injection creating malicious configuration, approved server definitions being altered without renewed consent, code running before workspace trust was accepted, and pull requests supplying malicious MCP configurations to CI runners. Recommended protections include updating tools promptly, reviewing MCP configuration changes as executable code, preventing pull requests from selecting their own servers, using strict or centrally managed allowlists, keeping secrets out of configuration files, applying least-privilege credentials, sandboxing untrusted local servers, and logging tool activity. For enterprise governance, Claude Code offers file-based managed policies and Cursor provides an Enterprise MCP Allowlist, while centralized MCP gateways can add consistent policy enforcement, monitoring, and audit trails across both tools.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
MCP 127 3,429 296 105 -71%
Secrets Management 9 1,018 176 74 -67%
LLM 6 990 247 100 -85%
AI Agents 2 2,121 373 132 -70%
Cloud agents 1 78 25 14 -53%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.