
Pexels MCP Server
Enables searching and retrieving high-quality stock photos from Pexels with advanced filtering options including orientation, size, color, and localization support.
README
Pexels MCP Server
An MCP (Model Context Protocol) server that provides access to the Pexels Photos Search API.
Features
- Search for photos using text queries
- Filter by orientation (landscape, portrait, square)
- Filter by size (large, medium, small)
- Filter by dominant color
- Pagination support
- Localization support
Setup
- Install dependencies:
npm install
-
Get a Pexels API key from https://www.pexels.com/api/
-
Set your API key as an environment variable:
export PEXELS_API_KEY=your_api_key_here
Or create a .env
file (copy from .env.example
):
cp .env.example .env
# Edit .env with your API key
- Build the project:
npm run build
Usage
Running the Server
npm start
Available Tool
search_photos
Search for photos on Pexels.
Parameters:
query
(required): Search term for finding photospage
(optional): Page number (default: 1)per_page
(optional): Number of results per page (default: 15, max: 80)orientation
(optional): Filter by photo orientation (landscape
,portrait
,square
)size
(optional): Filter by photo size (large
,medium
,small
)color
(optional): Filter by dominant color (red
,orange
,yellow
,green
,turquoise
,blue
,violet
,pink
,brown
,black
,gray
,white
)locale
(optional): The locale for the search (e.g.,en-US
,pt-BR
)
Example Response:
{
"success": true,
"data": {
"total_results": 8000,
"page": 1,
"per_page": 15,
"photos": [
{
"id": 415829,
"width": 2651,
"height": 3976,
"url": "https://www.pexels.com/photo/nature-red-love-romantic-415829/",
"photographer": "Pixabay",
"photographer_url": "https://www.pexels.com/@pixabay",
"avg_color": "#C0392B",
"alt": "Red rose",
"src": {
"original": "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg",
"large": "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&h=650&w=940",
"medium": "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&h=350",
"small": "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&h=130",
"tiny": "https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=200&w=280"
}
}
],
"next_page": "https://api.pexels.com/v1/search?query=nature&page=2"
}
}
Claude Code Configuration
To use this MCP server with Claude Code, add it to your MCP settings:
{
"mcpServers": {
"pexels": {
"command": "node",
"args": ["/path/to/pexels-mcp-server/dist/index.js"],
"env": {
"PEXELS_API_KEY": "your_api_key_here"
}
}
}
}
Development
Run in development mode:
npm run dev
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.