Skip to main content

knuckles-mcp

An MCP server that lets a coding agent (Claude Code, Cursor, any MCP client) set up sign-in with your Knuckles server: create a tenant for an app, turn on Google, Apple, email magic links and passkeys, and check the result, all from a conversation.

It ships with a Claude Code skill, knuckles-setup, that walks the agent through the whole job, including wiring the SDK into the app.

uvx --from knuckles-cli knuckles login --url https://auth.example.com   # once; prompts for the admin token
claude mcp add knuckles -- uvx knuckles-mcp
uvx knuckles-mcp install-skill                  # optional: the setup skill

Then ask your agent: "Add Knuckles sign-in with Google and passkeys to this app."

No uv? pip install knuckles-mcp gives you both commands; drop the uvx prefixes.

Your Knuckles server needs KNUCKLES_ADMIN_TOKEN set (Decision #021).

How it finds your server

The same way the knuckles CLI does (it's installed alongside):

  1. KNUCKLES_URL and KNUCKLES_ADMIN_TOKEN in the server's environment, e.g. claude mcp add knuckles -e KNUCKLES_URL=... -- uvx knuckles-mcp.
  2. Otherwise the profile saved by knuckles login (KNUCKLES_PROFILE picks one; default default).

Secrets stay out of the conversation

No tool takes a secret as an argument or returns one, so nothing sensitive ends up in the agent's transcript or tool logs:

  • knuckles_create_app and knuckles_rotate_secret write the client secret straight into the .env file you name. They won't run without one.
  • Provider secrets are read from files on your machine: Google's client_secret_*.json, Apple's AuthKey_<KEYID>.p8, or a file holding your Resend API key. You can also set KNUCKLES_RESEND_API_KEY / KNUCKLES_GOOGLE_CLIENT_SECRET in the server's environment.
  • Tenant rows come back redacted: secrets show as *_configured booleans.

Tools

Tool What it does
knuckles_doctor Checks the server (health, issuer, JWKS, HTTPS) and each tenant's config. Read-only.
knuckles_list_apps / knuckles_show_app List tenants or show one. Read-only.
knuckles_create_app Creates a tenant and writes KNUCKLES_URL / KNUCKLES_CLIENT_ID / KNUCKLES_CLIENT_SECRET into an .env.
knuckles_set_origins Replaces a tenant's allowed origins.
knuckles_rotate_secret Mints a new client secret into the .env; the old one stops working.
knuckles_configure_email Resend magic-link email. Checks that the domain is verified first.
knuckles_configure_google Google sign-in from the console's downloaded JSON. Warns about redirect URIs on disallowed origins.
knuckles_configure_apple Sign in with Apple from the .p8 key. Reads the key id from the filename.
knuckles_configure_passkey WebAuthn relying party. Refuses to change an rp_id in use unless forced.
knuckles_clear_provider Removes one sign-in method's config from a tenant.

Errors carry the same codes as the CLI and the API (NOT_LOGGED_IN, ADMIN_API_DISABLED, APP_CLIENT_NOT_FOUND, ENV_FILE_CONFLICT, EMAIL_DOMAIN_UNVERIFIED, ...).

Other clients

Any MCP client that launches stdio servers works. For example, in a JSON config:

{
  "mcpServers": {
    "knuckles": { "command": "uvx", "args": ["knuckles-mcp"] }
  }
}

Development

pip install -e ../knuckles-cli -e ".[dev]"
pytest --cov=knuckles_mcp

See Decision #027 in the repo's DECISIONS.md for the design.

Releasing

Bump the version in pyproject.toml and __init__.py, add a CHANGELOG entry, merge, then push a tag:

git tag knuckles-mcp-vX.Y.Z && git push origin knuckles-mcp-vX.Y.Z

.github/workflows/release-mcp.yml tests, builds and publishes to PyPI via Trusted Publishing.

knuckles-mcp depends on knuckles-cli, so tag the matching knuckles-cli release first.

Metadata

Release files for knuckles-mcp 0.1.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 knuckles-mcp 0.1.0
File Size Uploaded Provenance Actions
knuckles_mcp-0.1.0.tar.gz 19.2 kB With provenance Details for knuckles_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for knuckles-mcp 0.1.0
File Interpreter ABI Platform Actions
knuckles_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for knuckles_mcp-0.1.0-py3-none-any.whl

Total release size: 33.6 kB

Release files / knuckles_mcp-0.1.0.tar.gz

Download URL knuckles_mcp-0.1.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ecbdaefea78bbd0dbf7cecf85ebec3dc827f095f5c4612804c88673dee886ea9
BLAKE2b-256 checksum
How to use checksums
9bd571b5f0b768b931889e687f350d0b2b132388022f43fda49633fc4ae1bd25
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 5, 2026.

Transparency log

Release files / knuckles_mcp-0.1.0-py3-none-any.whl

Download URL knuckles_mcp-0.1.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de1fffbcb8e7ec2e881cc158ffdeaee571cf81e7a8c20f9dbf642121e35214ef
BLAKE2b-256 checksum
How to use checksums
3e0cbb0455a474b4524c7f237feb366ab64867c2d480a6612b07cc67557e1061
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 5, 2026.

Transparency log

Security for knuckles-mcp 0.1.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 knuckles_mcp-0.1.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 5, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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