Agent Filetree Memory MCP
Agent Filetree Memory MCP is a framework-neutral memory service for agents. It stores a simple virtual Markdown file tree in PostgreSQL while keeping paths and document content encrypted at rest.
The project is designed around four boundaries:
- The host verifies a short-lived capability and selects the workspace and durable agent profile. Models and UI components cannot choose or widen those identifiers.
- Every document and directory version is immutable and encrypted with a fresh AES-256-GCM data key.
- PostgreSQL is injected through an async SQLAlchemy session factory. Standalone users may construct one from a static database URL; hosting platforms may supply their own credential-aware factory.
- MCP is an adapter. The application service can also be embedded directly in another Python service.
The initial tool surface is intentionally small: list, read, write, append, and delete. Writes use compare-and-swap versions and idempotency keys. Delete denies access immediately and makes encrypted data eligible for hard deletion after its configured retention window. The host must run the packaged janitor; the request-serving process does not schedule cleanup itself.
Status
This project is an early alpha. APIs, migrations, and data formats may change before 1.0.
Installation
Install the complete standalone package from PyPI:
pip install 'agent-filetree-memory-mcp[all]'
The base package contains the framework-neutral domain and application layers.
The postgres, mcp, app, and web extras are available for narrower
integrations. See the standalone guide
for database setup, security-sensitive configuration, and server startup.
Intended package layers
agent_filetree_memory.domain: dependency-light identifiers, paths, results, and errors.agent_filetree_memory.application: authorization-first memory operations.agent_filetree_memory.crypto: envelope encryption and pluggable data-key providers.agent_filetree_memory.postgres: PostgreSQL persistence and packaged Alembic migrations.agent_filetree_memory.control_plane: optional workspaces, durable agent profiles, membership, independent management/content grants, and audit.agent_filetree_memory.mcp: headless MCP tools.agent_filetree_memory.mcp_app: an optional current-capability browser and editor.agent_filetree_memory.web: the version-matched management API composition and bundled React UI.
Security properties
The service authorizes before storage lookup or decryption. Missing and unauthorized documents share the same public failure shape. Database rows contain opaque routing, authorization, version, and lifecycle fields; human-readable paths, titles, tags, snippets, Markdown, and directory manifests are encrypted.
See SECURITY.md for the threat model and disclosure guidance. See docs/authentication.md for the two-layer transport and durable agent-identity design. See docs/standalone.md for running the packaged stdio server and retention janitor from a static PostgreSQL URL. See docs/management-ui.md for mounting the bundled administrative UI with a host-supplied identity dependency.
The optional control plane is provider-neutral. Hosts inject verified principals, including a platform-administrator boolean, and may inject an external workspace-entitlement resolver. Platform administrators can inventory workspace metadata and create workspaces, but must explicitly take a workspace role before agent slugs become visible. Workspace administration and explicit agent management never imply content access or decryption.
License
Apache License 2.0. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_filetree_memory_mcp-0.3.0.tar.gz.
File metadata
- Download URL: agent_filetree_memory_mcp-0.3.0.tar.gz
- Upload date:
- Size: 309.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9666b2e4086677e9bc3c4d595cd34781c4778c783b0c41850beba547ea8d55d2
|
|
| MD5 |
65f4f0abad40ee23e3e0ad2cdb6fc5e8
|
|
| BLAKE2b-256 |
b986fbaab989933b73494e89bde1b4e8d7978404e9b0e6b27847401a4cbec57a
|
Provenance
The following attestation bundles were made for agent_filetree_memory_mcp-0.3.0.tar.gz:
Publisher:
publish.yml on EmilioEsposito/agent-filetree-memory-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_filetree_memory_mcp-0.3.0.tar.gz -
Subject digest:
9666b2e4086677e9bc3c4d595cd34781c4778c783b0c41850beba547ea8d55d2 - Sigstore transparency entry: 2669391595
- Sigstore integration time:
-
Permalink:
EmilioEsposito/agent-filetree-memory-mcp@7b7ecc91dba4148775d1588f63fdbd37ff1e9c83 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/EmilioEsposito
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b7ecc91dba4148775d1588f63fdbd37ff1e9c83 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agent_filetree_memory_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: agent_filetree_memory_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 241.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dd369e9b1a23c2e8dd73191d8adf4faacdfd6a6a72a72a7736791926c9b8a1a
|
|
| MD5 |
6de004ff2a5d9906f7781929959cf992
|
|
| BLAKE2b-256 |
767d7c22937ae003b6e892c998ec9e2577d48be7525895e785117a90079057e0
|
Provenance
The following attestation bundles were made for agent_filetree_memory_mcp-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on EmilioEsposito/agent-filetree-memory-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_filetree_memory_mcp-0.3.0-py3-none-any.whl -
Subject digest:
9dd369e9b1a23c2e8dd73191d8adf4faacdfd6a6a72a72a7736791926c9b8a1a - Sigstore transparency entry: 2669391668
- Sigstore integration time:
-
Permalink:
EmilioEsposito/agent-filetree-memory-mcp@7b7ecc91dba4148775d1588f63fdbd37ff1e9c83 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/EmilioEsposito
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b7ecc91dba4148775d1588f63fdbd37ff1e9c83 -
Trigger Event:
release
-
Statement type: