Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-ulebule-clipgrab": {
"args": [
"-y",
"@vscode/vsce"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP server that saves the image currently on the system clipboard to a
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@vscode/vsce' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @vscode/vsce against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / productivity
Dynamic problem-solving through sequential thought chains
Persistent memory using a knowledge graph
An autonomous agent that conducts deep research on any data using any LLM providers
🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, distributed swarm intelligence, RAG integration, and native Claude Code / Codex Integration
MCP Security Weekly
Get CVE alerts and security updates for io.github.ulebule/clipgrab and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
mcp-name: io.github.ulebule/clipgrab
An MCP server that saves the image currently on the system clipboard to a file (PNG or JPG).
Many AI agents can read image files but cannot access the system clipboard. ClipGrab bridges that gap: copy an image (e.g. a screenshot), call the tool, and get back a path to a saved image on disk that the agent can open.
By default the image is saved to the current working directory — the folder the agent runs from.
requirements.txt): Pillow, mcp[cli]wl-clipboard (wl-paste) or xclip for the clipboard fallback.Run directly with uv (no install step):
uvx clipgrab-mcp
Or install with pip:
pip install clipgrab-mcp
clipgrab-mcp
python3 -m venv .venv
./.venv/bin/pip install -r requirements.txt
save_clipboard_image(directory?, filename?, image_format?) → saves the
clipboard image and returns the absolute path.
directory — defaults to the current working directory (created if missing).
Can also be set via the CLIPGRAB_DEFAULT_DIR environment variable.filename — defaults to a timestamped name (clipboard-YYYYMMDD-HHMMSS).image_format — "png" (default) or "jpg".clipboard_has_image() → returns true/false../.venv/bin/python mcp_server.py
ClipGrab ships as a VS Code extension that registers the MCP server
automatically — it then appears under Extensions view → MCP Servers and
starts on demand. On first use the extension creates its own Python virtual
environment and installs the dependencies, so you only need Python 3.10+ on your
PATH (configurable via the clipgrab.pythonPath setting).
Develop / try it:
F5 to launch the Extension
Development Host.ClipGrab MCP server and its
save_clipboard_image tool are available.Package a .vsix for sharing:
npm install -g @vscode/vsce
vsce package
A ready-to-use config lives in .vscode/mcp.json:
{
"servers": {
"clipgrab": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/mcp_server.py"],
"cwd": "${workspaceFolder}"
}
}
}
Then open .vscode/mcp.json and start the clipgrab server (or use the Command
Palette → "MCP: List Servers").
Point any MCP client at the published PyPI package over stdio:
{
"servers": {
"clipgrab": {
"command": "uvx",
"args": ["clipgrab-mcp"]
}
}
}
ClipGrab is described for registries by server.json and is
published to the official MCP registry
under the name io.github.ulebule/clipgrab.
ImageGrab.grabclipboard() (Windows /
macOS, and Linux with a recent Pillow). On Linux it falls back to wl-paste /
xclip.MIT