Pixeldrain

io.github.jkawamoto由 GitHub 帳號 jkawamoto 發布v0.9.1更新於 Oct 29, 2026

Upload, download, and share files, images, and text with Pixeldrain

已驗證STDIO僅桌面檔案與儲存媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理把文字、圖片與檔案上傳到 Pixeldrain 並下載檔案,回傳可分享的連結。

可以做什麼
  • 上傳一個或多個檔案(本機路徑、Base64 或 data URI),回傳檔案或相簿連結
  • 把純文字或 Markdown 當成檔案上傳並取得下載連結
  • 把 Pixeldrain 上的檔案下載到本機
  • 將多個上傳內容合併成單一相簿連結
適用情境
適合讓助理透過 Pixeldrain 公開連結分享生成的圖片、截圖、日誌等輸出,或不必開啟瀏覽器就把 Pixeldrain 上的檔案或相簿下載到本機。
執行需求
以本機程序方式執行,透過 pd mcp 指令啟動;pd 執行檔需以 Homebrew、go install 或預先編譯的執行檔安裝。可匿名使用;可選擇設定 PIXELDRAIN_API_KEY 環境變數,讓上傳歸屬於你的帳號。需要能連線到 Pixeldrain 的網路。
安裝前請注意
上傳內容會送往第三方服務 Pixeldrain 並以連結分享,請勿上傳機密或隱私資料。可選的 PIXELDRAIN_API_KEY 屬於憑證,應避免寫入共用設定。下載會在本機寫入檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pixeldrain,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

pd (Pixeldrain CLI & MCP Server)

[Go application] [Go Reference] [MIT License] [MCP Ready]

pd is a command-line interface, Model Context Protocol (MCP) server, and Go SDK for Pixeldrain.

It provides an easy way to upload, download, and share files or albums directly from your terminal, shell scripts, and AI workflows without needing to open a browser.

Features

  • Quick File & Media Sharing: Upload files from the command line and get a shareable Pixeldrain link instantly. Convenient for sharing AI-generated images, screenshots, or outputs in chats and forums.
  • AI & MCP Integration: Built-in MCP server (pd mcp) that lets AI tools (such as Claude Desktop and Cursor) upload and download files on your behalf.
  • Album Support: Combine multiple files into a single Pixeldrain album URL with --album.
  • End-to-End Encryption: Encrypt files client-side using age or SSH public keys before uploading.
  • Unix Pipeline Friendly: Pipe data directly from stdin or stream entire directories with tar.
  • Optional Account Binding: Works anonymously out of the box, or with your Pixeldrain API key to keep files organized in your account.

Quick Start

Upload Files & Media

Upload any file to Pixeldrain and receive a download link:

shell
pd upload artwork.png# => https://pixeldrain.com/u/xxxxxx

You can optionally specify a custom display name using the path:name syntax:

shell
pd upload output_0042.png:cyberpunk-city.png

Create Albums

Pass multiple files to group them into a single album. This is especially handy for collections of generated images or screenshots:

shell
pd upload --album "Neon Dreams" concept1.png concept2.png concept3.png# => https://pixeldrain.com/l/xxxxxx

Download Files & Albums

Download files back to your local environment:

shell
# Download a single file (saved to current directory by default)pd download https://pixeldrain.com/u/xxxxxx
# Download all files from an album without interactive promptspd download --all https://pixeldrain.com/l/xxxxxx
# Specify destination directory or filenamepd download -o ./downloads https://pixeldrain.com/u/xxxxxxpd download --filename custom.png https://pixeldrain.com/u/xxxxxx

MCP Server (AI Integration)

pd includes a built-in Model Context Protocol (MCP) server, allowing AI agents to upload text, images, and files directly to Pixeldrain.

Start the server via:

shell
pd mcp

Configuration (Claude Desktop / Cursor)

Add pixeldrain to your MCP configuration (e.g. claude_desktop_config.json):

json
{  "mcpServers": {    "pixeldrain": {      "command": "pd",      "args": ["mcp"],      "env": {        "PIXELDRAIN_API_KEY": "your_api_key_here"      }    }  }}

[!NOTE] Setting PIXELDRAIN_API_KEY is optional. If configured, files uploaded by the AI agent will belong to your Pixeldrain account.

Available MCP Tools:

  • upload_files: Upload one or more files (images, audio, archives) and return a file or album URL. Each file uses {name, data}, where data can be a local file path, Base64, or a Base64 data URI.
  • upload_text: Upload plain text or markdown as a file and return a download URL.
  • download_file: Download a file from Pixeldrain to the local machine.

Advanced Usage

Upload from STDIN (Logs, Diffs, Pipelines)

Pass - as the path to upload data from standard input (prepend -- to ensure - is not treated as a flag):

shell
# Upload command output or logscat build.log | pd upload -- -:build.log
# Upload a git diffgit diff | pd upload -- -:patch.diff

Upload a Directory

Stream and upload a directory archive directly without creating temporary files on disk:

shell
tar zcf - ~/Projects/my-app | pd upload -- -:my-app.tar.gz

End-to-End Encryption (E2EE)

Encrypt files locally before uploading with age or SSH public keys:

shell
# Encrypt with an age public key or SSH keypd upload --recipient "age1..." secret.pdfpd upload --recipient "ssh-ed25519 AAAA..." secret.pdf
# Encrypt for multiple recipients using a filepd upload --recipient-file recipients.txt secret.pdf

(Uploaded files will automatically have the .age extension).

To decrypt upon download, provide your private key with --identity:

shell
pd download --identity ~/.ssh/id_ed25519 https://pixeldrain.com/u/xxxxxx

Account Authentication

To associate uploads with your Pixeldrain account, provide your API key via the --api-key flag or the PIXELDRAIN_API_KEY environment variable:

shell
export PIXELDRAIN_API_KEY="your-api-key"pd upload file.zip
# Or via command flag:pd --api-key "your-api-key" upload file.zip

API keys can be generated at pixeldrain.com/user/api_keys.

Installation

Homebrew (macOS & Linux)

shell
brew tap jkawamoto/pixeldrainbrew install pixeldrain

Go Install

shell
go install github.com/jkawamoto/go-pixeldrain/cmd/pd@latest

Pre-built Binaries

Pre-compiled binaries for macOS, Linux, and Windows are available on GitHub Releases.

Go Library Usage

go-pixeldrain also provides a Go client library for the Pixeldrain REST API.

See the package documentation on pkg.go.dev for API reference and usage examples.

License

This software is released under the MIT License.

來源:README.md,提交 71f8495

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.9.1最新Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分