---
sourceDocument: Australia Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/intelligent-experiences

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Connect

# Connecting to an MCP server from an MCP client {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 6 min. de leitura

Connect to a Model Context Protocol (MCP) server from an MCP client by creating an OAuth inbound integration and configuring the client with the server details.

With the Quickstart Server or after creating a server, you can complete the following steps to connect to a server from a client:

1. [Create an OAuth inbound integration for an MCP client](https://servicenow-prod.fluidtopics.net/PZeUUdOZsycJP3RSBJ4hUg#create-oauth-inbound-integration-mcp-client "Secure access to Model Context Protocol (MCP) servers on an instance by creating an OAuth inbound integration for each MCP client.")
2. [Configure an MCP client to connect to an MCP server](https://servicenow-prod.fluidtopics.net/PZeUUdOZsycJP3RSBJ4hUg#configure-client-connect-server "Configure a Model Context Protocol (MCP) client to connect to an MCP server and prompt the server to perform a task.")

{#connect-mcp-server-client__ol_gtr_2qk_hhc}

The process to configure a client to connect to a server is dependent on the client used. For more information, refer to the documentation for your AI application and client.

## Create an OAuth inbound integration for an MCP client {#ariaid-title2}

Secure access to Model Context Protocol (MCP) servers on an instance by creating an OAuth inbound integration for each MCP client.

### Antes de Iniciar

Role required: oauth_admin, mi_admin, admin

### Por Que e Quando Desempenhar Esta Tarefa

For each client that you want to access servers on an instance, create an OAuth inbound integration in Machine Identity Console. To create the OAuth integration, you need a redirect URL from the client. For more information,
refer to the documentation for your AI application and client.

### Procedimento

1. Navigate to AllMCP Server Console.
2. From the Configuration tab, select Servers.
3. From the OAuth setup required banner, select Set up OAuth.  
   Alternatively, you can navigate to AllMachine Identity Console and select the Inbound integrations tab.  
   Nota:  
   In the list of existing inbound integrations, you might see integrations created with the same names as servers (including underscores). These are integrations for monitoring servers from AI Control Tower and shouldn't be used to integrate with clients.
4. Select New integration.
5. Select OAuth - Authorization code grant.
6. On the form, fill in the required fields.  
   For more information about this form, see [Configure an OAuth authorization code grant](https://www.servicenow.com/docs/access?context=configure-an-oauth-authorization-code-grant&version=australia&pubname=australia-platform-security&ft:locale=en-US).{#create-oauth-inbound-integration-mcp-client__table_acq_zq2_hhc__entry__2}

   | Field | Value |
   |-|-|
   | Details section ||
   | Name | Enter a name for the OAuth integration. |
   | Redirect URLs | Enter the redirect URL for a client. The authorization code is sent to this URL after authentication. To get the redirect URL, refer to the documentation for your AI application and client. To connect to the ServiceNow MCP client on another instance, use the following redirect URL: https://\<client-instance\>.service-now.com/oauth_redirect.do. For more information, see the [Model Context Protocol Client](https://servicenow-prod.fluidtopics.net/aeu3G3ObyhiET9PIX6wPAA "The ServiceNow Model Context Protocol Client (MCP Client) enables you to access the Model Context Protocol tools that are hosted externally and published using an MCP Server in the ServiceNow AI Agent Studio.") documentation. |
   | Auth scope section ||
   | Allow access only to APIs in selected scope | Clear the check box to make the OAuth integration broadly scoped. |
   | Advanced options section ||
   | Token Format | Select JWT. |
   [Tabela 1. Inbound integration form]

   {#create-oauth-inbound-integration-mcp-client__table_acq_zq2_hhc}
7. Select Save.  
   The OAuth inbound integration is created as broadly scoped with a client ID and client secret that you use when configuring the client to connect to servers on the instance.

### O que Fazer Depois

Configure the client to use the client ID and client secret to authenticate with servers on the instance.

## Configure an MCP client to connect to an MCP server {#ariaid-title3}

Configure a Model Context Protocol (MCP) client to connect to an MCP server and prompt the server to perform a task.

### Antes de Iniciar

Role required: none

### Por Que e Quando Desempenhar Esta Tarefa

The process to configure a client to connect to a server is dependent on the client used. The following procedure is a high-level overview of the workflow to configure a client to call a server. For more information, refer to
the documentation for your AI application and client. For an example that demonstrates how to connect from a server on one instance to the ServiceNow
Model Context Protocol Client on another instance, see the example following this procedure.

### Procedimento

1. Configure a client with the required server details as determined by the client.  
   {#configure-client-connect-server__table_btb_gvf_hhc__entry__2}

   | Server details | Value |
   |-|-|
   | Server URL | https://\<server-instance\>.service-now.com/sncapps/mcp-server/mcp/\<server-name\> To connect to the preconfigured Quickstart Server, use https://\<server-instance\>.service-now.com/sncapps/mcp-server/mcp/sn_mcp_server_default. |
   | Host | \<server-instance\>.service-now.com |
   | Base URL | /sncapps/mcp-server |
   | Scope | mcp_server |
   | Authentication type | OAuth 2.0 |
   | Identity Provider | Generic OAuth 2 |
   | Authorization URL | https://\<server-instance\>.service-now.com/oauth_auth.do |
   | Token URL | https://\<server-instance\>.service-now.com/oauth_token.do |
   | Token Revocation URL | https://\<server-instance\>.service-now.com/oauth_revoke.do |
   | Refresh URL | https://\<server-instance\>.service-now.com/oauth_auth.do |
   | Redirect URL | https://\<server-instance\>.service-now.com/oauth/callback |
   | Client ID | The client ID from the OAuth inbound integration on the server instance. |
   | Client secret | The client secret from the OAuth inbound integration on the server instance. |
   [Tabela 2. Server details for MCP client configuration]

   {#configure-client-connect-server__table_btb_gvf_hhc}  
   After configuring these details, the client calls the server with the `Authorization: Bearer <token>` header. If the token is validated by the server, the client receives the list of tools available
   for use.
2. From the client, you can view the list of tools available to determine how to prompt the server.
3. Enter a prompt for the information you need or for the tool to perform an action on the instance.  
   For example, if the Look up Incident Records tool is available, you could enter "Get all open incidents." With the Case summarization tool, you could enter "Summarize all cases closed this week."  
   The server runs the relevant tools and returns the result to the client as JSON data. The client presents the response as formatted text.
{#configure-client-connect-server__steps_fxp_rj3_ggc}

### Connecting to an MCP server from ServiceNow
Model Context Protocol Client {#configure-client-connect-server__example_dnd_jrz_jgc2}

This example demonstrates how to connect to a server from an AI agent on another instance using the ServiceNow
Model Context Protocol Client. First, you configure the client to call the preconfigured Quickstart Server. From an AI agent, you access the Quickstart Server's list of tools and add individual tools to
the agent. Lastly, you test the agent in AI Agent Studio by providing a prompt and seeing the agent's response. For more information, see the [Model Context Protocol Client](https://servicenow-prod.fluidtopics.net/aeu3G3ObyhiET9PIX6wPAA "The ServiceNow Model Context Protocol Client (MCP Client) enables you to access the Model Context Protocol tools that are hosted externally and published using an MCP Server in the ServiceNow AI Agent Studio.") documentation.

Role required: sn_mcp_client.admin

1. On the server instance, create an OAuth inbound integration for the ServiceNow Model Context Protocol Client.

   For more information, see [Create an OAuth inbound integration for an MCP client](https://servicenow-prod.fluidtopics.net/PZeUUdOZsycJP3RSBJ4hUg#create-oauth-inbound-integration-mcp-client "Secure access to Model Context Protocol (MCP) servers on an instance by creating an OAuth inbound integration for each MCP client.").
2. On the client instance, navigate to AllAI Agent StudioSettings.
3. Select Manage MCP Servers.
4. Select New.
5. Add the Quickstart Server.For more information about this step, see [Add an MCP Server with OAuth 2.1](https://servicenow-prod.fluidtopics.net/wj_2~~Bt4A4DNdj8rFf4pA "Add an MCP Server with OAuth 2.1 in the AI Agent Studio.").

   1. On the Add MCP server form, fill in the fields.{#configure-client-connect-server__table_c4g_1sg_hhc__entry__2}

      | Field | Value |
      |-|-|
      | Name | Quickstart Server |
      | Authentication Type | OAuth 2.1 |
      | MCP server URL | https://\<server-instance\>.service-now.com/sncapps/mcp-server/mcp/sn_mcp_server_default |
      [Tabela 3. Add MCP server form]

      {#configure-client-connect-server__table_c4g_1sg_hhc}
   2. Select Next.
   3. On the form, fill in the fields.{#configure-client-connect-server__table_uqy_2sg_hhc__entry__2}

      | Field | Value |
      |-|-|
      | Client registration type | Manual Registration |
      | Grant type | Authorization Code |
      | Token authentication method | Client Secret Post |
      | Client ID | The client ID from the OAuth inbound integration for the Model Context Protocol Client on the server instance. |
      | Client secret | The client secret from the OAuth inbound integration for the Model Context Protocol Client on the server instance. |
      | Authorization URL | https://\<server-instance\>.service-now.com/oauth_auth.do |
      | Token URL | https://\<server-instance\>.service-now.com/oauth_token.do |
      | Token Revocation URL | https://\<server-instance\>.service-now.com/oauth_revoke.do |
      [Tabela 4. Add MCP server form]

      {#configure-client-connect-server__table_uqy_2sg_hhc}
   4. Select Save.
   {#configure-client-connect-server__ol_bnp_4rg_hhc}
6. Verify the OAuth configuration.
   1. Select Authenticate.
   2. Select Allow to allow the client to connect to the server.
   {#configure-client-connect-server__ol_l53_f5g_hhc}
7. Add tools from the Quickstart Server to an AI agent.For more information about this step, see [Add a Model Context Protocol to an AI agent](https://servicenow-prod.fluidtopics.net/RKedqt08kZXFUWrlzRV3wA "Add a Model Context Protocol tool to an AI agent in the AI Agent Studio so that your users can access the MCP Server.").

   1. In AI Agent Studio, select the Create and manage tab.
   2. From the AI agents tab, select an existing agent or create one.For information about creating an agent, see [Create an AI agent](https://servicenow-prod.fluidtopics.net/chZFlyDQMo37FD_2F3kM4Q "Create an AI agent in AI Agent Studio to solve problems for your users and coordinate with other AI agents while executing the agentic workflows.").

   3. Select Add tools and information.
   4. Select Add toolMCP server tool.
   5. On the form, fill in the fields.{#configure-client-connect-server__table_erz_dvg_hhc__entry__2}

      | Field | Value |
      |-|-|
      | Select Model Context Protocol server | Quickstart Server |
      | Select tool | Select the tools from the Quickstart Server that you want to use with this AI agent. |
      [Tabela 5. Add a Model Context Protocol Tool form]

      {#configure-client-connect-server__table_erz_dvg_hhc}

   6. Select Add.
   7. Select Save and continue.
   {#configure-client-connect-server__ol_f21_s5g_hhc}
8. Test the AI agent.For more information about this step, see [Test an AI agent](https://servicenow-prod.fluidtopics.net/4~TFE0LCdrTr~UDaQ8DgIA "Analyze the performance of an AI agent with a Model Context Protocol tool added to it to verify that it functions the way that you defined it.").

   1. In AI Agent Studio, select the Testing tab.
   2. Select Start manual test.
   3. In the Choose a test type field, select AI agent or workflow.
   4. Select the AI agent you configured and its version.
   5. In the Task field, enter a prompt to get information or to perform an action on the instance.The prompt should be based on which tools are available. For example, if you added the Look up Case Records and Case
      summarization tools, you can enter "Summarize all cases closed this week."

   6. Select Continue to Test Chat Response.

   {#configure-client-connect-server__ol_uxb_hwg_hhc}

   The AI agent calls the server, and the server runs the tools requested based on the prompt. The server returns the information to the agent as JSON data, and the agent presents it as formatted text. In this
   example, the agent returns summaries of the cases closed by Abel Tuter in the past week.

{#configure-client-connect-server__ol_unt_bsp_ngc}

