| OAuth | API key | |
|---|---|---|
| Best for | Individual users who want quick, secure setup | Admins managing keys centrally, or automated workflows |
| Setup complexity | Low - browser flow | Medium - manual configuration |
| Key management | Automatic | Manual |
| User permissions | Uses your permissions | Uses key creator’s permissions |
OAuth authentication
OAuth lets MCP clients connect to Omni without requiring you to manually create and manage API keys. When you connect, Omni creates an API key on your behalf and links it to your user account.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 Server, your organization must have:- The MCP server AI setting enabled - Organization Admins can enable this setting in Settings > AI > General
- Personal access tokens (PATs) enabled - Organization Admins can activate them by going to Settings > API Keys > Personal tokens
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 via OAuth, Omni automatically creates a special PAT called an MCP OAuth PAT. These differ from standard PATs in a few ways:Any user can create one
Standard PATs require Modeler or higher permissions, but MCP OAuth PATs are created automatically for any user who completes the OAuth flow. This can include Viewers.
Permissions reflect the user's in-app permissions
MCP OAuth PATs inherit the creating user’s in-app permissions.This means that while Viewers can create an MCP OAuth PAT, they won’t be able to run queries or retrieve data through MCP since their permissions don’t allow querying in-app.
Connection URL
Use this URL when setting up OAuth in your MCP client:API key authentication
API key authentication gives you direct control over key creation and management. This approach is useful when:- You need to manage API keys centrally for your organization
- You’re setting up automated workflows or CI/CD pipelines
- You want to use a service account rather than individual user credentials
- Your MCP client doesn’t support OAuth
How it works
- Create an API key in Omni
- Configure the key in your MCP client’s settings
- The client includes the key in all requests to Omni
Connection URL
When using API key authentication, connect directly to your Omni instance:<YOUR_OMNI_INSTANCE> with your Omni URL (e.g., acme.omniapp.co).
Troubleshooting
OAuth issues
"Personal Access Tokens aren't enabled" (403 error)
"Personal Access Tokens aren't enabled" (403 error)
Ask an admin to enable PATs: Settings > API Keys > Personal tokens
MCP server access disabled (403 error)
MCP server access disabled (403 error)
Your organization has disabled MCP server access. Ask an admin to enable it: Settings > AI > General > MCP server
Authorization flow doesn't start
Authorization flow doesn't start
Authorization fails after clicking "Authorize"
Authorization fails after clicking "Authorize"
API key issues
Authentication fails
Authentication fails
- Verify the API key is correct and hasn’t been revoked
- Check that the key has appropriate permissions
- Ensure you’re using the correct instance URL
General issues
Queries fail after successful authorization
Queries fail after successful authorization
Next steps
Ready to connect? 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
Visual Studio Code
Popular open-source IDE with powerful AI features