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

@violent-madman/unsplash-mcp

v1.0.0

Published

Unsplash MCP server for easy stock image integration with Claude Code

Downloads

39

Readme

Unsplash MCP Server

An easy-to-use MCP server that provides seamless access to Unsplash's stock photo API for Claude Code users. Perfect for developers who need high-quality stock images during website development.

Features

  • 🔍 Search Images: Find stock photos by keyword with filters
  • 🎲 Random Images: Get random high-quality images
  • 📋 Image Details: Retrieve complete metadata and attribution
  • 🖼️ Optimized URLs: Generate properly sized image URLs for web use
  • 🚀 Easy Installation: One command setup with Claude Code
  • Fast: Built with TypeScript and optimized for performance

Quick Start

1. Get Your Unsplash Access Key

  1. Go to Unsplash Developers
  2. Register for a free account
  3. Create a new application
  4. Copy your Access Key (you won't need the Secret Key)

2. Set Environment Variable

export UNSPLASH_ACCESS_KEY="your_access_key_here"

Add this to your shell profile (.bashrc, .zshrc, etc.) to make it permanent.

3. Install with Claude Code

claude mcp add unsplash npx @violent-madman/unsplash-mcp@latest

That's it! 🎉

Available Tools

search_images

Search Unsplash for stock images with filters.

// Example usage in Claude Code:
search_images({
  query: "mountain landscape",
  per_page: 10,
  orientation: "landscape",
  color: "blue"
})

Parameters:

  • query (required): Search keywords
  • page: Page number (default: 1)
  • per_page: Images per page, 1-30 (default: 10)
  • orientation: "landscape", "portrait", or "squarish"
  • color: "black_and_white", "black", "white", "yellow", "orange", "red", "purple", "magenta", "green", "teal", "blue"
  • content_filter: "low" or "high" (default: "low")

get_random_image

Get random high-quality images with optional filters.

get_random_image({
  count: 3,
  orientation: "portrait",
  query: "nature"
})

Parameters:

  • count: Number of images, 1-30 (default: 1)
  • collections: Comma-separated collection IDs
  • topics: Comma-separated topic IDs
  • username: Filter by photographer
  • query: Keywords to filter random images
  • orientation: "landscape", "portrait", or "squarish"
  • content_filter: "low" or "high" (default: "low")

get_image_details

Get complete metadata for a specific image.

get_image_details({
  photo_id: "abc123xyz"
})

get_image_url

Generate optimized image URLs with custom dimensions.

get_image_url({
  photo_id: "abc123xyz",
  width: 800,
  height: 600,
  quality: 90,
  fit: "crop"
})

Parameters:

  • photo_id (required): Unsplash photo ID
  • width: Desired width in pixels
  • height: Desired height in pixels
  • quality: Image quality, 1-100 (default: 80)
  • fit: "crop", "clip", or "scale" (default: "crop")

Rate Limits

  • Demo Mode: 50 requests/hour (initial)
  • Production Mode: 5000 requests/hour (after approval)

Attribution

All images from Unsplash require proper attribution. This MCP server automatically generates the correct attribution text for each image. Always include this in your projects:

Photo by [Photographer Name] on Unsplash (image_url)

Development

Local Setup

git clone https://github.com/violent-madman/unsplash-mcp.git
cd unsplash-mcp
npm install
export UNSPLASH_ACCESS_KEY="your_key"
npm run dev

Build

npm run build

Test

npm test

License

MIT License - see LICENSE file for details.

Contributing

Contributions welcome! Please read our contributing guidelines and submit pull requests.

Support


Made with ❤️ for the Claude Code community