--- a/mozc/src/MODULE.bazel
+++ b/mozc/src/MODULE.bazel
@@ -63,6 +63,29 @@ bazel_dep(
     version = "1.4.1",
 )
 
+local_runtime_repo = use_repo_rule(
+    "@rules_python//python/local_toolchains:repos.bzl",
+    "local_runtime_repo",
+)
+
+local_runtime_toolchains_repo = use_repo_rule(
+    "@rules_python//python/local_toolchains:repos.bzl",
+    "local_runtime_toolchains_repo",
+)
+
+local_runtime_repo(
+    name = "local_python3",
+    interpreter_path = "python3",
+    on_failure = "fail",
+)
+
+local_runtime_toolchains_repo(
+    name = "local_toolchains",
+    runtimes = ["local_python3"],
+)
+
+register_toolchains("@local_toolchains//:all", dev_dependency = True)
+
 # Bazel macOS build (3.22.0 2025-05-20)
 # https://github.com/bazelbuild/rules_apple
 bazel_dep(
