npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@monsoft/mcp-vercel-blob

v0.1.0

Published

MCP server for interacting with Vercel Blob storage

Readme

Vercel Blob MCP Server

A Model Context Protocol (MCP) server that provides seamless integration with Vercel Blob storage. This server enables AI assistants and other MCP clients to upload, manage, and interact with blob storage directly.

Features

  • Upload blobs - Store files and data in Vercel Blob storage
  • Delete blobs - Remove one or multiple blobs
  • List blobs - Browse and filter stored blobs with pagination
  • Get metadata - Retrieve blob information without downloading
  • Copy blobs - Duplicate blobs to new locations

Installation

npm install @monsoft/mcp-vercel-blob

Prerequisites

You need a Vercel Blob read-write token. You can get this from your Vercel dashboard:

  1. Go to your Vercel project
  2. Navigate to StorageBlob
  3. Create a new Blob store if you don't have one
  4. Copy the read-write token

Usage

Claude Desktop Configuration

Add this to your Claude Desktop configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
    "mcpServers": {
        "vercel-blob": {
            "command": "npx",
            "args": ["-y", "@monsoft/mcp-vercel-blob", "--token", "YOUR_VERCEL_BLOB_READ_WRITE_TOKEN"]
        }
    }
}

Running with stdio (Default)

npx mcp-vercel-blob --token=YOUR_BLOB_READ_WRITE_TOKEN

Or set the environment variable:

export BLOB_READ_WRITE_TOKEN=your_token_here
npx mcp-vercel-blob

Running with SSE (Server-Sent Events)

npx mcp-vercel-blob --token=YOUR_TOKEN --run-sse --port=3002

Configuration Options

| Option | Alias | Environment Variable | Default | Description | | ----------- | ----- | ----------------------- | ------- | --------------------------------------- | | --token | -t | BLOB_READ_WRITE_TOKEN | - | Vercel Blob read-write token (required) | | --run-sse | -s | RUN_SSE | false | Run with SSE transport | | --port | -p | PORT | 3002 | HTTP server port for SSE |

Available Tools

1. vercel-blob-put-file

Upload a file to Vercel Blob storage by providing the full file path. The file will be automatically read, converted, and uploaded.

Parameters:

  • filePath (string, required) - Full path to the file to upload (e.g., "/Users/name/image.jpg")
  • pathname (string, optional) - Destination pathname in blob storage. If not provided, uses the original filename
  • addRandomSuffix (boolean, optional, default: false) - Add random suffix to prevent conflicts
  • cacheControlMaxAge (number, optional) - Cache duration in seconds (min: 60)

Example:

{
    "filePath": "/Users/john/Pictures/photo.jpg",
    "pathname": "images/photo.jpg",
    "addRandomSuffix": true
}

Response:

{
    "success": true,
    "message": "File uploaded successfully from /Users/john/Pictures/photo.jpg",
    "blob": {
        "url": "https://blob.vercel-storage.com/images/photo-abc123.jpg",
        "downloadUrl": "https://blob.vercel-storage.com/images/photo-abc123.jpg",
        "pathname": "images/photo-abc123.jpg",
        "contentType": "image/jpeg"
    },
    "fileInfo": {
        "originalPath": "/Users/john/Pictures/photo.jpg",
        "size": 1048576,
        "sizeFormatted": "1.00 MB",
        "detectedContentType": "image/jpeg"
    }
}

Supported File Types:

  • Images: .jpg, .jpeg, .png, .gif, .webp, .svg
  • Documents: .pdf, .txt, .json, .xml, .csv
  • Media: .mp4, .mp3, .wav
  • Archives: .zip, .tar, .gz
  • Other files are uploaded as application/octet-stream

2. vercel-blob-put

Upload a file or data to Vercel Blob storage.

Parameters:

  • pathname (string, required) - Destination path for the blob (e.g., "images/photo.jpg")
  • content (string, required) - Content to upload (text or base64-encoded data)
  • contentType (string, optional) - MIME type (e.g., "image/jpeg", "text/plain")
  • addRandomSuffix (boolean, optional, default: false) - Add random suffix to prevent conflicts
  • cacheControlMaxAge (number, optional) - Cache duration in seconds (min: 60)
  • isBase64 (boolean, optional, default: false) - Whether content is base64-encoded

Example:

{
    "pathname": "images/photo.jpg",
    "content": "/9j/4AAQSkZJRg...",
    "contentType": "image/jpeg",
    "isBase64": true,
    "addRandomSuffix": true
}

Response:

{
    "success": true,
    "blob": {
        "url": "https://blob.vercel-storage.com/...",
        "downloadUrl": "https://blob.vercel-storage.com/...",
        "pathname": "images/photo-abc123.jpg",
        "contentType": "image/jpeg"
    }
}

3. vercel-blob-delete

Delete one or more blobs from storage.

Parameters:

  • urls (string | string[], required) - Single URL or array of URLs to delete

Example:

{
    "urls": ["https://blob.vercel-storage.com/image1.jpg", "https://blob.vercel-storage.com/image2.jpg"]
}

Response:

{
  "success": true,
  "message": "Successfully deleted 2 blob(s)",
  "deletedUrls": [...]
}

4. vercel-blob-list

List blobs with filtering and pagination.

Parameters:

  • prefix (string, optional) - Filter by pathname prefix (e.g., "images/")
  • limit (number, optional) - Maximum blobs to return (default: 1000)
  • cursor (string, optional) - Pagination cursor from previous response
  • mode (enum, optional) - "expanded" (all blobs) or "folded" (group by folders)

Example:

{
    "prefix": "images/",
    "limit": 10,
    "mode": "expanded"
}

Response:

{
  "success": true,
  "blobs": [...],
  "hasMore": false,
  "cursor": null,
  "totalReturned": 10
}

5. vercel-blob-head

Get blob metadata without downloading the content.

Parameters:

  • url (string, required) - Blob URL to inspect

Example:

{
    "url": "https://blob.vercel-storage.com/image.jpg"
}

Response:

{
    "success": true,
    "metadata": {
        "url": "https://blob.vercel-storage.com/image.jpg",
        "pathname": "image.jpg",
        "size": 1048576,
        "sizeFormatted": "1.00 MB",
        "uploadedAt": "2024-01-01T00:00:00.000Z",
        "contentType": "image/jpeg",
        "contentDisposition": "inline",
        "cacheControl": "public, max-age=31536000"
    }
}

6. vercel-blob-copy

Copy a blob to a new location.

Parameters:

  • fromUrl (string, required) - Source blob URL
  • toPathname (string, required) - Destination pathname
  • addRandomSuffix (boolean, optional, default: false) - Add random suffix

Example:

{
    "fromUrl": "https://blob.vercel-storage.com/original.jpg",
    "toPathname": "backup/original.jpg",
    "addRandomSuffix": true
}

Response:

{
  "success": true,
  "message": "Blob copied successfully",
  "blob": {
    "url": "https://blob.vercel-storage.com/backup/original-xyz789.jpg",
    "pathname": "backup/original-xyz789.jpg",
    ...
  }
}

Integration with fal-ai MCP

This MCP server works perfectly with the fal-ai MCP for image generation and editing workflows:

  1. Generate an image using fal-ai MCP
  2. Download the image locally
  3. Upload to Vercel Blob for permanent storage using the file path
  4. Use the blob URL for further processing or sharing

Example workflow with file path:

You can now simply tell Claude:

1. Generate an image using FLUX model
2. Upload the generated image file to Vercel Blob at "generated/flux-image.jpg"

Claude will automatically:

  • Use fal-ai MCP to generate and download the image
  • Use vercel-blob-put-file to upload it by providing the local file path
  • Return the permanent blob URL

Programmatic example:

// 1. Generate image with fal-ai (saves to local file)
const imagePath = '/path/to/generated-image.jpg';

// 2. Upload to Vercel Blob using file path (automatic)
// The tool reads, converts to base64, and uploads
const blob = await vercelBlobClient.putFile({
    filePath: imagePath,
    pathname: 'generated/image.jpg',
    addRandomSuffix: true,
});

// 3. Use the blob URL
console.log(`Image available at: ${blob.url}`);

Development

Build

npm run build

Validate

npm run validate

Watch Mode

npm run watch

Error Handling

All tools return a structured response with a success field:

Success:

{
    "success": true,
    "...": "..."
}

Error:

{
    "success": false,
    "error": "Error message here"
}

Security

  • Never commit your Vercel Blob token to version control
  • Use environment variables or secure configuration management
  • The token provides read-write access to your blob storage
  • Consider using different tokens for development and production

Links

License

MIT

Author

Monsoft Solutions