Teams should choose self-hosted integration code when they need tight control over data flow, custom logic, network placement or credential handling. A managed platform is better when the organisation accepts its control plane and connector model, but self-hosting is usually the stronger choice for specialised approval flows, isolation requirements or portability across MCP endpoints.
How the choice changes the control boundary
Self-hosted integration code is the better fit when the integration itself is part of the security boundary, not just a convenience layer. If your team must decide where data lands, which networks can reach the endpoint, how secrets are stored, and what approval logic runs before a call is made, self-hosting keeps those decisions under your own change control rather than a provider’s operating model.
That matters most when the workflow has to fit a special approval path, a restricted environment, or a nonstandard transport pattern. A managed platform can still be a good choice for standardised integrations, but once the connector model becomes the constraint, the platform starts to shape the process more than the process shapes the platform.
This is also where MCP-specific placement choices become visible. If the integration must stay inside a particular tenant, VPC, or regulated network zone, the runtime location is not an implementation detail, it is part of the design requirement. The same is true when portability across multiple MCP endpoints is important and you do not want one vendor’s connector catalogue to define the architecture.
For teams comparing runtime patterns, the broader MCP design and deployment model is best understood through What Is MCP? The Model Context Protocol Explained (2026), especially where transport, host, and server responsibilities affect integration placement.
When self-hosting creates a better security model
Self-hosting usually wins when the sensitive part of the problem is credential custody, connector scope, or the ability to constrain what the integration can touch. In practice, that means you can keep approval logic close to the service, limit secrets to the smallest possible runtime, and apply network and identity controls that match your own risk appetite rather than inheriting a shared control plane.
It also gives you more room to harden the integration path itself. You can isolate the runtime, enforce allowlists, log tool and connector activity at the point of use, and revoke access without waiting for a managed platform to expose the exact control you need. That is especially important when the integration can reach production systems, administrative APIs, or systems that carry sensitive business or operational data.
When the question is not just “can it connect?” but “how much authority should this integration have?”, the right answer is often to treat the integration code as a privileged component and govern it accordingly. A managed platform may still work, but only if its control plane, connector lifecycle, and token handling align with your least-privilege expectations.
Teams designing around connector custody and runtime isolation can use Security Requirements for Selecting an Integration Platform (iPaaS) as a practical checklist for the same decision space, even when the final choice is self-hosted code.
Where managed platforms are still the better trade-off
Managed platforms are usually the better choice when the integration pattern is routine, the organisation is comfortable with the provider’s control plane, and the main objective is speed and standardisation rather than deep customisation. They reduce operational burden, centralise monitoring and connector management, and can be easier to govern when your use case fits the platform’s default approval and routing model.
The trade-off is that you inherit more of the vendor’s assumptions. If the platform decides how connectors are approved, how credentials are stored, or how much visibility you get into execution history, you may gain efficiency while giving up some architectural freedom. That is not a problem if those defaults match the business need. It becomes a problem when you need exceptions that the platform treats as edge cases.
For many teams, the right comparison is not “self-hosted versus managed” in the abstract, but whether the integration is strategically sensitive enough to justify owning the operational burden. If the answer is yes, self-hosting gives you stronger control over blast radius, custom guardrails, and endpoint portability. If the answer is no, a managed platform can be the more sustainable operational choice.
The managed-control-plane side of that trade-off is well illustrated by Securing the iPaaS and integration platform itself, which helps frame what you must compensate for when you do not self-host.
Risk and Threat Considerations
The main risk in choosing a managed platform too early is control-plane concentration: one platform decision can shape data flow, connector scope, secret handling, logging depth, and revocation speed across many integrations. If that platform is compromised or its defaults are too broad, the exposure is not limited to a single flow, it can extend across every connected system.
Failure mechanism: A managed connector model can hide privilege creep, make approval logic opaque, or slow down revocation when you need to react to a suspected token or runtime compromise. Self-hosted code can fail in the opposite direction if it is deployed without disciplined isolation, secret handling, or lifecycle ownership.
Impact: The result can be overbroad access, delayed containment, uncontrolled data movement, or loss of portability across MCP endpoints. In both models, the practical question is how quickly you can prove what the integration can access and shut it down without breaking unrelated services.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CSA Cloud Controls Matrix, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CSA Cloud Controls Matrix | IAM — Identity and Access Management | MCP integrations hinge on connector access, secrets, and least-privilege governance. |
| Recommendation — Constrain connector identities, secrets, and access paths to the minimum needed for each integration. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | The choice affects how integration credentials are issued, stored, rotated, and revoked. |
| AC-6 — Least Privilege | Self-hosting is often chosen to limit connector scope and reduce blast radius. | |
| Recommendation — Manage integration credentials with short lifetimes and rapid revocation. Restrict each connector to the smallest feasible permissions and destinations. | ||
| CIS Controls v8 | CIS-5 — Account Management | Integration code and managed platforms both require explicit control of service accounts and access scope. |
| Recommendation — Inventory and review all integration accounts and disable unused access promptly. | ||
| NIST Zero Trust (SP 800-207) | 3.4 — Least Privilege Access to Resources | The decision is driven by how tightly the runtime can be isolated and authorised. |
| Recommendation — Treat each integration endpoint as separately authorised and continuously verified. | ||
Practitioner Guidance
What to verify: Before choosing a managed platform, verify whether it lets you constrain connector scope, placement, logging, approval flow, and secret custody to the level your environment needs. If it cannot, assume you will need compensating controls or a self-hosted pattern.
Decision rule: If the integration will touch regulated data, production APIs, or a specialised approval path, favour self-hosted code unless the managed platform can demonstrate equivalent control over network locality, connector governance, and credential handling.
What practitioners underestimate: The hardest part is often not building the integration, but proving its blast radius and revocation path later. The best choice is the one that still works when a connector, credential, or endpoint has to be disabled quickly.
Practitioner takeaway: Choose self-hosted integration code when control over execution, secrets, and network boundaries is itself a requirement; choose managed platforms when standardisation matters more than architectural freedom.
Related resources from NHI Mgmt Group
- When should teams choose a managed agent runtime over self-hosted orchestration?
- When should organisations choose a managed vector database over self-hosted search?
- When should organisations choose self-hosted AI gateways over managed ones?
- When should organisations prioritise a managed MCP platform over self-hosting?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org