← Back
$ askskill --guide mcp-security-for-teams
MCP Security Governance for Teams: Least Privilege, Secret Isolation, and Audits
2026-09-05
When individual developers try MCP, pasting an admin token to get a quick demo working is tempting. Across an engineering team, however, combining local code execution, broad credentials, and outbound network access inside an agent loop creates real operational risk.
Four Core Risk Surfaces
| Risk Surface | Common Mistake | Team Baseline |
|---|---|---|
| Local execution (stdio) | Running unpinned npx -y packages on every start | Pin exact package versions or serve vetted packages from an internal registry |
| Over-privileged keys | Reusing personal admin tokens for read-only workflows | Issue read-only, scoped, revocable service tokens dedicated to AI tooling |
| Indirect prompt injection | Untrusted external content (issues, web pages) tricks the agent into calling write tools | Separate read and write servers; require human approval on destructive actions |
| Secrets committed to Git | Checking real tokens into .mcp.json | Commit only ${ENV_VAR} placeholders and enforce secret scanning in CI |
A Practical Three-Tier Approval Model
- Pre-approved (Safe): prompt-only
SKILL.mdfiles and credential-free read-only docs/search servers. - Controlled Sandbox (Caution): local execution or database access restricted to read-only replicas and staging environments.
- Security Review Required (Risk): closed-source remote endpoints or tools capable of mutating production state, sending external messages, or spending money.
Six-Point Team Readiness Checklist
- Verify provenance: prefer official registries and auditable open-source repositories; check permission badges and the security review on each askskill asset page.
- Isolate environments: AI tooling should never hold write credentials to production databases.
- Pin versions: avoid unpinned
latestfetches in shared team configs and CI pipelines. - Require confirmation for side effects: keep client-side approval prompts enabled for deletes, external API writes, and shell mutations.
- Label tokens for fast revocation: name every token by purpose (e.g.,
ai-ro-analytics) so rotation does not disrupt personal accounts. - Audit combined stacks: a web scraper alone or a file writer alone looks harmless, yet combining them expands the blast radius — review the aggregated permission footprint in the AI Stack Builder.
Further reading: How to Choose and Install MCP Tools Safely and Setting Up MCP in Claude Code.