Ecc Agentshield
MCP server by affaan-m Verified · npm:ecc-agentshield
Audits Claude Code and AI agent configurations for hardcoded secrets, permission misconfigs, hook injection and MCP server risks. Built for developers who install community skills, MCP servers and hooks.
Install Ecc Agentshield
Built from the published package, never by AI.
claude mcp add ecc-agentshield -- npx -y ecc-agentshieldRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ecc-agentshield": {
"args": [
"-y",
"ecc-agentshield"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ecc-agentshield": {
"args": [
"-y",
"ecc-agentshield"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ecc-agentshield": {
"args": [
"-y",
"ecc-agentshield"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ecc-agentshield -- npx -y ecc-agentshield{
"mcpServers": {
"ecc-agentshield": {
"args": [
"-y",
"ecc-agentshield"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ecc-agentshield npx -y ecc-agentshieldGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ecc-agentshield block.
About
AgentShield is a security auditor for AI agent configurations. It scans Claude Code setups, including the .claude/ directory, for hardcoded secrets, permission misconfigurations, hook injection, MCP server risks and agent prompt injection vectors. It is available as a CLI, a GitHub Action and a GitHub App integration. The scanner runs 268 rules across 15 modules and grades results from A to F with a 0 to 100 score.
Each finding includes a severity and, where possible, a fix. The tool can auto-fix safe issues, such as replacing hardcoded secrets with environment variable references. It also produces JSON, HTML and portable evidence bundles for CI pipelines and reports. It is aimed at developers who install community skills, connect MCP servers and configure hooks and want an automated audit of their setup. It is part of the Everything Claude Code ecosystem.
Written from the project's README and checked against it.
What you need
- Node.js (install via npm or run with npx)
- ANTHROPIC_API_KEY for the --opus Claude Opus analysis
Try asking
- Scan my Claude Code config for hardcoded secrets and permission issues
- Run an AgentShield scan and output the results as JSON for CI
- Auto-fix safe issues in my .claude directory with --fix
Good to know
- The --opus deep analysis requires ANTHROPIC_API_KEY.
- Findings from template or example files are weighted lower than active runtime configuration.
Security check
D- Tells the assistant to ignore its instructions or hide actions from youIn
README.md:ignore previous instructions - Downloads a script from the internet and runs itIn
README.md:curl ... | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Audit Claude Code permissions and hooks
- Find hardcoded secrets in agent configs
- Check MCP server configs before use
- Add config security checks to CI
Alternatives to Ecc Agentshield
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Ecc Agentshield: common questions
Does AgentShield change my files?
Only when you use the --fix option, which replaces hardcoded secrets with environment variable references. Other scans report findings without editing files.
What does AgentShield check?
It checks API keys and tokens, Claude Code permissions, hooks, MCP server configuration and agent config files. The README lists 268 rules across 15 modules.
Does the Opus analysis need an API key?
Yes. The README says the three-agent Claude Opus adversarial analysis requires ANTHROPIC_API_KEY.
How do I install Ecc Agentshield?
In Claude Code run claude mcp add ecc-agentshield -- npx -y ecc-agentshield. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Ecc Agentshield the official server?
Ecc Agentshield is published by npm:ecc-agentshield from its verified domain in the official MCP Registry.
Is Ecc Agentshield free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Ecc Agentshield safe to use?
It scores 85 of 100. Grades: maintenance B, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.
What are alternatives to Ecc Agentshield?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Ecc Agentshield work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
