Spaces:
Running
A newer version of the Gradio SDK is available:
6.1.0
title: π₯ Memvid MCP Server - Video-based AI Memory Storage
emoji: π₯
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: true
license: mit
short_description: MCP server storing AI memories in MP4 videos with QR codes
models:
- sentence-transformers/all-MiniLM-L6-v2
tags:
- mcp-server-track
- Agents-MCP-Hackathon
- model-context-protocol
- video-memory
- semantic-search
- ai-agents
- memvid
- faiss
- huggingface
π₯ Memvid MCP Server
An advanced Model Context Protocol (MCP) server that stores AI conversation memories in MP4 video files using QR codes and semantic embeddings. Built for the Hugging Face Hackathon - MCP Server Track.
π Live MCP Endpoint
https://eldarski-memvid-mcp-server.hf.space/gradio_api/mcp/sse
β¨ Features
- π¬ Video Memory Storage: Store text chunks in MP4 files with QR code encoding
- π Lightning-Fast Search: Semantic similarity search using FAISS embeddings
- π¬ Interactive Chat: Converse with your stored memories using AI
- βοΈ Cloud Integration: Automatic backup to HuggingFace datasets
- π§ 24 MCP Tools: Comprehensive memory management via MCP protocol
- π 91.7% Functional: Real working implementation with cloud storage
π― Quick Start
Add to MCP Client (Cursor, Claude Desktop, etc.)
{
"mcpServers": {
"memvid-server": {
"url": "https://eldarski-memvid-mcp-server.hf.space/gradio_api/mcp/sse"
}
}
}
Basic Workflow
- Store memories:
store_memory(text, client_id) - Build video:
build_memory_video(client_id, memory_name) - Search:
search_memory(query, client_id, memory_name) - Chat:
chat_with_memory(query, client_id, memory_name)
π§ Available MCP Tools
Memory Operations
store_memory- Store text chunks in video memorybuild_memory_video- Build MP4 memory from stored chunkssearch_memory- Semantic search in memory videoschat_with_memory- Interactive chat with memorylist_memories- List all memories for a clientget_memory_stats- Get memory usage statisticsdelete_memory- Delete specific memory videosstore_document- Store document content in memory
HuggingFace Dataset Integration
save_to_hf_dataset- Save client data to specific HF datasetload_from_hf_dataset- Load client data from HF datasetlist_hf_datasets- List available HF datasetscreate_hf_dataset- Create new HF datasetget_storage_info- Get HF storage connection statusbackup_client_data- Backup to default HF datasetrestore_client_data- Restore from default HF dataset
[## π¬ Demo Video
[Link to demo video showing MCP server in action]](https://youtu.be/dnRH8NckB5A)
ποΈ How It Works
This MCP server uses the innovative memvid library to:
- Encode text chunks into QR codes embedded in MP4 video frames
- Generate semantic embeddings using sentence-transformers
- Create FAISS indexes for lightning-fast similarity search
- Enable AI chat with stored memories using context retrieval
- Backup everything to HuggingFace datasets for persistence
Each client gets isolated storage with their own memory videos and embeddings.
π Test Results
- β 91.7% Success Rate (22/24 tools working)
- β Real Cloud Storage integration with HuggingFace
- β PyTorch Compatibility solved for production deployment
- β Memory Operations fully functional
- β Search & Chat working with semantic embeddings
π οΈ Technical Stack
- Gradio - Web interface and MCP server
- Memvid - Video-based memory storage
- FAISS - Similarity search
- Sentence Transformers - Text embeddings
- HuggingFace - Cloud dataset storage
π Hackathon Submission
Track: MCP Server / Tool
Tags: mcp-server-track
Status: Production-ready with 91.7% functionality
Innovation: First MCP server to use video files for AI memory storage
π License
MIT License - Feel free to use and modify!
π€ Contributing
Built for the HuggingFace Hackathon. Contributions welcome!