# Pexels

> Pexels is an open-source MCP server for web search and scraping. MCP server giving AI clients search access to Pexels stock photos and videos. It is available on CLI, API, self-hosted, Linux, macOS and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/codechap/mcp-server-pexels
- **MCP Registry name:** io.github.codeChap/pexels
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Rust-built MCP server that wraps the Pexels API and communicates over stdio using JSON-RPC 2.0. Once connected to an MCP-compatible client, the model can search Pexels photos and videos, pull curated picks, look up individual media by ID, and browse featured collections.

Access requires a personal Pexels API key, which is placed in a TOML config file in the user's config directory. The server is built from source with cargo and then referenced by its binary path in the client's MCP configuration.

The project suits developers and creators who want an assistant to find stock imagery or footage during drafting, design, or content work without leaving the chat. The code is released under the MIT licence.

## Features

- **Photo search:** Searches Pexels photos by query with optional orientation, size, colour and locale filters.
- **Video search:** Finds Pexels videos by query with orientation, size and locale filters, plus a popular videos tool.
- **Curated and featured content:** Returns hand-picked curated photos and lists featured collections of themed media.
- **Lookup by ID:** Retrieves a single photo or video directly when its Pexels ID is known.
- **Stdio transport:** Runs as a local process speaking JSON-RPC 2.0 over stdin and stdout.

## Good for

- Finding stock photos that match a query while drafting an article or slide deck
- Searching for background footage with specific orientation or duration
- Browsing Pexels collections to find a themed set of media for a project
- Fetching details for a known Pexels photo or video ID

## Tools

- `search_photos`: Search photos by query with optional orientation, size, color and locale filters.
- `curated_photos`: Get a paginated list of curated, hand-picked photos.
- `get_photo`: Retrieve a single photo by ID.
- `search_videos`: Search videos by query with optional orientation, size and locale filters.
- `popular_videos`: Get popular videos with optional dimension and duration filters.
- `get_video`: Retrieve a single video by ID.
- `featured_collections`: List featured collections of themed media.
- `collection_media`: List media in a specific collection, filterable by photos or videos.

## FAQ

### What do I need to run it?

The README lists Rust (edition 2024) for building, plus a Pexels API key obtained from pexels.com/api, stored in a config.toml file.

### How is it installed?

You build it with cargo build --release and point your MCP client configuration at the resulting mcp-server-pexels binary.

### What license is it under?

The README states the project is licensed under MIT.

### Is Pexels free?

Yes. Pexels is open source, so you can use and self-host it for free.

### What are the best alternatives to Pexels?

The closest alternatives to Pexels are Lorem Picsum, MCP Server Search and Reddit Insights MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [Lorem Picsum](https://ai-powered.com/mcp/lorem-picsum): Lorem Picsum is a freemium MCP server for web search and scraping.
- [MCP Server Search](https://ai-powered.com/mcp/mcp-server-search): MCP Server Search is an open-source MCP server for web search and scraping.
- [Reddit Insights MCP](https://ai-powered.com/mcp/reddit-insights-mcp): Reddit Insights MCP is an open-source MCP server for web search and scraping.

---
Source: https://ai-powered.com/mcp/pexels
