Skip to main content

MirginCipher Blackbox (MGC) — Multi-Agent Cross-Node Privacy Execution Base

A local encrypted execution base for multi-agent, cross-node, privacy-preserving task execution — sensitive operations never leave the device in plaintext; scripts, files, and skill / workflow folders can be sealed and dispatched across trusted nodes without exposing source code.

License Platform MCP PyPI

📌 Roadmap: MGC Blackbox — 2026 Development Plan


What is MGC Blackbox?

MirginCipher Blackbox (MGC) is a Multi-Agent Cross-Node Privacy Execution Base. It is not an agent itself — it is the encrypted execution layer underneath your agents.

MGC provides:

  • 100% local, never touches the cloud — all data, scripts, and encryption keys stay on your device. No third-party servers, no telemetry.
  • Store sensitive data (tokens, passwords, configs) and scripts (logic, workflows, automation).
  • Execute stored scripts with structured args and auto-detected dependencies. No rewrites, no path tricks, no plaintext on disk.
  • Delegate across nodes — seal a script into a portable JSON capsule, hand it to another MGC node, and let it run there. No plaintext crosses the boundary. p2p mode binds it to one node's key; free mode opens it to any node while keeping the source encrypted.
  • Auto-recognize workflows — MGC automatically discovers scripts' args, dependencies, compatible OS, and cross-script workflow relationships.
  • Open WebUI for human operations.

Why MGC?

  • 🔐 End‑to‑End Encrypted Storage
    AES‑256 encrypted vault for API keys, credentials, configs — never exposed to AI agents or external systems.

  • 🧱 Local‑First Security Boundary
    All execution and decryption happen on‑device. No cloud dependency, no plaintext leakage, no telemetry.

  • 🧩 Sealed Script & Folder Execution (Unique)
    Convert scripts, files, and skill / workflow folders into unreadable execution capsules.
    p2p mode binds the capsule to one node's key; free mode opens it to any MGC node while keeping the source encrypted. Neither the recipient nor a third party can read the source.

  • ⚡ Deterministic Local Execution
    Stable, reproducible behavior across macOS / Linux / Windows with a Cython‑compiled secure core.

  • 🛠️ Native MCP / Skill Integration
    Exposes mgc_save / mgc_save_file / mgc_get / mgc_list / mgc_run / mgc_find / mgc_seal / mgc_seal_package / mgc_package / mgc_delete / mgc_open_webui / mgc_skill as standard MCP tools.
    Works out‑of‑the‑box with Copilot, Claude, Trae, IDE Agents.

  • 🔄 Zero Integration Cost
    Any MCP‑compatible agent can immediately use MGC as its secure execution backend — no SDK, no custom code.

  • 🛡️ Designed for AI Agent Security
    Protects human intent, prevents agent overreach, and enforces strict execution boundaries.


Use Cases

1. Protect API Keys & Credentials from AI Agents

Store secrets encrypted in MGC. Scripts retrieve values at runtime by name — no plaintext in source code. Agents can use them, but never see the values.

2. Path-Independent Script Addressing

Address scripts by MGC location name, not hardcoded file paths. The same name resolves on any machine where MGC has the entry.

3. Source Code Protection

Store scripts in MGC. AI agents and coworkers can execute but cannot read the source. Business logic stays encrypted.

4. Cross-Node Delegation Without a Cloud Broker

Authorize another machine to run your script via local key exchange + sealing. No cloud trust broker, no third party — you only need the target machine's public key.

5. Multi-Script Workflow Portability

Save a folder of scripts that call each other via import / subprocess. MGC auto-discovers call relationships and routes them at runtime — no source files needed on the target machine.

6. Anti-Redistribution

Sealing binds the script to the recipient's device key. Only that device can decrypt and execute; the recipient cannot re-seal for someone else.

7. Public Skill Distribution (Free Mode)

Publish a skill to a marketplace or community via free mode — seal without specifying a recipient. Any MGC node can execute, but the source never touches disk and cannot be read.


📘 Value Scenarios

MGC Blackbox provides a trusted, encrypted execution boundary for different roles and environments.
Detailed scenario documents:


Architecture


Crypto Layer & Performance

MGC uses a hybrid cryptographic design:

  • AES‑256‑GCM — bulk data encryption
  • RSA‑2048/4096 — key encapsulation & node authorization

The crypto layer is Cython‑compiled to:

  • Improve AES & RSA performance
  • Reduce Python overhead
  • Provide a sealed, tamper‑resistant execution boundary
  • Maintain deterministic behavior across nodes

Features

  • Local encrypted storage
  • Encrypted execution
  • Store‑once authorization
  • Environment migration
  • Cross‑agent availability
  • Cross‑platform support
  • Script sealing for cross‑node execution (p2p + free mode)
  • Cross-script auto-recognition in skill / workflow folders — mgc_save_file parses the script call graph (import / from-import / relative-path subprocess) at save time; mgc_run then routes cross-script calls through sealed execution transparently.
  • Sealed capsule import — mgc_seal writes a self-describing JSON capsule; any MGC node can import and run it.

Quick Start

1. Install

pip install mgc-blackbox

2. Start Service

mgc

3. Open WebUI

http://127.0.0.1:57218

REST API available at http://127.0.0.1:57219.

4. Store a Secret

from mgc import save
save("openai_key", "sk-xxxx")

5. Execute Scripts Securely

Scripts run inside MGC's encrypted boundary.


Example: Save & Retrieve Secrets

from mgc import save, get

save("openai_key", "sk-xxxx")
print(get("openai_key"))

MCP Integration

MGC exposes a local MCP tools interface:

  • mgc_save — store a single secret / script / file by explicit content
  • mgc_save_file — store by local file path; auto-detects single file vs folder; also auto-recognizes cross-script calls inside folder saves (import / from-import / relative-path subprocess)
  • mgc_get — retrieve encrypted content
  • mgc_list — browse stored entries
  • mgc_run — execute a stored script in the encrypted boundary; cross-script calls inside a folder run transparently as sealed child processes
  • mgc_find — fuzzy-search entries by info_owner / diff_1..3 (no info_type)
  • mgc_seal — seal a single script into a portable JSON capsule for cross-node delegation
  • mgc_package — bundle a folder into a sealed .mgc_file
  • mgc_seal_package — ship a sealed package to a trusted node
  • mgc_delete — delete a stored record (permanent, audited)
  • mgc_open_webui — open the local WebUI
  • mgc_skill — return the bundled skill document (skill_spec.md) for the agent

Compatible with Copilot, Claude, Trae, IDE Agents.


Usage Overview

1. Through AI agents (Skills / MCP)

Agents can store secrets, retrieve encrypted items, execute scripts, and seal scripts.

2. Through system scripts (REST API)

External scripts can fetch encrypted items at runtime.


Security Model

  • All data remains local
  • No cloud upload
  • No plaintext logging
  • Deterministic execution
  • User‑controlled authorization
  • Sealed scripts can be executed but never read
  • Folder packages inherit single-script guarantees: every file encrypted, only file structure visible
  • Scope of the guarantee: MGC protects content confidentiality, not runtime behaviour. A sealed script runs with the full privileges of the user who runs it — MGC does not restrict which commands it invokes, which files it reads or writes, or which network endpoints it reaches. Treat a sealed capsule as executable code from an untrusted source.

AI Skill Specification

See: docs/skill_spec.md


Authorization

Integration into any third‑party products or AI agents is free,
but requires official authorization to ensure ecosystem integrity.

Contact: mirgincipher@outlook.com


License

See the LICENSE file for full terms.

© 2026 MirginCipher Team. All rights reserved.


---

Metadata

Release files for mgc-blackbox 1.5.4

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

Built distributions (wheels)

Table of built distributions (wheels) for mgc-blackbox 1.5.4
File Actions
mgc_blackbox-1.5.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for mgc_blackbox-1.5.4-cp312-cp312-win_amd64.whl
mgc_blackbox-1.5.4-cp312-cp312-manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for mgc_blackbox-1.5.4-cp312-cp312-manylinux_2_17_x86_64.whl
mgc_blackbox-1.5.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for mgc_blackbox-1.5.4-cp311-cp311-win_amd64.whl
mgc_blackbox-1.5.4-cp311-cp311-manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for mgc_blackbox-1.5.4-cp311-cp311-manylinux_2_17_x86_64.whl
mgc_blackbox-1.5.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for mgc_blackbox-1.5.4-cp311-cp311-macosx_11_0_arm64.whl
mgc_blackbox-1.5.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for mgc_blackbox-1.5.4-cp310-cp310-win_amd64.whl
mgc_blackbox-1.5.4-cp310-cp310-manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for mgc_blackbox-1.5.4-cp310-cp310-manylinux_2_17_x86_64.whl
mgc_blackbox-1.5.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for mgc_blackbox-1.5.4-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 22.9 MB

Release files / mgc_blackbox-1.5.4-cp312-cp312-win_amd64.whl

Download URL mgc_blackbox-1.5.4-cp312-cp312-win_amd64.whl
Size 1.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
e0013b8351642b1daf6f10a06ab53707520eacbb7e516a7c12ccca06230699dc
BLAKE2b-256 checksum
How to use checksums
e04bbc937cee301fa8352887a7892fdc47d01bb732e34462d83ab5f0d0c5bddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp312-cp312-manylinux_2_17_x86_64.whl

Download URL mgc_blackbox-1.5.4-cp312-cp312-manylinux_2_17_x86_64.whl
Size 5.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
09661b56d809ca925a62e11fe5366e37efe35535a0aa9323c44cde49cb97fa82
BLAKE2b-256 checksum
How to use checksums
c1f9eacfeba8144379a85a304fce07ba8a92deed29a22ae934f5615094f7dc2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp311-cp311-win_amd64.whl

Download URL mgc_blackbox-1.5.4-cp311-cp311-win_amd64.whl
Size 1.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7ca9c0f17245768b8f42c8f28128cde00999aadbc453187e4e972296aa4dd08d
BLAKE2b-256 checksum
How to use checksums
18a813be8e920f833aa36d33c28e68fb8dc72b5d0319a1e09a80086888e751da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp311-cp311-manylinux_2_17_x86_64.whl

Download URL mgc_blackbox-1.5.4-cp311-cp311-manylinux_2_17_x86_64.whl
Size 5.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7d70fb016634ae6fc8d8f022925a52a8ead4d853f5ef832e21b711d849ee8235
BLAKE2b-256 checksum
How to use checksums
18bf83bda47b419020a417c1e2f566f6d883d9175f1c1dd99ff0e0a3aad236a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL mgc_blackbox-1.5.4-cp311-cp311-macosx_11_0_arm64.whl
Size 2.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d28db84c0b9463a294ed4b50c5479dc27e52b073e72d0a742863a7a402e87ec7
BLAKE2b-256 checksum
How to use checksums
fce0cff6cdc4aa91eaab8d29568c1dacf9037fdcb16a42ba65146b81b9e136b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp310-cp310-win_amd64.whl

Download URL mgc_blackbox-1.5.4-cp310-cp310-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b4f7c64bd1fda6dd532ec75150de6932eea36a22623ad382d0f0622c9d9247d2
BLAKE2b-256 checksum
How to use checksums
ab13b091e38faac78d4a8b382a621faf7e99dea3e022907e04a287f6b1855b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp310-cp310-manylinux_2_17_x86_64.whl

Download URL mgc_blackbox-1.5.4-cp310-cp310-manylinux_2_17_x86_64.whl
Size 4.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d7a35f0dc400aa51c783b95d207133e272c0db4fce746fe7fd8514ab4d0552b5
BLAKE2b-256 checksum
How to use checksums
52799f6a7560b5492c54aadae1b5ed02cdc5a4a4279b9802963a08f3b3018124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / mgc_blackbox-1.5.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL mgc_blackbox-1.5.4-cp310-cp310-macosx_11_0_arm64.whl
Size 2.0 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8e2bf8150f1f49c193c640998ee560a632f06d13e75b842ec468c2e7e53ae1cc
BLAKE2b-256 checksum
How to use checksums
b68111b02db5798903abd06115c7dedc9de405c74c27a8f1e5cbb3af14215c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for mgc-blackbox 1.5.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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