docs/documentation/platform/agent-sentinel/mcp-servers.mdx
MCP Servers are external services that expose tools and capabilities through the Model Context Protocol. By connecting MCP servers to Infisical, you can centrally manage access to tools like Notion, GitHub, Slack, and more.
When you add an MCP server to Infisical, the platform discovers all available tools from that server and allows you to make them accessible through MCP Endpoints.
Infisical supports connecting to any remote MCP server that implements the Model Context Protocol over HTTP with OAuth or Bearer Token authentication. Popular MCP servers include:
MCP servers require authentication to access their tools. Infisical supports two authentication methods:
<CardGroup cols={2}> <Card title="OAuth" icon="key"> The server uses OAuth 2.0 for authentication. Users are redirected to the service to authorize access.**Best for:** Services with full OAuth support like Notion, GitHub, Google.
**Best for:** Services where users have existing API tokens, or services without OAuth support.
Some MCP servers with OAuth support Dynamic Client Registration, which means Infisical can automatically register as an OAuth client. For servers that don't support this (like GitHub), you'll need to manually create an OAuth application and provide the client credentials.
When adding an MCP server, you choose how credentials are managed:
<CardGroup cols={2}> <Card title="Shared Credentials" icon="users"> You (the administrator) authorize the MCP server once, and all users who access tools through this server use your credentials.**Best for:** Shared service accounts, servers without per-user permissions, simplified management.
**Best for:** Per-user audit trails, user-specific permissions, compliance requirements.
By default, Infisical connects directly to MCP servers over the internet. For MCP servers hosted on private networks (internal APIs, self-hosted services), you can route connections through a Gateway.
<Note> OAuth is not supported when using a gateway. Only Bearer Token authentication is available. </Note>Gateways enable you to:
In the following steps, we explore how to add an MCP server to your Agent Sentinel project.
<Tabs> <Tab title="Infisical UI"> <Steps> <Step title="Navigate to MCP Servers"> Head to your Agent Sentinel project and select **MCP Servers** from the sidebar, then click **Add MCP Server**. 
</Step>
<Step title="Configure server details">
Enter the following details for your MCP server:
- **Name**: A friendly name to identify this server (e.g., "Notion", "GitHub")
- **URL**: The MCP server endpoint URL (e.g., `https://mcp.notion.com/mcp`)
- **Gateway** (optional): Select a gateway to route connections through a private network. Leave as "Internet Gateway" for public MCP servers
- **Credential Mode**: Choose between **Shared Credentials** or **Personal Credentials**

</Step>
<Step title="Configure authentication">
Choose the authentication method for your MCP server:
<AccordionGroup>
<Accordion title="OAuth Authentication">
- For servers with Dynamic Client Registration (e.g., Notion): Click **Authorize** to complete the OAuth flow
- For servers without Dynamic Client Registration (e.g., GitHub): Enter the **Client ID** and **Client Secret**, then click **Authorize**

</Accordion>
<Accordion title="Bearer Token Authentication">
- Select **Bearer Token** as the authentication method
- Users will be prompted to enter their personal access token when connecting to endpoints that include this server

</Accordion>
</AccordionGroup>
</Step>
<Step title="Review available tools">
After authorization, Infisical discovers and displays all tools available from the MCP server.
You can view each tool's name and description. These tools can now be enabled in [MCP Endpoints](/documentation/platform/agent-sentinel/mcp-endpoints).

</Step>
</Steps>
Check the service's MCP documentation for the correct URL.
Use **Bearer Token** when:
- Users already have API tokens they want to use
- The MCP server doesn't support OAuth
- You need a simpler authentication flow
For public MCP servers like Notion or GitHub, use the default "Internet Gateway" option.