Skip to main content

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

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for independent-okta-mcp 0.3.0
File Size Uploaded Provenance Actions
independent_okta_mcp-0.3.0.tar.gz 791.0 kB With provenance Details for independent_okta_mcp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for independent-okta-mcp 0.3.0
File Interpreter ABI Platform Actions
independent_okta_mcp-0.3.0-py3-none-any.whl Python 3 none any Details for independent_okta_mcp-0.3.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / independent_okta_mcp-0.3.0.tar.gz

Download URL independent_okta_mcp-0.3.0.tar.gz
Size 791.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5a34c226a743d170cb0f781b14fe2cf3065e02097ab7f2b313d6afe3b7662f4d
BLAKE2b-256 checksum
How to use checksums
cecf13de62fd53a930aacc3b64e2db9897f61c6c2da82cc476b437fd064a1a7d
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 Dec 1, 2026.

Transparency log

Release files / independent_okta_mcp-0.3.0-py3-none-any.whl

Download URL independent_okta_mcp-0.3.0-py3-none-any.whl
Size 836.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c44da0e9ea0b463554a893d011506a5468d9104c7c480245d5f1db37d7edcea
BLAKE2b-256 checksum
How to use checksums
7b7b7fe168f87b2b430be37947aee3b9577301622ca01a90edfe67dd8108f5db
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 Dec 1, 2026.

Transparency log

Security for independent-okta-mcp 0.3.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.

Select from 2 files

Attestation for independent_okta_mcp-0.3.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 Dec 1, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page