All posts
AI Infrastructure
Modal Team
18 min read

Best Platforms to Host MCP Servers for AI Agents in 2026

The Model Context Protocol (MCP) is an open protocol that provides a standardized way for AI applications and agents to connect to tools, data sources, and external systems. Many MCP servers are lightweight connector-style services that proxy APIs, retrieve data, expose SaaS actions, or wrap databases and file systems. Those workloads generally do not require an isolated execution environment. Sandboxing becomes important when MCP-enabled systems execute AI-generated code, run shells, launch browsers, manipulate files dynamically, or process untrusted workloads on behalf of models.

Platforms for hosting MCP servers for AI agents

For execution-heavy MCP workloads, Modal provides an AI-focused serverless compute platform with CPU and GPU execution, dynamic scaling, and isolated Sandboxes. Modal supports 100,000+ concurrent Sandboxes, and standard Sandboxes use gVisor isolation. This guide compares seven MCP hosting, deployment, and gateway platforms across execution, governance, deployment workflows, and enterprise requirements.

Key Takeaways

  • Modal is the strongest fit for execution-heavy MCP workloads: Modal combines AI-native infrastructure, CPU and GPU compute, fast cold starts, dynamic scaling, and isolated execution for workloads that run generated code, shells, browsers, or other untrusted processes.
  • MCP and sandboxing solve different problems: MCP defines the protocol and interface layer. Sandboxes provide an execution and isolation layer. Lightweight connector-style MCP servers often do not need sandboxing, while execution-heavy MCP systems can benefit substantially from it.
  • Modal provides strong execution isolation: Standard Modal Sandboxes use gVisor isolation, and VM Sandboxes provide a full virtual machine environment when that execution model is appropriate.
  • CPU and GPU flexibility matters: Modal supports CPU and GPU workloads and currently lists 11 priced GPU configurations, enabling MCP implementations to pair tool orchestration with local model inference or other accelerated compute when needed.
  • Enterprise security supports production adoption: Modal has completed a SOC 2 Type II audit with no deviations reported and supports HIPAA-compliant workloads on Enterprise plans via a BAA.

1. Modal

Modal delivers AI-native serverless infrastructure for modern AI workloads. For MCP architectures, it is particularly well suited to execution-heavy servers and agent systems that need to run untrusted code, scale dynamically, or access CPU and GPU compute without operating the underlying cluster infrastructure.

How Modal Works for MCP Servers

Modal can host MCP server implementations as serverless services and can also provide isolated Sandboxes for tool calls that need code execution. These are distinct layers: the MCP server exposes tools and resources through the protocol, while a Modal Sandbox can serve as the execution environment when a tool needs stronger workload isolation. Modal provides a code-first developer experience with code-defined infrastructure through SDKs for Python, TypeScript, and Go. Modal Sandboxes support all programming languages, and code running inside a Sandbox can use whatever runtime or language the workload requires. Modal executes workloads across a multi-cloud capacity pool spanning major cloud providers. Key capabilities include:

  • Fast cold starts: Engineered for fast cold starts and faster feedback loops, with an optimized filesystem that helps containers come online quickly without letting large images slow startup down.
  • Snapshot-based startup optimization: Memory Snapshots and filesystem snapshot patterns can help restore initialized state and reduce repeated setup work for applicable workloads.
  • Secure sandboxing: Standard Modal Sandboxes use gVisor isolation. Modal also provides VM Sandboxes for workloads that benefit from a full Linux virtual machine environment.
  • CPU and GPU execution: Modal supports CPU workloads as well as direct access to priced GPU configurations. Modal Servers can use GPU resources when an MCP implementation needs colocated inference or accelerated compute.
  • Dynamic autoscaling: Modal can scale workloads automatically, including scaling to zero, without requiring teams to manage conventional cluster capacity.

Production Scale

Modal has demonstrated large-scale Sandbox operation in production. Lovable ran over 1 million Sandboxes in 48 hours on Modal infrastructure. Modal also supports 100,000+ concurrent Sandboxes for organizations running high-concurrency agent and execution workloads. For coding-agent workloads, Ramp built a full-context background coding agent on Modal. This is directly relevant to execution-heavy MCP systems because the underlying pattern involves agents generating code, running it remotely, inspecting results, and writing changes back into development workflows.

Enterprise Security and Compliance

Modal has completed a SOC 2 Type II audit with no deviations reported. Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA. Standard Modal containerized compute uses gVisor, while VM Sandboxes provide a full virtual machine environment. Modal documents encryption and TLS for user data and public APIs, and RBAC is available for team access control.

Best For

Best For: Organizations building execution-heavy AI agents and MCP systems that need secure isolation, dynamic scaling, fast startup, and flexible CPU and GPU compute. Lightweight connector-style MCP servers can also run on Modal, but Modal differentiates most clearly when tools execute generated code, shells, browsers, file operations, or other untrusted workloads.

2. AWS Bedrock AgentCore

AWS Bedrock AgentCore is a managed platform for building and operating agentic AI within the AWS ecosystem. It includes runtime, gateway, memory, browser, and code interpreter capabilities for organizations that want agent infrastructure integrated with existing AWS services.

Core Capabilities

AgentCore Gateway can expose supported targets such as Lambda functions and REST APIs as MCP-compatible tools and handle protocol translation. The platform also provides managed runtime options, identity controls, private networking, and observability integrations. Core capabilities include:

  • Managed runtime options: Serverless sessions use dedicated microVMs, while managed instance-based runtime options support longer-running sessions and GPU-backed instance types.
  • MCP Gateway: Supported AWS and API targets can be exposed as MCP-compatible tools through a managed gateway layer.
  • AWS service integration: AgentCore integrates with AWS identity, networking, and observability services, including IAM, OAuth, VPC connectivity, PrivateLink, and CloudWatch.
  • Operational tooling: AWS provides MCP tooling for interacting with AgentCore operational capabilities and documentation.

Authentication and Security

AgentCore supports AWS identity and OAuth-based authentication patterns and can use private AWS networking for isolated connectivity. These controls align naturally with organizations that already use AWS identity, networking, and security services.

Use Cases

The platform fits organizations building agents around existing AWS services such as S3, DynamoDB, Lambda, and other managed infrastructure. The Gateway is relevant for teams that want to expose existing AWS functions or APIs to MCP clients through a managed control layer. Best For: Enterprises with significant AWS investments that want MCP and agent infrastructure integrated with existing AWS services and governance patterns.

3. Databricks Managed MCP

Databricks provides managed MCP servers that integrate with Unity Catalog for governed data access. The service is oriented toward analytics and data-intensive agent workflows that already operate within the Databricks lakehouse ecosystem.

Lakehouse-Native Architecture

Databricks centers its MCP approach on Unity Catalog as the governance layer. MCP tools can expose governed access to analytics, search, SQL, and registered functions while preserving existing data permissions. Key features include:

  • Genie integration: Managed MCP access can connect agents to governed semantic and analytics workflows.
  • AI Search: Agents can use managed MCP interfaces for semantic and hybrid retrieval over Databricks search indexes.
  • Unity Catalog Functions: Registered functions can be exposed under existing Unity Catalog permissions and governance.
  • Managed hosting: Databricks operates the managed MCP server infrastructure within its platform.

Governance Model

OAuth scopes can control access to MCP service categories, while Unity Catalog permissions govern underlying data, functions, and other securable resources. Databricks also provides centralized management surfaces for managed MCP services.

Current Status

Databricks documents its managed MCP servers as a preview offering. Best For: Data-centric organizations already using Databricks that want governed MCP access to lakehouse data, analytics, search, and functions.

4. Speakeasy MCP Gateway

Speakeasy uses a generation-oriented approach to MCP servers, including TypeScript server generation from OpenAPI specifications and a managed gateway layer for authentication, routing, policy, and observability.

Generation Approach

For teams with existing API specifications, Speakeasy can generate TypeScript MCP server implementations from OpenAPI documents. Generated servers can run locally and can be adapted for remote deployment over Streamable HTTP. Core capabilities include:

  • OpenAPI to MCP generation: Speakeasy can generate TypeScript MCP server implementations from OpenAPI documents through its CLI workflow.
  • Authentication options: The platform supports token-based and OAuth-based access patterns for generated and managed MCP deployments.
  • Scope-based filtering: Teams can control which scopes or tools are exposed at runtime.
  • Flexible deployment targets: Generated servers can be adapted for cloud, container, or other server environments, and Speakeasy also provides a managed MCP Gateway.

Speakeasy MCP Gateway

The Speakeasy MCP Gateway provides centralized authentication, policy enforcement, routing, observability, and audit capabilities across MCP servers. This model is suited to organizations that want a shared governance layer across multiple MCP endpoints.

CI/CD Integration

Speakeasy documents CLI-based generation workflows that can be incorporated into GitHub Actions and other development pipelines. Best For: API-oriented organizations with OpenAPI specifications that want generated MCP servers plus centralized authentication and gateway management.

5. Prefect Horizon Deploy

Prefect Horizon provides an MCP lifecycle platform spanning deployment, registry, gateway, and related agent tooling. It is built by the team behind FastMCP and connects server development with production deployment and governance workflows.

Platform Components

Horizon includes several connected components:

  • Deploy: GitHub-connected deployment workflows with support for automatic deploys, preview environments, and rollback operations.
  • Registry: A catalog for internal and third-party MCP servers with ownership and versioning information.
  • Gateway: Authentication, tool-level RBAC, and audit logging across MCP servers.
  • Remix: A way to combine tools from multiple MCP servers into a governed endpoint.

Deployment Workflow

Horizon can connect to GitHub repositories, deploy changes from configured branches, and create preview environments for pull requests. It also provides rollback support through its deployment workflow.

Authentication and Access Control

Horizon Gateway provides authentication, tool-level RBAC, and audit logging for MCP servers, enabling permissions to be applied to individual tools as well as broader server access.

FastMCP Integration

Horizon comes from the same team that built FastMCP, providing an integrated path from FastMCP server development to managed deployment. Best For: Teams using FastMCP or seeking a lifecycle platform that combines MCP deployment, registry, gateway, and governance capabilities.

6. Arcade Deploy

Arcade Deploy provides hosted deployment for Python MCP servers together with a scoped tool catalog and gateway model. Its workflow centers on deploying a server from a Python project and managing the resulting tools through Arcade services.

Deployment Model

Arcade can deploy a Python MCP server from a project directory and manage the hosted deployment through its dashboard. The platform also supports secret handling and server health management as part of the deployment workflow. Key features include:

  • Command-based deployment: Python MCP servers can be deployed through the Arcade CLI.
  • Unified tool catalog: Deployed servers contribute tools to a scoped catalog that can be organized by project.
  • MCP Gateway creation: Teams can create gateways that expose selected tools to MCP clients.
  • Secret management: The deployment workflow supports project secrets required by hosted servers.
  • Health management: Arcade provides dashboard controls for monitoring deployments and testing tools.

Tool Catalog Approach

Arcade aggregates available tools into a scoped catalog. Organizations can use projects and gateways to determine which tools are exposed to different clients or environments.

User Management

The platform provides administration for organizations, projects, roles, deployments, and gateways. It also supports identity-provider integration for production end-user authentication patterns. Best For: Python developers who want a managed path from local MCP server development to hosted deployment and gateway-based tool exposure.

7. MintMCP Gateway

MintMCP focuses on governance for enterprise MCP deployments, providing a gateway layer with audit, agent identity, access-control, and connector-management capabilities.

Governance Architecture

MintMCP provides virtual MCP endpoints that can combine multiple connectors behind centralized authentication and access controls. Its agent-oriented packaging can associate tools, policy, identity groups, audit controls, and agent credentials. Core capabilities include:

  • Virtual MCPs: Multiple connectors can be combined behind a single managed endpoint.
  • Agent identity management: Agent-specific credentials can be scoped to the tools required by a workload.
  • SCIM-based access controls: Identity groups can be mapped into gateway access policies.
  • Managed connectors: MintMCP provides a catalog of managed integrations for common enterprise systems.

Agent Monitor

MintMCP provides monitoring for supported agent activity, including MCP tool use and additional execution activity such as shell commands and file operations.

Compliance and Audit Posture

MintMCP presents enterprise security and compliance capabilities together with audit export and gateway deployment features. These capabilities are designed for organizations that want centralized governance across agent and MCP activity. Best For: Enterprises prioritizing centralized MCP governance, agent identity controls, access management, and audit visibility.

Why Modal Stands Out for Hosting MCP Servers

Purpose-Built AI Infrastructure

Modal is designed around AI workloads and has built its own infrastructure stack, including its filesystem, container runtime, scheduler, and image builder. This architecture is especially relevant when an MCP system goes beyond lightweight API or data connectivity and becomes an execution platform for agent-generated work. Modal's advantages for execution-heavy MCP workloads include:

  • Fast cold starts: Modal is engineered for fast cold starts and faster feedback loops, with an optimized filesystem that helps containers come online quickly without letting large images slow startup down.
  • State restoration options: Memory Snapshots, filesystem snapshots, and directory snapshots can help preserve initialized or project-specific state across ephemeral execution environments.
  • Dynamic scaling: Modal provides automatic workload scaling across serverless compute without requiring teams to operate cluster capacity directly.
  • Multi-cloud capacity: Modal draws from a multi-cloud capacity pool to support workload scheduling across major cloud providers.
  • CPU and GPU compute: Modal supports general CPU execution as well as GPU configurations for inference and accelerated workloads.

Production-Proven Agent Scale

Modal has demonstrated large-scale Sandbox operation in production. Lovable ran over 1 million Sandboxes in 48 hours for generated application previews. Ramp built a background coding agent that uses Modal infrastructure for remote code execution and development workflows. These examples align closely with the execution-heavy side of MCP. An MCP server that only proxies an API may not need isolated compute, but an MCP tool that writes code, launches a shell, starts a browser, changes files, or tests generated output can use Modal Sandboxes as the execution layer behind the protocol interface.

Strong Isolation for Untrusted Execution

Standard Modal Sandboxes use gVisor isolation, which adds a strong isolation boundary for untrusted workloads. Modal also provides VM Sandboxes for workloads that use a full virtual machine environment. This gives teams multiple execution form factors while keeping the MCP protocol layer separate from the underlying runtime choice. Modal has completed a SOC 2 Type II audit with no deviations reported and supports HIPAA-compliant workloads on Enterprise plans via a BAA. Modal also documents encryption in transit and at rest, TLS for public APIs, and role-based access control for team environments.

CPU and GPU Access When Needed

Execution-heavy MCP servers may combine tool orchestration with local inference, embedding models, image or audio processing, or other accelerated workloads. Modal provides CPU execution and direct access to GPU configurations. Modal Servers can use GPU resources, enabling server implementations to colocate model inference with tool execution where that architecture is useful.

Developer Experience That Scales

Modal provides a code-first developer experience with code-defined infrastructure through SDKs for Python, TypeScript, and Go. The Modal developer guide covers application definitions and deployment workflows, while Modal Sandboxes support all programming languages and can run any runtime or language installed in the environment. For agent architectures, Modal supports both common execution patterns described in its Sandbox material: the agent can run inside the Sandbox, or the agent can remain outside while the Sandbox handles isolated execution. The latter pattern provides a clean separation between proprietary agent logic and the environment running generated or untrusted code. For teams evaluating MCP server hosting platforms, Modal is the superior choice in this comparison for execution-heavy AI agent workloads that need fast startup, secure isolation, elastic scale, and flexible CPU and GPU compute. Gateway-focused and data-governance platforms remain relevant for connector-style MCP use cases, while Modal differentiates most strongly when the protocol needs an AI-native execution layer behind it.

Frequently Asked Questions

  • An MCP server exposes tools, resources, and prompts to AI applications through a standardized protocol. Many MCP servers are lightweight wrappers around APIs, databases, SaaS tools, or file systems and do not need isolated execution environments. Sandboxing becomes important when MCP-enabled systems execute AI-generated code, run terminals, launch browsers, manipulate files dynamically, or process untrusted workloads on behalf of models.

  • Serverless platforms reduce infrastructure and capacity-management overhead and can scale automatically for variable agent workloads. Modal adds AI-oriented infrastructure such as fast cold starts, Memory Snapshots, dynamic scaling, and flexible CPU and GPU resources. For execution-heavy agents, these capabilities can reduce the operational work required to provide isolated compute on demand.

  • AI agents can execute code generated by language models, which makes workload isolation important when tools run shells, browsers, file operations, or other untrusted processes. Modal's gVisor-based Sandboxes provide an isolated execution environment for this pattern. Modal has also completed a SOC 2 Type II audit and supports HIPAA-compliant workloads on Enterprise plans via a BAA. Network design, secret management, authentication, and audit controls remain important parts of production agent architecture.

  • Modal offers AWS and Google Cloud Marketplace procurement. Modal's Marketplace announcement states that Enterprise customers can purchase and manage Modal through those marketplaces and apply eligible AWS or GCP spend commitments. AWS Bedrock AgentCore integrates with AWS billing. Procurement models for other platforms vary by provider.

  • Modal provides direct access to priced GPU configurations for workloads that need local GPU-backed execution and also supports CPU-only workloads. AWS Bedrock AgentCore offers runtime options that can use GPU-backed AWS instances. Gateway-focused platforms such as MintMCP and Speakeasy primarily emphasize authentication, routing, governance, and tool aggregation rather than serving as the execution layer for GPU workloads.

  • Use a code-first execution platform when MCP tools need custom runtime logic, AI-generated code execution, shells, browsers, dynamic file operations, CPU or GPU compute, or elastic isolated environments. Modal is especially strong for this execution-heavy pattern. Use a gateway-focused platform when the main requirement is to authenticate, route, govern, or aggregate existing APIs and tools. Many production architectures can use both patterns, with MCP providing the interface layer and Modal providing isolated execution behind selected tools.

View Modal Platform

Run your first sandbox in minutes.

$30 in free compute to get started.