About
A Pexels MCP Server for Images and Videos searching
README
PyPI version PyPI downloads Total downloads Python version
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>
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.
Installing Pexels
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/garylab/pexels-mcp-serverFAQ
Is Pexels MCP free?
Yes, Pexels MCP is free — one-click install via Unyly at no cost.
Does Pexels need an API key?
No, Pexels runs without API keys or environment variables.
Is Pexels hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Pexels in Claude Desktop, Claude Code or Cursor?
Open Pexels on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Pexels with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
