Configure OAuth 2.0 Support for MCP Inbound Tools
- Updated: 2026/05/19
This topic guides you through setting up OAuth 2.0 authentication for Model Context Protocol (MCP) inbound tools within Automation Anywhere.
Implementing OAuth provides a more secure and robust method for third-party AI assistants to interact with your Automation Anywhere automations, maintaining user identity and enforcing role-based access control (RBAC) without requiring users to manually enter credentials.
To set up your MCP server, including prerequisites and required permissions, see Configure an Agent connection (MCP inbound tool). Once your MCP server is set up, follow the steps in this topic to configure OAuth 2.0 support. The process involves configuration in both the Control Room and your third-party AI assistant (for example, Microsoft Copilot Studio).
Procedure
- If authentication headers are missing or incorrect, the MCP client attempts OAuth authentication automatically.
- If authentication fails, the MCP client displays an error message similar
to:
{"error": "Unauthorized", "message": "Missing or invalid headers: API_KEY, USER_NAME, Authorization or X-AUTH"} - Depending on the MCP client implementation (for example, Microsoft Copilot or other MCP-compatible clients), additional error messages might appear indicating that OAuth authentication failed.
- The MCP client automatically manages access token refresh when the token expires.
- You are not required to manually refresh tokens during normal operation.
MCP inbound supports OAuth-based authentication using standard identity providers, including:
- OIDC (OpenID Connect)
- SAML-based authentication
The authentication experience (for example, login prompts or consent screens) depends on the configured identity provider.
