Pexels logo

Pexels

Searches Pexels photos, videos, and collections through nine MCP tools for AI clients.

Install Pexels

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pexels-2": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-pexels"
      ],
      "env": {
        "PEXELS_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 9 tools correctly (9d ago).

Overview

The pexels MCP server connects compatible AI clients to the Pexels API for searching photos, videos, and curated collections. It runs through stdio with npx and requires a Pexels API key supplied as an environment variable. Nine tools support filtered searches, individual media lookup, popular and curated feeds, and collection browsing. Reach for it when an agent needs stock media for documents, presentations, websites, social content, or video research.

Use cases

  • Find photos for slide decks and documents
  • Search videos for editing research
  • Build mood boards from filtered images
  • Retrieve media from Pexels collections
  • Generate web layouts with stock-media URLs

Key features

  • Photo search with orientation, size, color, and locale filters
  • Video search and popular-video filtering
  • Individual photo and video lookup by ID
  • Featured, personal, and collection-media browsing
  • Rate-limit details included in every response
  • stdio installation through npx

Tools9

What Pexels lets your agent do. Expand a tool for its parameters.

Verified live~840 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

9/9 checks healthy over the last 50d

What it can do

From the 9 tools this server returned when we ran it.

Makes network requests · 2Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age162 days
Maintainers1

Observed 2026-10-28 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · mcp-pexels (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.

How Pexels works

What pexels MCP server does

The pexels MCP server exposes Pexels media capabilities as tools that an MCP-compatible AI client can call from chat. It covers stock photos, videos, and collections, returning the underlying Pexels JSON together with rate-limit details.

Photo tools can search by query and apply orientation, size, color, and locale filters. They can also retrieve a specific photo by numeric ID or return Pexels' current curated photo feed. Video tools support query searches with orientation, size, and locale filters, plus popular-video results constrained by width, height, or duration. Collection tools list featured collections, list the authenticated user's collections, and retrieve the media belonging to a selected collection.

Typical uses include finding images for slides or blog posts, selecting video footage for editing research, creating mood boards, and supplying realistic media URLs to coding agents. Responses include photographer or videographer information when provided by Pexels.

How it works

The pexels MCP server is launched as a local stdio process. An MCP client starts it with npx -y mcp-pexels, passes PEXELS_API_KEY in the process environment, and exposes the resulting tools to the agent. No global npm installation is required.

Inputs are validated before requests are sent, and the service forwards Pexels results to the client. Each response adds a top-level _rateLimit object containing the request limit, remaining requests, and reset time as a UNIX timestamp. This lets an agent or host application account for the Pexels quota, including the documented free-tier limit of 200 requests per hour and 20,000 per month.

Setup and configuration

The pexels MCP server requires Node.js 20 or newer and a Pexels API key. Create a key through the Pexels API site, then add a server entry to the client configuration:

config.json
{
  "mcpServers": {
    "pexels": {
      "command": "npx",
      "args": ["-y", "mcp-pexels"],
      "env": { "PEXELS_API_KEY": "your_key_here" }
    }
  }
}

Claude Desktop also supports installing a release .mcpb package and entering the key when prompted. Claude Code can add the server with claude mcp add; Cursor, Cline, and Continue provide their own MCP configuration locations. After changing configuration, restart the client where required. The MCP Inspector can be used to call the tools interactively for debugging.

Tools and capabilities

The nine available tools are:

  • pexels_search_photos: Search photos with orientation, size, color, and locale filters.
  • pexels_curated_photos: Retrieve the current curated photo feed.
  • pexels_get_photo: Retrieve one photo by numeric ID.
  • pexels_search_videos: Search videos with orientation, size, and locale filters.
  • pexels_popular_videos: Retrieve popular videos with optional dimensions and duration constraints.
  • pexels_get_video: Retrieve one video by numeric ID.
  • pexels_featured_collections: List featured Pexels collections.
  • pexels_my_collections: List collections belonging to the authenticated user.
  • pexels_collection_media: Retrieve photos and videos from a specified collection.

Limitations and notes

The pexels MCP server depends on the Pexels API, so a valid API key and available request quota are required. Its documented transport is local stdio rather than a hosted HTTP endpoint. Pexels' free tier has request limits, which are exposed in each response for tracking. The server provides access to Pexels media and metadata; it does not describe separate editing, asset storage, or publishing functions.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pexels

pexels is an MCP server that connects AI clients to the Pexels API for stock photos, videos, and collections. Its nine tools search and retrieve photos and videos, return curated or popular media, list collections, and fetch collection contents. It requires a Pexels API key and runs locally through stdio.

Install it by adding `npx -y mcp-pexels` as a stdio MCP server and setting `PEXELS_API_KEY` in the environment. No global npm installation is required. The README provides configuration examples for Claude Desktop, Claude Code, Cursor, Cline, Continue, and other stdio clients.

Yes, pexels works with Cursor through its MCP configuration. Add the server entry to `~/.cursor/mcp.json` for a global setup or `.cursor/mcp.json` for a project setup, set `PEXELS_API_KEY`, and restart or reload Cursor as needed.

It provides nine tools for photo searches, curated photos, photo lookup, video searches, popular videos, video lookup, featured collections, personal collections, and collection media. Photo and video search tools support the filters documented by the underlying Pexels API.

It requires `PEXELS_API_KEY`, containing a valid key from the Pexels API. The key is passed in the MCP server's `env` configuration or exported in the shell before launching the server or MCP Inspector.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPexels AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pexels-2?style=directory)](https://allmcps.com/mcp/pexels-2)
HTML Embed
<a href="https://allmcps.com/mcp/pexels-2"><img src="https://allmcps.com/api/badge/pexels-2?style=directory" alt="Pexels on AllMCPs" /></a>