Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

switch-parental-controls

Latest version: v1.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: udondan
7 Versions
173 Downloads

Scan summary

switch-parental-controls was last scanned on 27 Nov 2026 at version 1.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 3 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 1.3.0.
  • Downloads: 173 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.3.0 LATEST 27 Nov 2026 No rules fired
1.2.4 26 Nov 2026 No rules fired
1.2.3 23 Nov 2026 No rules fired
1.2.1 2 Nov 2026 Not shown
1.2.0 1 Nov 2026 Not shown

No rules fired in 1.3.0

Findings

Findings for v1.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

switch-parental-controls

[!NOTE] Unofficial community project. Not affiliated with, endorsed or authorized by Nintendo.

PyPI Docker Python Tests License

A CLI and MCP (Model Context Protocol) server that expose Nintendo Switch Parental Controls as commands and AI-accessible tools. It wraps the pynintendoparental library and allows humans and AI assistants to monitor and manage parental control settings on Nintendo Switch devices.

Table of Contents

  • Features
  • Prerequisites
  • CLI Usage
    • Installation
    • Authentication
      • Interactive login
      • Storing your token
    • Docker
    • Global Options
    • Commands
  • Caching
  • MCP Server
    • Running the Server
    • Environment Variables
    • MCP Client Configuration
    • Docker MCP Toolkit
    • Available Tools
  • Development
  • CI
  • License
  • Disclaimer

Features

  • Authentication: Interactive Nintendo OAuth login flow, or pre-configured session token
  • Device monitoring: List devices, view playtime, remaining time, sync status
  • Playtime controls: Set daily limits, add extra time, configure per-day-of-week schedules
  • Bedtime controls: Set bedtime alarms and end times
  • Restriction controls: Set restriction mode (forced termination vs. alarm), content restriction levels
  • Player tracking: View player profiles and today's app usage
  • Application management: List apps, manage the allow-list (bypass content restrictions)

Prerequisites

  • uv — install once, no Python or clone needed:
curl -LsSf https://astral.sh/uv/install.sh | sh

CLI Usage

The switch-parental-controls CLI gives you direct terminal access to all parental control features.

Installation

No clone required — run directly with uvx:

uvx switch-parental-controls --help

Or install globally:

pip install switch-parental-controls
switch-parental-controls --help

The CLI and the MCP server are also available as the Docker image udondan/switch-parental-controls (amd64 and arm64), no Python needed. See Docker.

Authentication
Interactive login
switch-parental-controls login

This starts an interactive flow:

  1. A Nintendo login URL is printed — open it in your browser
  2. Log in with your Nintendo Account
  3. Right-click the "Select this person" button and copy the link
  4. Paste the copied URL at the prompt

On success, the token is saved to ~/.config/switch-parental-controls/credentials (respects XDG_CONFIG_HOME) — all other commands will use it automatically. No further setup needed.

The CLI also prints an export SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN=... snippet after login, so you can copy the token value for use in other tools or scripts.

Storing your token

The token lookup order is: environment variable → credentials file.

Credentials file (recommended):

The login command writes the token here automatically. To store it manually:

mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/switch-parental-controls"
echo "your-token-here" > "${XDG_CONFIG_HOME:-$HOME/.config}/switch-parental-controls/credentials"
chmod 600 "${XDG_CONFIG_HOME:-$HOME/.config}/switch-parental-controls/credentials"

The default path is ~/.config/switch-parental-controls/credentials; set XDG_CONFIG_HOME to use a different base directory. The file must contain only the token, one line, no quotes. The chmod 600 keeps it readable by your user only.

Environment variable (shell profile):

# Add to ~/.zshrc, ~/.bashrc, or equivalent
export SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN="your-token-here"

The environment variable takes precedence over the credentials file, so this is also useful for temporarily overriding a stored token.

Inline for one-off runs:

SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN="your-token-here" switch-parental-controls today-summary

Note: Session tokens can expire. If you get authentication errors, repeat the login flow.

Docker

The image stores the token and the caches in /data. Mount a volume there so they survive between runs. Log in once (-it for the interactive prompt):

docker run --rm -it -v switch-parental-controls:/data udondan/switch-parental-controls login

With the same volume, an alias makes the image behave like an installed switch-parental-controls. -e NAME without a value passes the variable from your shell, if set:

alias switch-parental-controls='docker run --rm -i -e SWITCH_PARENTAL_CONTROLS_TIMEZONE -e SWITCH_PARENTAL_CONTROLS_LANG -v switch-parental-controls:/data udondan/switch-parental-controls'

switch-parental-controls today-summary

Instead of the volume, the token can be passed as -e SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN.

Global Options
switch-parental-controls [OPTIONS] COMMAND [ARGS]...

Options:
  -t, --timezone TEXT   IANA timezone  [env: SWITCH_PARENTAL_CONTROLS_TIMEZONE; default: Europe/London]
  -l, --lang TEXT       Language code  [env: SWITCH_PARENTAL_CONTROLS_LANG; default: en-GB]
Commands

All device commands accept an optional [DEVICE] argument — a device name or ID. If omitted and the account has exactly one Switch, it is auto-selected. Run list-devices once to populate the local cache.

Device info:

switch-parental-controls list-devices [--format markdown|json]
switch-parental-controls get-device [DEVICE] [--format markdown|json]
switch-parental-controls today-summary [DEVICE] [--format markdown|json]
switch-parental-controls monthly-summary [DEVICE] [--year YEAR --month MONTH] [--player PLAYER_ID] [--no-cache] [--format markdown|json]
switch-parental-controls playtime [DEVICE] [--year YEAR --month MONTH] [--day DAY] [--player PLAYER_ID] [--no-cache] [--format markdown|json]

# DEVICE may be a name or an ID
switch-parental-controls today-summary "Switch #1"
switch-parental-controls today-summary abc123def456

Playtime limits:

switch-parental-controls set-playtime-limit [DEVICE] --minutes 120   # set 2-hour limit
switch-parental-controls set-playtime-limit [DEVICE] --no-limit       # remove limit
switch-parental-controls add-extra-time [DEVICE] 30                   # add 30 extra minutes today
switch-parental-controls set-timer-mode [DEVICE] DAILY
switch-parental-controls set-timer-mode [DEVICE] EACH_DAY_OF_THE_WEEK

Per-day restrictions:

# Enable playtime + bedtime on Monday
switch-parental-controls set-day-restrictions [DEVICE] MONDAY \
  --playtime-enabled --max-playtime-minutes 90 \
  --bedtime-enabled \
  --bedtime-alarm-hour 21 --bedtime-alarm-minute 0 \
  --bedtime-end-hour 7 --bedtime-end-minute 0

# Disable all restrictions on Saturday
switch-parental-controls set-day-restrictions [DEVICE] SATURDAY \
  --playtime-disabled --bedtime-disabled

Restriction and content controls:

switch-parental-controls set-restriction-mode [DEVICE] FORCED_TERMINATION
switch-parental-controls set-restriction-mode [DEVICE] ALARM
switch-parental-controls set-content-restriction [DEVICE] CHILDREN
switch-parental-controls set-bedtime-alarm [DEVICE] 21 0    # 21:00
switch-parental-controls set-bedtime-alarm [DEVICE] 0 0     # disable
switch-parental-controls set-bedtime-end [DEVICE] 7 0       # 07:00

Players and applications:

switch-parental-controls list-players [DEVICE] [--format json]
switch-parental-controls get-player [DEVICE] <player-id>
switch-parental-controls list-applications [DEVICE]
switch-parental-controls set-app-allow-list [DEVICE] <app-id> --allow
switch-parental-controls set-app-allow-list [DEVICE] <app-id> --no-allow

# Per-player usage data — use --player to filter monthly-summary and playtime
switch-parental-controls monthly-summary [DEVICE] --year 2026 --month 4 --player <player-id>
switch-parental-controls playtime [DEVICE] --year 2026 --month 4 --player <player-id>
switch-parental-controls playtime [DEVICE] --player <player-id>   # current month

# Single-day playtime — use --day to get one specific date instead of the whole month
switch-parental-controls playtime [DEVICE] --year 2026 --month 5 --day 15
switch-parental-controls playtime [DEVICE] --year 2026 --month 5 --day 15 --player <player-id>

Cache management:

switch-parental-controls clear-cache                          # clear entire cache
switch-parental-controls clear-cache --device "Switch #1"    # clear for one device
switch-parental-controls clear-cache --year 2026             # clear all months of a year
switch-parental-controls clear-cache --year 2026 --month 4   # clear a specific month

Start the MCP server:

switch-parental-controls mcp

Caching

monthly-summary and playtime cache their API responses locally so past months don't require a network round-trip on subsequent calls.

What is cached: Raw API responses for months where both --year and --month are provided explicitly and the month is not the current calendar month. Data for the current month — and requests without an explicit year/month — always fetch live from the Nintendo API.

Cache location: ~/.config/switch-parental-controls/cache/ (respects XDG_CONFIG_HOME), organised as {device-id}/{YYYY}-{MM}.json.

Bypassing the cache: Pass --no-cache to monthly-summary or playtime to skip both reading from and writing to the cache. Useful when data looks unexpectedly stale.

Clearing the cache: Use the clear-cache command (CLI) or switch_clear_cache tool (MCP) — see the command examples above.

MCP Server

Running the Server
uvx switch-parental-controls mcp

No clone or install required — uvx fetches the package from PyPI and runs it in an isolated environment.

The server is listed in the MCP Registry as io.github.udondan/switch-parental-controls.

Environment Variables
Variable Required Default Description
SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN Yes* — Nintendo session token
SWITCH_PARENTAL_CONTROLS_TIMEZONE No Europe/London IANA timezone (e.g. America/New_York)
SWITCH_PARENTAL_CONTROLS_LANG No en-GB Language code (e.g. en-US)

*The token can also be provided via the credentials file (~/.config/switch-parental-controls/credentials by default; respects XDG_CONFIG_HOME). Since the CLI login command writes to that same file, running switch-parental-controls login once is sufficient — the MCP server will pick up the stored token automatically, no environment variable needed. The only exception where no token is needed upfront at all is when using the interactive switch_get_login_url / switch_complete_login tools to authenticate.

MCP Client Configuration

Add to your MCP client configuration (e.g. Claude Desktop claude_desktop_config.json):

{
  "mcpServers": {
    "nintendo": {
      "command": "uvx",
      "args": ["switch-parental-controls", "mcp"],
      "env": {
        "SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN": "your-token-here",
        "SWITCH_PARENTAL_CONTROLS_TIMEZONE": "America/New_York",
        "SWITCH_PARENTAL_CONTROLS_LANG": "en-US"
      }
    }
  }
}

With Docker instead of uvx, the entry looks like this. -e NAME without a value passes the variable from env to the container:

{
  "mcpServers": {
    "nintendo": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN",
        "-e",
        "SWITCH_PARENTAL_CONTROLS_TIMEZONE",
        "-e",
        "SWITCH_PARENTAL_CONTROLS_LANG",
        "udondan/switch-parental-controls"
      ],
      "env": {
        "SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN": "your-token-here",
        "SWITCH_PARENTAL_CONTROLS_TIMEZONE": "America/New_York",
        "SWITCH_PARENTAL_CONTROLS_LANG": "en-US"
      }
    }
  }
}

To use the token saved by login instead (see Docker), replace the token's -e pair with "-v", "switch-parental-controls:/data".

Docker MCP Toolkit

With the Docker MCP Toolkit in Docker Desktop, the server runs as a container behind the MCP Gateway. The gateway starts the container on demand and passes the tools on to the connected clients. The token is stored as a secret in Docker Desktop instead of in plain text in the client configuration.

Requires Docker Desktop with the MCP Toolkit enabled.

  1. Download the server definition docker-mcp.yml and add it to a Toolkit profile. The Toolkit only reads such files from its catalogs directory:

    mkdir -p ~/.docker/mcp/catalogs
    curl -fsSL https://raw.githubusercontent.com/udondan/switch-parental-controls/main/docker-mcp.yml -o ~/.docker/mcp/catalogs/switch-parental-controls.yml
    # New profile:
    docker mcp profile create --name switch-parental-controls --id switch-parental-controls --server "file://$HOME/.docker/mcp/catalogs/switch-parental-controls.yml"
    # Or add it to an existing profile:
    docker mcp profile server add default --server "file://$HOME/.docker/mcp/catalogs/switch-parental-controls.yml"
  2. Store the token as a secret (see Authentication for how to get one):

    docker mcp secret set switch-parental-controls.session_token=your-token-here
  3. Optionally set timezone and language. Without them, the defaults Europe/London and en-GB apply:

    docker mcp profile config switch-parental-controls --set switch-parental-controls.timezone=America/New_York --set switch-parental-controls.lang=en-US
  4. Connect a client to the profile:

    docker mcp client connect claude-desktop --profile switch-parental-controls

    docker mcp client connect --help lists other clients such as claude-code, cursor or vscode. This also works in Docker Desktop under MCP Toolkit.

docker mcp gateway run --profile switch-parental-controls --dry-run --verbose checks the setup without starting a client. It should end with switch-parental-controls: (20 tools).

Available Tools
Authentication Tools
Tool Description
switch_get_login_url Generate the Nintendo login URL and step-by-step instructions
switch_complete_login Complete login with the redirect URL from the browser
Devices

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases switch-parental-controls

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229