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
Alpha. Don't point it at a production org yet. 0.1.0 is the first release. Before 1.0 a minor version can rename commands or change the policy file format and environment variables; read the changelog before upgrading.
| 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; 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 | Token refresh against this server; clients other than Claude Code; a deployment from the runbook on a clean machine; diagnostics login-failures on IdP and threat events; the runbook steps marked unverified |
| Review | Written and reviewed with AI assistance (Claude Code), directed by the maintainer. No independent security audit (SECURITY.md) |
What is left is tracked in the plan.
Read more
- 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; 0.1.0 is linux/amd64 only, arm64 is planned), 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.
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.1.1
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.1.1.tar.gz | 776.2 kB | With provenance | Details for independent_okta_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| independent_okta_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for independent_okta_mcp-0.1.1-py3-none-any.whl |
Total release size: 1.6 MB
Release files / independent_okta_mcp-0.1.1.tar.gz
| Download URL | independent_okta_mcp-0.1.1.tar.gz |
|---|---|
| Size | 776.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85111f610661b195bee02e400f4d3232835138dd8f91ffd7a6015d72e0e2f7f4
|
|
BLAKE2b-256 checksum How to use checksums |
c28918eb31a05b6f41309e4ab0438c3aa2d692ed59203ce1d0d75e8babfb9518
|
| 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 24, 2026.
Transparency logRelease files / independent_okta_mcp-0.1.1-py3-none-any.whl
| Download URL | independent_okta_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 820.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26e5b2eed04cd5ad6d2d41ff0757ad66f964d2d69ef3fe5c0147873f2dbbe430
|
|
BLAKE2b-256 checksum How to use checksums |
20eea8f4a9b43b237cab95613c36eaecfcb01dd54e6ab8c10fba68603b6e9516
|
| 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 24, 2026.
Transparency logSecurity for independent-okta-mcp 0.1.1
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.1.1.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 24, 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.