Python | FastAPI | Next.js | SUI | Walrus | MCP
The decentralized, verifiable knowledge infrastructure for autonomous agents.
Membrane is a comprehensive platform that provides persistent, verifiable, and shareable memory for AI agents through the Model Context Protocol (MCP). Built on the SUI blockchain for immutable cryptographic state and the Walrus protocol for decentralized blob storage.
π Try it here
| Dashboard | Memories | Auth |
|---|---|---|
![]() |
![]() |
![]() |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Membrane Platform β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββββββββββ βββββββββββββββββββ β
β β Frontend β β Multi-tenant β β
β β Dashboard β β MCP Server β β
β β β β β β
β βββββββββββββββββββ βββββββββββββββββββ β
β β β β
β ββββββββββββββββββββββββ βΌββββββββββββββββββββββββ
β β
β βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββ
β β SUI Blockchain β β
β β β’ Cryptographic Proofs β β
β β β’ Tamper Detection β β
β β β’ Memory Provenance β β
β βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββ
β β
β βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββ
β β Walrus Protocol β β
β β β’ Decentralized Storage β β
β β β’ Memory Payloads & Artifacts β β
β β β’ Blob Management β β
β βββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Membrane leverages the Sui blockchain to create an immutable, verifiable record of agent memory.
What exactly gets anchored on Sui?
- Memory Hash: A cryptographic hash of the memory payload ensuring data integrity.
- Metadata: Contextual information about the memory (e.g., source, tags, agent ID).
- Walrus Blob ID: The decentralized storage identifier pointing to the actual memory payload stored on Walrus.
- Timestamp: An immutable record of when the memory was created or modified.
Why does this matter? Anchoring this data on-chain guarantees Memory Provenance and Tamper Detection. AI agents and human users can mathematically verify that a piece of information existed at a specific time and has not been secretly altered. This is crucial for high-stakes agentic workflows where trust, auditability, and shared context are required.
membrane/
βββ src/membrane/ # π Multi-tenant MCP API Server
β βββ api/ # REST endpoints
β βββ server.py # FastMCP implementation
β βββ memory_manager.py # Memory coordination
β βββ retrieval.py # Hybrid search engine
β
βββ frontend/ # π¨ Agent Control Dashboard
β βββ app/ # Next.js application
β βββ lib/ # API clients & configuration
β βββ public/ # Static assets
β
βββ tests/ # π§ Integration & Unit Tests
βββ test_api.py # API test suite
βββ test_connect.py # Walrus/Sui connection tests
- Python 3.11+
- Node.js 18+
- npm 8+
- SUI Wallet with testnet tokens
# Navigate to frontend
cd frontend
# Install dependencies
npm install
# Start development server
npm run dev
# Open http://localhost:3000# Navigate to project root
cd membrane
# Set up virtual environment
python -m venv .venv
source .venv/Scripts/activate # Windows
# source .venv/bin/activate # Mac/Linux
# Install backend dependencies
pip install -e .
# Start ASGI application
uvicorn membrane.app:create_asgi_app --factory --reload --port 8000
# Server available at http://localhost:8000# Database
DATABASE_URL="postgresql://user:pass@localhost:5432/membrane"
# Security
ENCRYPTION_KEY="your-secure-32-byte-key"
# Walrus Storage (REQUIRED)
WALRUS_PUBLISHER_URL="https://walrus-testnet-publisher.natsai.xyz"
WALRUS_AGGREGATOR_URL="https://walrus-testnet-aggregator.natsai.xyz"
# SUI Configuration (REQUIRED)
SUI_RPC_URL="https://fullnode.testnet.sui.io:443"
SUI_WALLET_ADDRESS="your-sui-wallet-address"
SUI_PRIVATE_KEY="your-sui-private-key"NEXT_PUBLIC_API_URL=http://localhost:8000/apiFrontend Dashboard
- Vercel (Recommended):
cd frontend && vercel - Netlify:
cd frontend && npx netlify deploy --prod
Enterprise API Server
- Render: Connect repository and deploy as ASGI web service
- Docker:
docker build -t membrane-api . - Railway:
railway up
- β Identity Provisioning - Claim Membrane IDs
- β API Key Management - Generate and rotate keys
- β Telemetry - Real-time metrics and system overview
- β SUI Integration - Dapp kit wallet connection
- β Configuration Export - Instant MCP manifest generation
- β 14 MCP Tools - Complete memory orchestration
- β Hybrid Search - Metadata + Semantic retrieval (FastEmbed)
- β Multi-Tenant - Isolated namespaces and keys
- β REST API - System orchestration and metrics
- β Artifact Storage - Image, PDF, and text blobs
- β FastMCP Integration - Standardized context protocol
- β PostgreSQL Indexing - Ultra-fast metadata lookups
- β Walrus Blob Storage - Unlimited payload size
- β SUI Verification - Immutable state proofs
- 100% Real Blockchain - Immutable state records and transaction references
- API Key Authentication - Secure access to namespaces
- Cryptographic Verification - SHA256 + HMAC validation
- AES-CBC Encryption - Secure sensitive memory payloads
- PostgreSQL Isolation - Multi-tenant RLS and namespace boundaries
- API Docs: Available at
http://localhost:8000/docswhen server is running. - MCP Protocol: Refer to the Model Context Protocol official specification.
# Run the test suite
pytest tests/cd frontend
npm run lint
npm run build- Long-Term Memory - Agents that remember past conversations
- Shared Context - Multiple agents collaborating on the same project
- Verifiable Truth - Audit trails for agent decision making
- Knowledge Graphs - Semantic relationship tracking
- Agent Orchestration - Managing state across distributed workers
- Compliance - Immutable records of automated actions
- Speed: Sub-100ms semantic search execution
- Efficiency: CPU-optimized (no GPU required)
- Verification: On-chain Walrus blobs via SUI
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Issues: Use GitHub Issues for bug reports
- Discussions: Use GitHub Discussions for questions
Membrane is ready for deployment with active SUI blockchain integration and Walrus storage.
Built with β€οΈ by the Membrane Team



