Shared MCP servers carry more operational risk because many users depend on the same configuration and credentials. Managing them as Git-backed catalog entries gives teams version control, review, and validation. Pulling secrets from an external secret store keeps credentials out of the platform itself, which preserves separation of duties and reduces the chance of accidental exposure during server changes.
Why This Matters for Security Teams
Multi-user MCP servers concentrate trust in one shared runtime, which means one misstep in configuration, access scoping, or secret handling can affect every user of that server. GitOps makes the server definition reviewable and repeatable, while external secret storage keeps credentials out of the deployment artifact and away from casual exposure during edits. That combination is especially important when the server is serving multiple teams, because changes are no longer isolated to a single operator.
NHIMG’s Guide to the Secret Sprawl Challenge shows how quickly credentials multiply when they are embedded in operational systems instead of managed separately. That risk is not theoretical: Astrix Security’s State of MCP Server Security 2025 found that 53% of MCP servers expose credentials through hard-coded values in configuration files. In practice, many security teams discover the problem only after a shared server change has already propagated a leaked secret across multiple users.
How It Works in Practice
GitOps treats the MCP server as a versioned, reviewed configuration object rather than a manually edited runtime asset. For multi-user environments, that matters because the server often defines tool access, routing, environment variables, and policy boundaries for several personas at once. A pull request becomes the control point for validating changes, and the repository history becomes the audit trail for who approved what, when, and why.
Secret isolation is the other half of the model. Instead of storing API keys, tokens, or certificates in the same file that defines the server, teams reference an external secret store and inject values at runtime. That preserves separation of duties, reduces accidental disclosure in code review, and limits blast radius if the MCP definition is cloned, exported, or inspected. This is consistent with the broader guidance in the OWASP Non-Human Identity Top 10, which treats credential exposure and weak lifecycle controls as core non-human identity risks.
Operationally, the workflow usually looks like this:
- Store the MCP server definition in Git and require review for every change.
- Keep secrets out of YAML, JSON, and environment templates.
- Fetch credentials from a dedicated secret manager at deploy time or startup.
- Scope each server to only the tools and backends it actually needs.
- Rotate exposed or stale secrets independently of server configuration changes.
For implementation detail, the OWASP Agentic AI Top 10 aligns with the same pattern: tool-enabled systems need explicit control over what they can reach, not just who deployed them. These controls tend to break down when teams mix shared developer convenience with production-grade server access, because manual edits and embedded secrets quickly outrun review discipline.
Common Variations and Edge Cases
Tighter GitOps and secret isolation often increases setup overhead, requiring organisations to balance deployment speed against stronger control of shared MCP infrastructure. That tradeoff is acceptable in production, but there are cases where the standard pattern needs adjustment. For example, short-lived test servers may use lower-friction automation, while regulated environments usually need stronger approval gates and stricter secret boundaries.
One common edge case is per-tenant configuration on a shared MCP server. If each team needs different tool access, the server design should not rely on ad hoc environment overrides; the access model must remain explicit and reviewable. Another edge case is secrets referenced by multiple services. Best practice is evolving, but current guidance suggests those credentials should still be owned by the secret manager, not duplicated into each server manifest. The Millions of Misconfigured Git Servers Leaking Secrets research is a reminder that Git is only safe when sensitive values are kept out of the repo itself.
Where teams get into trouble is assuming that “shared” means “uniform.” Multi-user MCP servers often have different privilege needs, different approval paths, and different rollback requirements. Once those differences appear, Git-backed change control and external secret storage stop being optional hygiene and become the only reliable way to keep one user’s change from becoming everyone’s exposure.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | GitOps and secret isolation reduce exposed and stale NHI credentials. |
| OWASP Agentic AI Top 10 | A2 | Shared MCP servers are tool-exposed agent surfaces that need tight change control. |
| CSA MAESTRO | C3 | MAESTRO addresses governance for shared agent and tool orchestration layers. |
| NIST AI RMF | GOVERN | Shared MCP governance depends on documented accountability and traceability. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access scoping is central to multi-user MCP risk reduction. |
Treat shared MCP servers as governed orchestration assets with explicit policy and approval.
Related resources from NHI Mgmt Group
- How do organisations decide between single-user, multi-user, and remote MCP servers?
- What do organisations get wrong when they treat MCP servers like a VPN concentrator?
- What is the difference between privilege reduction and secret rotation?
- What is the difference between a rules-based secret scanner and a hybrid scanner?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org