Skip to content
Release: Australia · Updated: 2025-08-08 · Official documentation · View source

Configure an MCP client to connect to an MCP server

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

Before you begin

Role required: none

About this task

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.

Procedure

  1. Configure a client with the required server details as determined by the client.
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.
  1. From the client, you can view the list of tools available to determine how to prompt the server.

  2. 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.

Connecting to an MCP server from ServiceNow Model Context Protocol Client

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 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.

  2. On the client instance, navigate to All > AI Agent Studio > Settings.

  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.

    1. On the Add MCP server form, fill in the fields.

Server detailsValue
Server URL`https://.service-now.com/sncapps/mcp-server/mcp/`To connect to the preconfigured Quickstart Server, use `https://.service-now.com/sncapps/mcp-server/mcp/sn_mcp_server_default`.
Host`.service-now.com`
Base URL`/sncapps/mcp-server`
Scopemcp\_server
Authentication typeOAuth 2.0
Identity ProviderGeneric OAuth 2
Authorization URL`https://.service-now.com/oauth_auth.do`
Token URL`https://.service-now.com/oauth_token.do`
Token Revocation URL`https://.service-now.com/oauth_revoke.do`
Refresh URL`https://.service-now.com/oauth_auth.do`
Redirect URL`https://.service-now.com/oauth/callback`
Client IDThe client ID from the OAuth inbound integration on the server instance.
Client secretThe client secret from the OAuth inbound integration on the server instance.
FieldValue
NameQuickstart Server
Authentication TypeOAuth 2.1
MCP server URLhttps://<server-instance>.service-now.com/sncapps/mcp-server/mcp/sn_mcp_server_default
  • Select Next.

  • On the form, fill in the fields.

    FieldValue
    Client registration typeManual Registration
    Grant typeAuthorization Code
    Token authentication methodClient Secret Post
    Client IDThe client ID from the OAuth inbound integration for the Model Context Protocol Client on the server instance.
    Client secretThe client secret from the OAuth inbound integration for the Model Context Protocol Client on the server instance.
    Authorization URLhttps://<server-instance>.service-now.com/oauth_auth.do
    Token URLhttps://<server-instance>.service-now.com/oauth_token.do
    Token Revocation URLhttps://<server-instance>.service-now.com/oauth_revoke.do
  • Select Save.

  • Verify the OAuth configuration.
  • Select Authenticate.
  • Select Allow to allow the client to connect to the server.
  • Add tools from the Quickstart Server to an AI agent.

    For more information about this step, see Add an MCP server tool to an AI agent.

    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.

    3. Select Add tools and information.

    4. Select Add tool > MCP server tool.
    5. On the form, fill in the fields.

      FieldValue
      Select Model Context Protocol serverQuickstart Server
      Select toolSelect the tools from the Quickstart Server that you want to use with this AI agent.
    Image omitted: mcp-server-tools-list.png
    Viewing the tools list for the Quickstart Server from an AI agent in AI Agent Studio.
    6.  Select **Add**.
    7.  Select **Save and continue**.
    
    1. Test the AI agent.

      For more information about this step, see Test an AI agent.

      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."

    Image omitted: mcp-server-prompt-agent.png
    Prompting the AI agent for summaries of cases closed by Abel Tuter this week.
    6.  Select **Continue to Test Chat Response**.
    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.
    
    Image omitted: mcp-server-agent-response.png
    The agent responds with summaries of two cases closed by Abel Tuter this week.

    Parent Topic:Connecting to an MCP server from an MCP client

    sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

    ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

    © 2026 ServiceNow, Inc. All rights reserved.

    Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.