independent-okta-mcp
A self-hosted, read-only MCP server for the Okta Management API. Users sign in with Okta OAuth; their groups map to roles in a version-controlled policy that decides what each may call. Runs as one stateless container.
An independent project: not affiliated with, endorsed by or supported by Okta, Inc.
Status
Beta. Suitable for initial production use; read the no-warranty terms below and the runbook first. Before 1.0 a minor version can rename commands or change the policy file format and environment variables; read the changelog before upgrading.
No warranty. The software is provided "as is", with no guarantee or warranty of any kind, express or implied, including fitness for a particular purpose. To the fullest extent the law allows, the author and contributors are not liable for any damage or loss from using it, including to your Okta org or its data. Anyone who uses it assumes all risk. Nothing in this repository's documentation, its tests or its reviews changes that; the binding terms are sections 7 and 8 of the LICENSE.
| Done | The server, policy engine, 24 command domains, container and setup tools, tested against mocked Okta in CI |
| Checked against an Okta dev org | The setup script; most commands through stdio dev mode; OAuth sign-in from Claude Code to this server over loopback HTTP and through a TLS proxy (Caddy), with tool calls and token refresh (option B); sign-in from the Claude connector (claude.ai) and ChatGPT (developer mode) to a deployment with a public URL, with tool calls (option A); role changes, group removal and token revocation taking effect at the next refresh, refresh tokens outliving the Okta session and expiring by the authorization server's policy, and 429 handling (option B); group removal taking effect when the token is next renewed (option A); a deployment from the runbook on a clean machine; the compose example up to a ready container; the service app's rate-limit share capping its requests; diagnostics login-failures against real sign-in failures (lockout, unassigned app, policy DENY, MFA, device assurance and posture). The Kubernetes example ran on a local cluster |
| Checked nightly in CI against an Okta org | The service token with DPoP; every registry command but eight the CI org can't serve; each example role's allowed and refused calls; paging; path routing; diagnostics login-failures on four sign-in failures the job causes (plan 8.2.1) |
| Not yet done | diagnostics login-failures on IdP and threat events; commands whose scopes or features none of the available orgs offer |
| Review | Written and reviewed with AI assistance (Claude Code), directed by the maintainer; security reviews by AI models from more than one vendor. No independent human security review (SECURITY.md) |
What is left is tracked in the plan.
Read more
- Compared with Okta's MCP server: when to use Okta's own server instead, and how they differ
- Okta setup: prerequisites (API Access Management), clients, service app
- Deployment scenarios: where to host it, internal or internet-facing, one host or replicated
- Runbook: deploy, operate, rotate, kill switch
- Clients: how an MCP client connects, and which have been tried
- Design · Plan · Changelog
- Security policy · Contributing
Install
From a release: the container image from GHCR, pinned by the digest in its release notes (the supported way; linux/amd64 and linux/arm64 from 0.1.1), or the package installed from the release's hashed requirements.lock and wheel (runbook §3.6). A plain pip install independent-okta-mcp from PyPI resolves unpinned dependency versions and is not supported for production. The license is not OSI-approved (see License below), which some company dependency policies block.
Usage
An operator deploys the server (runbook) and gives users its URL and the client app's ID. With Claude Code:
claude mcp add --transport http okta https://mcp.example.com/mcp \
--client-id 0oa1client0000000000 --callback-port 8765
In a session, run /mcp, pick okta and sign in with Okta in the browser. The server then lists only the tools you can call: okta_status always, and okta_help plus one okta_<domain> tool per domain your role allows (for a helpdesk role, say, okta_users and okta_groups). Ask for okta_status first: it says who you are to the server, your roles, the commands each tool lets you run, and any your role allows that are hidden because the service app lacks the Okta scopes for them. Every call is read-only and checked against your role; try okta_groups list. Other clients: compatibility matrix.
Local dev mode (stdio)
Try it against a dev org from a local MCP client. No authentication: the caller is the principal in a file, checked by the normal policy. Refused when MCP_ENV=production.
# principal.yaml: who you are to the policy
uid: 00u1abcdEFGH2ijkl345 # your Okta user ID
sub: you@example.com
groups: [00g1readers000000000] # group IDs your policy maps to roles
MCP_DEV_MODE=1 MCP_DEV_PRINCIPAL_FILE=principal.yaml \
MCP_POLICY_FILE=tests/policy/fixtures/pilot.yaml \
MCP_CURSOR_KEY="$(openssl rand -base64 32)" \
OKTA_ORG_URL=https://your-org.okta.com OKTA_SCOPES="okta.groups.read okta.networkZones.read" \
OKTA_API_TOKEN_FILE=okta-token.txt \
uv run okta-mcp --stdio
Add --check to validate the configuration and policy without serving (exit 0 or 2).
Use a read-only admin's API token, or the service app (OKTA_CLIENT_ID, OKTA_PRIVATE_KEY_FILE). In a client config, pass the same variables as the server's environment, with a fixed MCP_CURSOR_KEY (cursors break on each restart otherwise).
License
Apache-2.0 with the Commons Clause: free to use and modify, not to sell. See LICENSE. The Commons Clause makes it source-available, not open source: it isn't an OSI-approved license. The vendored Okta OpenAPI specification is Okta's, under Apache-2.0 (NOTICE).
Metadata
Release files for independent-okta-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| independent_okta_mcp-0.2.0.tar.gz | 778.5 kB | With provenance | Details for independent_okta_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| independent_okta_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for independent_okta_mcp-0.2.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / independent_okta_mcp-0.2.0.tar.gz
| Download URL | independent_okta_mcp-0.2.0.tar.gz |
|---|---|
| Size | 778.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b3684e8491580a4b44eaf072b7928c9d893eebc0e85dab33a8f7aaedbedc828
|
|
BLAKE2b-256 checksum How to use checksums |
9a395bee5b4f04d0b665efcddaa4809a96ba7d45ba2f37e7f420d13628d4bef1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / independent_okta_mcp-0.2.0-py3-none-any.whl
| Download URL | independent_okta_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 822.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
354cb5d7703d6807143f5acdcbb75b87176e2258705fc7fb80c7535d24ebb214
|
|
BLAKE2b-256 checksum How to use checksums |
a9365b8b85a573dd167d1e93d4c153ed0a80b68caed18ecd0c12ba390855629a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for independent-okta-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for independent_okta_mcp-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.