Setting up OAuth Authentication for MCP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello all,
I am looking to start setting up an MCP Server for my organization. I load the MCP Server Console page, open the ITSM MCP Server record and I see "Set up OAuth" button on the page.
I found the page of: https://www.servicenow.com/docs/r/australia/platform-security/authentication/new-inbound-integration... but am not sure which OAuth I should be trying to setup. I suspect it is: "Authorization code grant" (https://www.servicenow.com/docs/r/australia/platform-security/authentication/authorization-code-gran...) since this seems to allow permissions based on the individual user and not just a blanket application level permission. Please let me know if I am on the right track or not! Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi @lonesoac01,
You are on the right track. For the ITSM MCP Server, OAuth is set up with the Authorization code grant, so access is in the signed-in user's context, not a single application-only identity.
Your screenshot already shows the ITSM MCP Server as Active, with the name sn_itsm_mcp_server.itsm_default, and the "OAuth setup required" banner. You do not need to activate it again. Go straight to Set up OAuth. This is out of box.
1. Confirm these plugins are active: ServiceNow Otto for ITSM (sn_itsm_gen_ai), Model Context Protocol Server (sn_mcp_server), and ITSM MCP Server (sn_itsm_mcp_server). You need sn_mcp_server.admin or admin, and the scope should be ITSM MCP Server.
2. On that same record, select Set up OAuth. If you use the ITSM MCP Server OAuth client entry (sn_itsm_mcp_server.itsm_default), the Authorization code grant page is populated for you. Add the redirect URL from your MCP client. In Auth scope, select a2aauthscope so the REST A2A protocol can reach the AI Agent MCP tools.
3. If you are creating the inbound integration yourself, do it in Machine Identity Console as OAuth - Authorization code grant, one integration per MCP client, with oauth_admin or admin. Then put the client ID and secret into the client.
By doing this, you can connect your MCP client securely, and each user is authorized with their own ServiceNow permissions.
Implications: this needs the ITSM MCP Server and Otto for ITSM entitlements, not only a generic OAuth setup. Keep the client secret in a vault, and review the Auth scope if you later tighten which tools the client may call.
Activate the ITSM MCP Server: https://www.servicenow.com/docs/r/it-service-management/set-up-itsm-mcp-server.html
Create an OAuth inbound integration for an MCP client: https://www.servicenow.com/docs/r/intelligent-experiences/create-oauth-inbound-integration-mcp-clien...
If this helped, kindly mark it Helpful so others facing the same issue can refer to it.