pexels-mcp-server
Provides tools for searching and retrieving photos, videos, and collections from 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., "@pexels-mcp-server search for photos of sunrise"
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.
Pexels MCP Server
A Model Context Protocol server that provides access to the Pexels API for searching and retrieving photos, videos, and collections.
Available Tools
photos_search– Search photosphotos_curated– List curated photosphoto_get– Get a photo by idvideos_search– Search videosvideos_popular– List popular videosvideo_get– Get a video by idcollections_featured– List featured collectionscollections_media– List media in a collection
Related MCP server: Lorem Ipsum MCP Server
Usage
Using uv (recommended)
Install
uv.In your MCP client code configuration or Claude settings (file
claude_desktop_config.json) addpexelsmcp server:{ "mcpServers": { "pexels": { "command": "uvx", "args": ["pexels-mcp-server"], "env": { "PEXELS_API_KEY": "<Your Pexels API key>" } } } }uvwill download the MCP server automatically usinguvxfrom pypi.org and apply to your MCP client.
Using pip for a project
Add
pexels-mcp-serverto your MCP client coderequirements.txtfile.pexels-mcp-serverInstall the dependencies.
pip install -r requirements.txtAdd the configuration for your client:
{ "mcpServers": { "pexels": { "command": "python3", "args": ["-m", "pexels_mcp_server"], "env": { "PEXELS_API_KEY": "<Your Pexels API key>" } } } }
Using pip globally
Ensure
piporpip3is available on your system.pip install pexels-mcp-server # or pip3 install pexels-mcp-serverMCP client code configuration or Claude settings, add
pexelsmcp server:{ "mcpServers": { "pexels": { "command": "python3", "args": ["pexels-mcp-server"], "env": { "PEXELS_API_KEY": "<Your Pexels API key>" } } } }
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx pexels-mcp-serverOr if you've installed the package in a specific directory or are developing on it:
git clone https://github.com/garylab/pexels-mcp-server.git
cd pexels-mcp-server
npx @modelcontextprotocol/inspector uv run pexels-mcp-server -e PEXELS_API_KEY=<the key>License
pexels-mcp-server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Available Tools
8 toolscollections_featuredC
List featured collections
Inputs: per_page, page.
collections_mediaC
List collection media
Inputs: id (required), type, per_page, page.
photo_getB
Get a photo by id
Inputs: id (required).
photos_curatedC
List curated photos
Inputs: per_page, page.
photos_searchC
Search photos on Pexels
Inputs: query (required), per_page, page, orientation, +3 more.
video_getB
Get a video by id
Inputs: id (required).
videos_popularC
List popular videos
Inputs: per_page, page, min_width, min_height, +2 more.
videos_searchC
Search videos on Pexels
Inputs: query (required), per_page, page, orientation, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource or action: collections, photos, and videos are clearly separated with no overlapping functionality.
All tool names follow a consistent resource_action pattern (e.g., collections_featured, photos_search) using snake_case and clear verbs.
Eight tools cover the essential operations for a media API, providing a balanced set without unnecessary clutter or missing core features.
The surface includes search, get by ID, and curated/popular lists for photos and videos, and featured collections with media listing. Minor gaps like collection search or photo upload are acceptable given the read-only nature.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for Studex tools, notifications, and profile integrations
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables searching for images on Pixabay with query parameters and returns formatted results with image URLs and metadata.295 npm10MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables image generation and retrieval from picsum.photos with customizable parameters like dimensions, filters, and output formats.1-
- AlicenseAqualityDmaintenanceAn 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
- AlicenseAqualityDmaintenanceA Model Context Protocol server that exposes Pexels API tools for searching and retrieving free stock photos, videos, and curated collections, enabling AI agents to incorporate royalty-free media directly from chat.9228 npm3MIT