1. Conduid
  2. Files
  3. Picgo MCP
MCP server · Files

Picgo MCP

picgo mcp, 调用本地picgo,上传照片并返回url

34Low

Scored 6 months ago · breakdown

About Picgo MCP

Picgo MCP is an MCP server in the Files category: picgo mcp, 调用本地picgo,上传照片并返回url.

Install

From source
git clone https://github.com/0xHertz/picgo-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Picgo MCP

Powered by Claude · Grounded in docs

I know everything about Picgo MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

PicGo MCP Server

A Model Context Protocol (MCP) server for PicGo image upload functionality. This MCP allows you to upload images through PicGo and get their URLs directly from your opencode environment.

Features

  • 📤 Upload single images using PicGo
  • 📦 Upload multiple images in batch
  • ⚙️ View current PicGo configuration
  • 🔧 Configurable PicGo executable path

Prerequisites

  • Node.js (v16 or higher)
  • PicGo installed and configured
  • opencode with MCP support

Installation

  1. Clone or download this repository:
git clone <repository-url>
cd picgo-mcp
  1. Run the installation script:
./install.sh

Or manually:

npm install
npm run build
  1. Configure PicGo if you haven't already:
# Install an uploader (example: qiniu)
picgo install qiniu

# Configure your uploader
picgo config set uploader qiniu

Configuration

The MCP server will look for PicGo executable in this order:

  1. ~/.picgo-mcp.json (custom configuration)
  2. Common locations (/usr/local/bin/picgo, /usr/bin/picgo, etc.)
  3. System PATH

Custom Configuration

Create or edit ~/.picgo-mcp.json:

{
  "executablePath": "/path/to/your/picgo"
}

The installation script creates a default config file that you can modify.

Usage with opencode

Add this MCP to your opencode configuration:

{
  "mcpServers": {
    "picgo": {
      "command": "/path/to/picgo-mcp/dist/index.js"
    }
  }
}

Available Tools

upload_image

Upload a single image file.

Parameters:

  • image_path (string, required): Path to the image file to upload

Returns:

  • success (boolean): Upload status
  • url (string): Uploaded image URL
  • imagePath (string): Absolute path of uploaded image

upload_images

Upload multiple image files.

Parameters:

  • image_paths (array of strings, required): Array of image file paths

Returns:

  • success (boolean): Overall operation status
  • results (array): Results for each image
  • totalUploaded (number): Count of successful uploads
  • totalFailed (number): Count of failed uploads

get_picgo_config

Get current PicGo configuration.

Returns:

  • success (boolean): Operation status
  • config (object): PicGo configuration
  • picGoPath (string): PicGo executable path being used

Example Usage

Once configured with opencode, you can use the tools like:

Upload image: /path/to/image.jpg

The MCP will handle the PicGo upload process and return the image URL.

Troubleshooting

PicGo not found

  • Ensure PicGo is installed: npm install -g picgo
  • Check the executable path in ~/.picgo-mcp.json
  • Make sure the path is correct and executable

Upload fails

  • Verify PicGo configuration: picgo config get
  • Check your uploader settings
  • Ensure the image file exists and is readable

Permission errors

  • Make sure the PicGo executable has execution permissions
  • Check file permissions for the images you're uploading

Development

# Development mode with auto-rebuild
npm run dev

# Build once
npm run build

# Start the built server
npm start

License

MIT License

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Picgo MCP

How do I install Picgo MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Picgo MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Picgo MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.