PATs generated through MCP OAuth are different from standard PATs. See the MCP OAuth PATs section for more information.
Requirements
To use OAuth authentication with the MCP, your organization must have the MCP server setting enabled. Organization Admins can enable this setting in AI Hub > MCP. OAuth does not depend on the Personal tokens setting in Settings > API access > Personal tokens. If an Organization Admin disables personal tokens, existing standard PATs are revoked, but MCP OAuth connections keep working.How it works
The OAuth flow will use the cookie of the last Omni instance you logged into when redirecting you to the authorization page. If you are a member of multiple organizations, log out and then log back in to the organization you want to connect to immediately before starting the OAuth flow.
- You add the connection URL to your MCP client.
- The MCP client will trigger the OAuth flow.
- Your browser will open to an authorization page for your Omni organization.
- Review the permissions on the authorization page.
- Click Authorize.
- Omni will automatically create an MCP OAuth PAT for the MCP client and link it to your Omni user account.
MCP OAuth PATs
When you authenticate with OAuth, Omni automatically creates a special PAT called an MCP OAuth PAT. These differ from standard PATs in a few ways:1
Any user can create one
Standard PATs require Restricted Querier or higher permissions, but MCP OAuth PATs are created automatically for any user who completes the OAuth flow. This can include Viewers.
2
Permissions reflect the user's in-app permissions
MCP OAuth PATs inherit the creating user’s in-app permissions.Users can do the same things through MCP that their role allows for in Omni. For example:
- Viewers can only run queries from published content that they have access to in Omni.
- Standard users can run exploratory queries. The same access grants applied in Omni also apply to the MCP.
3
View MCP tokens
You can view MCP OAuth PATs by going to Settings > API access > Personal tokens.
403 for new authorization requests and blocks existing grants from making tool calls.
For a full comparison of all API key types in Omni, refer to the API authentication documentation.
Connection URL
Use this URL when setting up OAuth in your MCP client:Troubleshooting
MCP server access disabled (403 error)
MCP server access disabled (403 error)
Your organization has disabled MCP server access. Ask an Organization Admin to enable it in AI Hub > MCP.
Next steps
Follow the setup guide for your MCP client:ChatGPT
OpenAI’s AI assistant with developer mode
Claude Code
Command-line based version of Anthropic Claude
Claude Desktop
App version of Anthropic Claude
Codex
OpenAI’s agentic coding tool
Cursor
AI-powered IDE designed for fast, agentic programming
Microsoft Copilot
Microsoft’s AI assistant, configured through Copilot Studio
Visual Studio Code
Popular open-source IDE with powerful AI features
Related
- MCP authentication - Compare the ways to authenticate MCP clients
- MCP API key authentication - Authenticate with a key you create and manage
- MCP Enterprise Managed Auth - Let users sign in through your Okta organization

