mcp-server-pexels
Provides tools for searching photos and videos, retrieving curated and popular content, and accessing featured collections and their media via the Pexels API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-pexelsSearch for high-resolution photos of New York City skyline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-server-pexels
An MCP (Model Context Protocol) server for the Pexels API. Built in Rust, exposes photo search, video search, and curated/featured content as MCP tools.
Communicates via stdio using JSON-RPC 2.0.
Tools
Tool | Description |
| Search photos by query with optional orientation/size/color/locale filters |
| Get a paginated list of curated, hand-picked photos |
| Retrieve a single photo by ID |
| Search videos by query with optional orientation/size/locale filters |
| Get popular videos with optional dimension and duration filters |
| Retrieve a single video by ID |
| List featured collections (themed sets of media) |
| List media in a specific collection (filterable by photos/videos) |
Related MCP server: pexels-mcp-server
Prerequisites
Rust (edition 2024)
A Pexels API key from pexels.com/api
Setup
mkdir -p ~/.config/mcp-server-pexelsCreate ~/.config/mcp-server-pexels/config.toml:
api_key = "your-pexels-api-key"Build
cargo build --releaseProduces target/release/mcp-server-pexels.
MCP configuration
{
"mcpServers": {
"pexels": {
"command": "/path/to/mcp-server-pexels"
}
}
}Project structure
src/
main.rs - entry point, config loading, stdio transport
server.rs - MCP tool definitions
api.rs - Pexels HTTP client and response types
params.rs - tool parameter types
config.rs - TOML config loadingLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Pixapi: check live credit pricing and balance, then generate images and video.
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server for Google Veo AI video generation
MCP server for QPost — lets AI agents publish video and image posts to YouTube, TikTok, Instagram.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides access to the Pexels API for searching and retrieving photos, videos, and collections.8157 PyPI23-
- AlicenseAqualityCmaintenanceAn MCP server that enables AI agents to search, retrieve, and curate free stock photos and videos from Pexels, with tools, resources, and prompts for easy integration.8MIT
- AlicenseAqualityDmaintenanceAn MCP server to search for photos and videos on Pexels.310 npmMIT
- AlicenseAqualityCmaintenanceAn MCP server for the Pexels API that provides inline visual previews, video storyboards, and batch operations for efficient stock media selection in Claude and other MCP clients.13MIT