
Onelogin Mcp
io.github.oneloginPublished by GitHub account oneloginv1.2.1Updated Oct 25, 2026
MCP server for OneLogin API - manage users, apps, roles, and authentication
Overview
A local MCP server that connects an assistant to the OneLogin API so it can manage users, roles, apps, authentication and security settings.
- What you can do
- Manage identity and access: users, roles, privileges, groups and mappings, including creating users and assigning roles or privileges to them (R55, R56, R57, R58, R59, R60, R51). Administer applications: apps and connectors, including SAML and OAuth app listings (R61, R62, R63, R51). Handle authentication: MFA tokens, sessions, SAML assertions, OAuth tokens and invite links (R64, R65, R66, R67, R68, R69). Configure security: policies, risk rules, Smart Hooks and API authorization scopes (R70, R71, R72, R73, R74). Customize and monitor: brands, events, reports and rate limits, plus child accounts (R75, R76, R77, R78, R79, R80, R81, R82).
- When to use it
- Useful when an assistant should work directly with a OneLogin tenant: looking up or creating users, assigning roles, listing SAML apps, generating MFA tokens, reviewing audit events and reports, or adjusting security policies and API scopes through natural language.
- Requirements
- Runs locally via npx from the npm package @onelogin/onelogin-mcp, so Node.js is needed. Requires OneLogin OAuth2 API credentials (client ID and secret) and the tenant URL, supplied through ONELOGIN_CLIENT_ID, ONELOGIN_CLIENT_SECRET and ONELOGIN_URL, or stored via the setup script in a local config file. The OAuth2 client needs API permissions in the OneLogin admin panel. Network access to the OneLogin instance is required.
Installation
In SourceWeft
- Open Onelogin Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
OneLogin MCP Server
A Model Context Protocol server providing comprehensive access to the OneLogin API. Enables Claude Desktop, OpenCode, and other MCP clients to manage users, apps, roles, authentication, and security settings.
Overview
This server provides tools covering a comprehensive set of supported OneLogin API endpoints:
- Identity Management: Users, roles, groups
- Applications: Apps, connectors, SAML, OAuth
- Authentication: MFA, sessions, risk rules
- Security: API authorization
- Configuration: Brands, mappings
- Operations: Events, reports, rate limits
All tools include comprehensive descriptions with warnings, best practices, and return data specifications.
Demo
https://github.com/user-attachments/assets/512abc44-6bb4-42e4-bb47-c0bc16f29beb
Installation
Prerequisites
- OneLogin API credentials (OAuth2 client ID and secret)
- An AI client such as OpenCode, Claude Desktop, Copilot CLI, or Claude Code
Setup
Option 1: Environment Variables (Recommended)
Configure credentials directly in Claude Desktop config - no separate setup required.
Edit the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Single environment:
Multiple environments (production/test separation):
Optional environment variables:
ONELOGIN_USE_PREPROD: Set to"true"for preprod environmentsONELOGIN_LEGACY_KEY: Legacy API key (rarely needed)ONELOGIN_SERVER: Server name for logging (defaults to "default")
Restart Claude Desktop completely after configuration.
OpenCode Configuration
For OpenCode users, add to ~/.config/opencode/mcp.json:
Single environment:
Multiple environments:
Restart OpenCode after configuration.
Option 2: Setup Script (servers.json)
Alternative method using a configuration file:
- Install the package:
- Configure OneLogin credentials:
Enter your OneLogin server details when prompted:
- Server name (e.g., "Production", "Test")
- OneLogin subdomain URL (e.g.,
https://mycompany.onelogin.com) - OAuth2 client ID and secret
Configuration is stored in ~/.config/onelogin-mcp/servers.json.
- Add to Claude Desktop config:
Edit the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Single environment:
Multiple environments (reference servers by name):
- Restart Claude Desktop completely.
Usage
Use natural language to interact with OneLogin:
Claude will select the appropriate tool, call the OneLogin API, and present results.
API Coverage
This server provides 156 tools organized into 7 major categories:
Identity & Access (59 tools)
- Users (14)
- Roles (13)
- Privileges (11)
- Groups (6)
- Mappings (15)
Applications (17 tools)
- Apps (15)
- Connectors (2)
Authentication (21 tools)
- MFA (10)
- Sessions (5)
- SAML (2)
- OAuth Tokens (2)
- Invite Links (2)
Security (40 tools)
- Policies (7)
- Risk Rules (6)
- Smart Hooks (11)
- API Authorization (16)
Customization (6 tools)
- Brands (6)
Monitoring (9 tools)
- Events (2)
- Reports (5)
- Rate Limits (2)
Account Management (4 tools)
- Accounts (4)
Configuration
Credential Management
The server supports two configuration methods:
- Environment Variables (recommended): Set
ONELOGIN_URL,ONELOGIN_CLIENT_ID, andONELOGIN_CLIENT_SECRETin your MCP client config (see Installation above) - Configuration File: Use
npx onelogin-mcp-setupto store credentials in~/.config/onelogin-mcp/servers.json
Environment variables take precedence over the configuration file. See the Installation section above for complete configuration examples.
Optional Environment Variables
ONELOGIN_USE_PREPROD: Set to"true"for preprod environmentsONELOGIN_LEGACY_KEY: Legacy API key (rarely needed)ONELOGIN_SERVER: Server name for logging (defaults to "default") or to select a named server from servers.json
Response Format
All tools return structured responses:
The request_id matches the x-request-id HTTP header for tracing in Datadog and OneLogin logs.
Troubleshooting
Server not appearing in Claude Desktop
- Verify JSON config syntax
- Ensure absolute path to
index.js - Restart Claude Desktop completely (quit and reopen)
"spawn bun ENOENT" error
Claude cannot find the Bun runtime. Solutions:
Authentication errors
- If using environment variables: Verify
ONELOGIN_URL,ONELOGIN_CLIENT_ID, andONELOGIN_CLIENT_SECRETin Claude Desktop config - If using servers.json: Verify credentials in
~/.config/onelogin-mcp/servers.json - Ensure OAuth2 client has API permissions in OneLogin admin panel
- Check client_id and client_secret are for API v2
Wrong environment
Using environment variables: Each MCP server entry has its own credentials - verify you're talking to the correct server instance in Claude.
Using servers.json: Check the ONELOGIN_SERVER environment variable in Claude Desktop config matches a server name in servers.json.
Project Structure
Development
See CONTRIBUTING.md for guidelines on adding new tools.
Key conventions:
- Tool descriptions include warnings, best practices, and return data structure
- All modules export
toolsarray andhandlersobject - Registry auto-discovers tools from module imports
Releasing
To publish a new version to npm:
-
Merge your changes to the
mainbranch -
Create a GitHub Release:
- Go to Releases → "Draft a new release"
- Create a new tag with the version (e.g.,
v1.1.0) - Set the release title (e.g., "v1.1.0 - MFA API fixes")
- Add release notes describing the changes
- Click "Publish release"
-
Automatic Publishing: The GitHub Action will:
- Extract the version from the release tag (strips
vprefix) - Update
package.jsonwith the new version - Publish to npm under
@onelogin/onelogin-mcp
- Extract the version from the release tag (strips
Version Format: Use semantic versioning (MAJOR.MINOR.PATCH)
MAJOR: Breaking API changesMINOR: New features, backward compatiblePATCH: Bug fixes, backward compatible
Manual Publishing (if needed):
- Go to Actions → "Publish Package" → "Run workflow"
- Optionally specify a version override
Support
License
MIT
Source: README.md at commit 1e7d1f2
Tools
0Version history
1- v1.2.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts