Clipboard to Supabase MCP Helper
A local agent that monitors the system clipboard, uploads any copied image to Supabase Storage, then writes the public (or signed) URL back to the clipboard.
Features
- Zero-click image hosting: Copy an image, get a URL instantly
- Low latency: Under 800ms from copy to URL
- Cross-platform: Works on macOS, Windows, and Linux
- MCP integration: Expose clipboard image upload as an MCP endpoint
- Auto-start: Configure to run at system startup
- Efficient detection: Hash-based deduplication with low CPU usage
Prerequisites
- Node.js 18+
- Supabase account with Storage enabled
- Platform-specific dependencies:
- macOS:
pngpaste
(brew install pngpaste
) - Windows/Linux: Native OS clipboard access
- macOS:
Installation
- Clone the repository:
- Install dependencies:
- Create a
.env
file based on.env.example
:
- Test your Supabase connection:
- Build the project:
- Install as a system service:
For macOS:
For Linux:
For Windows:
Usage
Once installed and running, the helper will:
- Monitor your clipboard for image changes (polling every 300ms)
- Upload any copied images to your Supabase bucket
- Place the public URL back in your clipboard, ready to paste
Running the Service
The clipboard helper can be run in two modes:
Stdio Mode (Default)
This runs the MCP server with StdioServerTransport, ideal for command-line usage.
HTTP Mode
This runs an Express HTTP server on port 3333 (configurable) with a proper REST API endpoint.
MCP Integration
The helper exposes the following MCP endpoints:
Upload Clipboard Image
With HTTP server mode:
Request body:
Response:
Cleanup Old Files
The helper also provides an MCP endpoint to manually trigger cleanup of old files.
Request body:
Response:
The days
parameter is optional. If not provided, it will use the value from the RETENTION_DAYS
environment variable.
How It Works
- Change Detection: Polls clipboard every 300ms and computes SHA-1 hash of image data
- Deduplication: Only processes new or changed images based on hash comparison
- Platform Adaptation: Uses platform-specific methods to capture clipboard images
- Supabase Integration: Uploads images to your Supabase bucket with unique UUIDs
- MCP Endpoint: Exposes functionality to AI agents via Model Context Protocol
- Automatic Cleanup: Periodically removes images older than the configured retention period (default: 30 days)
Platform-Specific Notes
macOS
- Requires
pngpaste
: Install withbrew install pngpaste
- Uses LaunchAgents for auto-start
Windows
- Uses PowerShell's System.Windows.Forms.Clipboard for image capture
- Uses Windows Registry for auto-start
Linux
- Uses xclip (X11) or wl-paste (Wayland) for clipboard access
- Uses systemd for auto-start
Development
License
MIT
local-only server
The server can only run on the client's local machine because it depends on local resources.
시스템 클립보드를 모니터링하고, 복사된 이미지를 자동으로 Supabase 저장소에 업로드하고, 클립보드 내용을 공개 URL로 바꿔서 즉시 공유할 수 있는 로컬 에이전트입니다.
Related MCP Servers
- -securityFlicense-qualityA bridge between AI assistants like GitHub Copilot and Supabase databases, allowing AI to understand schema, assist with query writing, and provide context-aware suggestions related to your data model.Last updated -
- -securityFlicense-qualityA multi-tenant service that automatically monitors Supabase database changes, generates OpenAI embeddings, and maintains synchronized vector search capabilities for each tenant's projects.Last updated -
- -securityFlicense-qualityA Model Context Protocol server that integrates with Supabase, allowing AI assistants to access and manipulate store data through tools for product searching, filtering, and analysis.Last updated -
- -securityAlicense-qualityA high-performance server that provides clipboard access for AI assistants, specifically designed to solve the VSCode + WSL2 image clipboard limitation when using Claude.Last updated -72MIT License