Access Pexels Photos and Videos
Pexels MCP Server provides access to the Pexels API for searching and retrieving photos, videos, and collections. Integrates with MCP clients.
Maintainer of this project? Claim this page to edit the listing.
0.0.3Add to Favorites
Why it matters
Integrate with the Pexels API to programmatically search, retrieve, and list photos, videos, and collections. This asset enables seamless access to a vast library of visual media for various applications.
Outcomes
What it gets done
Search for photos and videos using the Pexels API.
Retrieve specific photos and videos by their unique IDs.
Access curated and popular media, as well as featured collections.
List media content within specific collections.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-pexels | bash Capabilities
Tools your agent gets
Search for photos on Pexels
List of curated photos from Pexels
Get a photo by ID from Pexels
Search for videos on Pexels
List of popular videos from Pexels
Get a video by ID from Pexels
List of featured collections from Pexels
List of media in a Pexels collection
Overview
Pexels MCP Server
Pexels MCP Server 2024-05-15T12:00:00Z
What it does
Connect your AI client to the Pexels API to find specific photos, videos, or collections.
Here's how to configure it using uv:
{
"mcpServers": {
"pexels": {
"command": "uvx",
"args": ["pexels-mcp-server"],
"env": {
"PEXELS_API_KEY": "<Your Pexels API key>"
}
}
}
}
Source README
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
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-server
Or 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>
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.