Zib — servidor MCP (zib-vault)
Beta. O Zib é recente e ainda está em revisão. Guarde as suas próprias cópias de tudo o que for importante.
O Zib não substitui um testamento e não tem valor legal. Não guarde palavras-passe, PINs nem códigos de acesso num cofre.
O Zib guarda, durante 5 anos, uma carta cifrada e alguns ficheiros pequenos para as pessoas que escolher. Este pacote permite a um agente de IA (por MCP) ou a si (pela linha de comandos) criar, guardar e abrir cofres Zib. É gratuito e não precisa de conta.
Como o protege
- Cifrado no seu computador. AES-256-GCM, com chaves derivadas por PBKDF2-SHA256 (600 000 iterações, sal aleatório). O servidor do Zib só recebe identificadores aleatórios e texto cifrado. Não consegue ler o seu cofre.
- A frase fica fora da conversa. As ferramentas leem e escrevem a frase de recuperação de 9 palavras e as 4 partes
em ficheiros locais criados com permissões
0600. Nenhuma ferramenta devolve a frase, uma parte ou a carta decifrada (a não ser que peça expressamente para ler a carta na conversa). - Abrir um cofre precisa de si. A ferramenta
zib_open_vaultpede-lhe confirmação através do cliente MCP (elicitation). Se o cliente não souber pedir, a abertura é recusada, a menos que arranque o servidor comZIB_ALLOW_OPEN=1. - O mesmo formato do site. Os cofres criados aqui abrem no site e vice-versa (formato 2; os cofres antigos, de formato 1, continuam a abrir).
- Sem conta e sem rastreio. Em vez de um captcha, guardar um cofre custa ao seu computador alguns segundos de prova de trabalho. Depois de guardados, os cofres não podem ser alterados e são apagados ao fim de 5 anos.
Instalação
Requer Python 3.10 ou mais recente.
uvx zib-vault # arranca o servidor MCP em stdio
# ou
pip install zib-vault
Configuração MCP
Para clientes como o Claude Desktop ou o Cursor:
{
"mcpServers": {
"zib": { "command": "uvx", "args": ["zib-vault"] }
}
}
Ferramentas
| Ferramenta | O que faz | Devolve |
|---|---|---|
zib_new_phrase |
Gera uma frase de recuperação de 9 palavras num ficheiro novo (0600). Copie-a para papel. | caminho |
zib_create_vault |
Cifra localmente uma carta (ficheiro ou texto) e anexos opcionais; com split escreve também 4 ficheiros de partes (quaisquer 2 abrem o cofre). Nada é enviado. |
caminhos, validade |
zib_store_vault |
Envia o cofre cifrado (resolve a prova de trabalho em poucos segundos). | id, validade |
zib_vault_info |
Com a frase (ou 2 partes), verifica se o cofre existe e quando expira. Não decifra. | existe, validade |
zib_open_vault |
Depois da sua confirmação, decifra para uma pasta (0700, ficheiros 0600). | caminhos |
Através deste pacote, os anexos estão limitados a 3 MB no total.
Linha de comandos
zib-vault new-phrase ~/zib/frase.txt
zib-vault create ~/zib/frase.txt ~/zib/cofre.json --letter-file carta.txt --attach foto.jpg --split-into ~/zib/partes
zib-vault store ~/zib/cofre.json
zib-vault info --phrase-file ~/zib/frase.txt
zib-vault open --part-files ~/zib/partes/zib-part-1-of-4.txt ~/zib/partes/zib-part-3-of-4.txt ~/zib/aberto
Depois de passar a frase para papel e de entregar as partes a pessoas de confiança, apague os ficheiros de que já não precisa.
Desenvolvimento
pip install -e ".[test]"
pytest # testes unitários, vetores cruzados e testes MCP em stdio
ZIB_E2E=1 pytest -m e2e # fala também com o servidor de produção (guarda 2 cofres de teste pequenos)
Os testes com vetores cruzados confirmam que os cofres feitos pelo JavaScript do site abrem em Python e vice-versa
(tests/vectors/, gerados de novo com node tests/js/make_vectors.mjs; as frases que lá estão são dados de teste descartáveis).
Defina ZIB_WEB_DIR com uma cópia do código do site para correr as verificações em JavaScript e o Worker local.
ZIB_BASE_URL aponta o cliente para outro servidor (https, ou localhost para desenvolvimento).
Licença
MIT. Ver LICENSE.
English summary
Zib (beta) keeps an encrypted letter and a few small files for the people you choose, for 5 years.
zib-vault is its MCP server (stdio) and command-line tool. Everything is encrypted locally (AES-256-GCM,
PBKDF2-SHA256); the server only sees random ids and ciphertext. The recovery phrase and the Shamir parts stay
out of the chat: tools read and write them as 0600 files and never return them. Opening a vault requires the
human's confirmation (MCP elicitation, or ZIB_ALLOW_OPEN=1 set by the human). Storing uses a few seconds of
proof of work instead of a captcha. Zib is not a will and must not be used to store passwords.
Install: uvx zib-vault (Python 3.10+). Tools: zib_new_phrase, zib_create_vault, zib_store_vault,
zib_vault_info, zib_open_vault. Website: https://zib-vault.hmv-pt.workers.dev · Source:
https://github.com/Santiago1971/zib · License: MIT.
Metadata
Release files for zib-vault 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zib_vault-0.1.0.tar.gz | 32.7 kB | With provenance | Details for zib_vault-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zib_vault-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zib_vault-0.1.0-py3-none-any.whl |
Total release size: 59.0 kB
Release files / zib_vault-0.1.0.tar.gz
| Download URL | zib_vault-0.1.0.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd19792d0b0277fef20a9587b17c7b8b9d1eb7295e4baee712326467a347798a
|
|
BLAKE2b-256 checksum How to use checksums |
ce034c28fdb54c75e6f8637b4b1c6b1f50058aa4f7a1f6e9b59cc1a369239495
|
| 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 Nov 29, 2026.
Transparency logRelease files / zib_vault-0.1.0-py3-none-any.whl
| Download URL | zib_vault-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d87ff169d1fa389bc605ebbe27933c31aa7638b70dc60de7d4e8c7fe5ff913d
|
|
BLAKE2b-256 checksum How to use checksums |
bff222ce484119a5019ef932ec9ec2d458f4e0e983969a83fc995cf87c26b4d6
|
| 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 Nov 29, 2026.
Transparency logSecurity for zib-vault 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.
Attestation for zib_vault-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 Nov 29, 2026.
Transparency logA 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.