---
schema_version: "1"
id: 0cd59dafe6982f26ab59fd231b6d8dbfeef96fc005e52476757cad9eb172fe5a
title: Agentforce Gateway
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/agentforce_gateway_policies.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_policies.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2785109aee5d9d5e129a03790431899724a1c037c0d2b7cdd7b131a34c29fb3f
description: Use Agentforce gateway policies to protect connections to your external APIs and Model Context Protocol (MCP) servers. Control access, set usage limits, and ensure compliance.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Agentforce Gateway

Use Agentforce gateway policies to protect connections to your external APIs and Model Context Protocol (MCP) servers. Control access, set usage limits, and ensure compliance.

### Required Editions

Policy Builder works the same way for these connection types:

- **Model Context Protocol server connections:** Protect the connection between Agentforce agents and MCP servers.
- **API connections:** Protect API agent interactions for APIs in MuleSoft for Agentforce: API Catalog for Salesforce.

In both cases, create policies from templates, apply them to connections manually or by matching criteria. Manage execution order, edits, and removal from the same page.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition" summary="Available Editions"><caption>Available Editions</caption> <colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with <strong>Foundations</strong> or <strong>Agentforce 1</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission" summary="User Permissions"><caption>User Permissions</caption> <colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">To build and manage Agentforce agents, you need <strong>Customize Application</strong>, or both <strong>Manage AI Agents</strong> and the permission for <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;type=5&amp;language=en_US" target="_blank">your agent type</a>.</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note Policies apply only when the agent is committed or activated. Policies aren’t enforced for agents in a draft state.

- **[Create an Agentforce Gateway Policy](https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_create_policy.htm&release=264.0.0&type=5)**  
    Create a policy from a prebuilt template and follow a few simple steps to build a new policy that fits your governance needs. You can apply the policy immediately or save it and apply it later.
- **[Apply an Agentforce Gateway Policy](https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_apply_policies.htm&release=264.0.0&type=5)**  
    Apply a policy either manually or automatically by defining matching criteria.
- **[Manage Agentforce Gateway Policies](https://help.salesforce.com/s/articleView?id=ai.agentforce_gateway_manage_policies.htm&release=264.0.0&type=5)**  
    Understand the default policy execution order and learn how to manage existing policies. You can edit a policy’s details or adjust the connections it protects as well as the agents it targets.