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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@swiftimg/mcp-server

v0.1.0

Published

Model Context Protocol server for swiftimg — gives Claude / Cursor / Continue.dev tools to upload images, search GIFs, and inspect image metadata.

Readme

@swiftimg/mcp-server

A Model Context Protocol server that gives Claude Desktop, Cursor, Continue.dev, and any other MCP-aware AI client direct tools to upload images to swiftimg, search GIFs, and inspect image metadata — all from inside a conversation.

Why this exists

LLMs are getting good at agentic workflows (build me a landing page, draft a release blog, summarize this dashboard) but they have nowhere to put the images those workflows generate. This MCP server fills that gap: ask the model to upload a screenshot, embed a GIF, or check the EXIF of a URL, and it just works — the tools are right there.

Install

The server is published to npm and is meant to be launched on demand via npx. Add it to your MCP client config:

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "swiftimg": {
      "command": "npx",
      "args": ["-y", "@swiftimg/mcp-server"],
      "env": {
        "SWIFTIMG_API_KEY": "your-key-here"
      }
    }
  }
}

Cursor (.cursor/mcp.json or workspace config)

{
  "mcpServers": {
    "swiftimg": {
      "command": "npx",
      "args": ["-y", "@swiftimg/mcp-server"],
      "env": { "SWIFTIMG_API_KEY": "your-key-here" }
    }
  }
}

Continue.dev (config.json)

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "@swiftimg/mcp-server"]
        }
      }
    ]
  }
}

The SWIFTIMG_API_KEY environment variable is optional — without it, uploads count against the anonymous free-tier daily cap. With it, uploads attribute to your account and use your plan's per-file caps. Set SWIFTIMG_API_BASE to override the API origin (useful for Business-plan white-label tenants).

Tools

| Tool | Description | | ------------------- | ----------------------------------------------------------------------------------------------------------------- | | upload_image | Upload a local file or remote URL; returns the direct image URL, viewer page URL, and id. | | search_gifs | Full-text search across swiftimg's public animated GIFs. | | trending_gifs | List the most-viewed GIFs (default surface before a search query). | | get_image_info | Width, height, format, MIME, and file size from any remote image URL. | | inspect_og | OpenGraph + Twitter Card unfurl preview for any page URL (Slack/X/Discord-style). | | get_animated_info | Frame count, total duration, dimensions, and loop behaviour for a GIF or animated WebP URL. |

Example prompts

"Upload ~/Desktop/screenshot.png to swiftimg with the title 'Settings redesign' and the tag 'ui' — then paste the URL into the draft tweet."

"Find me three trending GIFs that say 'thumbs up' and embed the smallest one in my reply."

"What does this page unfurl like in Slack?"

"What's the dimension and format of the image at this URL?"

Local development

npm install
npm run build
npm run start     # starts the server on stdio

Point your MCP client at the built binary:

{
  "command": "node",
  "args": ["/absolute/path/to/swiftimg-mcp-server/dist/index.js"]
}

Underlying API

Every tool is a thin wrapper around the public swiftimg REST API:

  • POST /v1/images — image upload
  • GET /v1/gifs/search?q=… — GIF search
  • GET /v1/gifs/trending — trending GIFs
  • GET /tools/image-info.json?url=… — image metadata
  • GET /tools/og-preview.json?url=… — OG / Twitter Card metadata
  • GET /tools/animated-info.json?url=… — animation timing

See openapi.json for the canonical machine-readable spec.

License

MIT.