Pexels Search Images MCP
Provides an image search tool that queries the Pexels API by a short text query, supports pagination and per-page limits, and returns photo metadata plus multiple image size URLs.
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 Search Images MCP find 5 high-quality photos of a sunset beach"
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 Search Images MCP
MCP (Model Context Protocol) сервер для поиска изображений с использованием Pexels API. Позволяет искать и получать высококачественные фотографии по текстовому описанию.
Особенности
🔍 Поиск изображений через Pexels API
📝 Ограничение поискового запроса до 3 слов
🖼️ Возврат различных размеров изображений
📄 Поддержка пагинации
⚡ Быстрый и надежный поиск
🔧 TypeScript поддержка
Related MCP server: Unsplash Smart MCP Server
Установка
Глобальная установка (рекомендуется)
npm install -g pexels-search-images-mcpЛокальная установка
npm install pexels-search-images-mcpНастройка
Получите API ключ от Pexels
Установите переменную окружения:
export PEXELS_API_KEY="your_api_key_here"Для Windows:
set PEXELS_API_KEY=your_api_key_hereИспользование
Запуск через npx (npmjs)
npx pexels-search-images-mcpЛокальное тестирование без компиляции
# Установите зависимости
npm install
# Запустите с tsx
npx tsx src/index.tsКонфигурация для MCP клиентов
Добавьте в конфигурацию вашего MCP клиента:
{
"mcpServers": {
"pexels-search-images": {
"command": "npx",
"args": ["pexels-search-images-mcp"],
"env": {
"PEXELS_API_KEY": "your_api_key_here"
}
}
}
}Доступные инструменты
search_images
Поиск изображений по текстовому запросу.
Параметры:
query(string, обязательный) - Поисковый запрос (максимум 3 слова)per_page(number, опциональный) - Количество изображений на странице (1-80, по умолчанию: 10)page(number, опциональный) - Номер страницы (по умолчанию: 1)
Пример использования:
{
"name": "search_images",
"arguments": {
"query": "sunset beach",
"per_page": 5,
"page": 1
}
}Ответ:
{
"total_results": 1000,
"page": 1,
"per_page": 5,
"photos": [
{
"id": 123456,
"width": 1920,
"height": 1080,
"photographer": "John Doe",
"photographer_url": "https://www.pexels.com/@johndoe",
"avg_color": "#FF6B6B",
"url": "https://www.pexels.com/photo/...",
"alt": "Beautiful sunset over the ocean",
"src": {
"original": "https://images.pexels.com/photos/.../original.jpeg",
"large2x": "https://images.pexels.com/photos/.../large2x.jpeg",
"large": "https://images.pexels.com/photos/.../large.jpeg",
"medium": "https://images.pexels.com/photos/.../medium.jpeg",
"small": "https://images.pexels.com/photos/.../small.jpeg",
"portrait": "https://images.pexels.com/photos/.../portrait.jpeg",
"landscape": "https://images.pexels.com/photos/.../landscape.jpeg",
"tiny": "https://images.pexels.com/photos/.../tiny.jpeg"
},
"liked": false
}
],
"next_page": "https://api.pexels.com/v1/search/?page=2&per_page=5&query=sunset+beach"
}Разработка
Установка зависимостей
npm installСборка
npm run buildЗапуск в режиме разработки
npm run devТестирование
# Установите переменную окружения
export PEXELS_API_KEY="your_api_key_here"
# Запустите сервер
npm run devТребования
Node.js >= 18.0.0
API ключ от Pexels
Ограничения
Поисковый запрос должен содержать не более 3 слов
Максимум 80 изображений на страницу
Соблюдение лимитов API Pexels (200 запросов в час для бесплатного аккаунта)
Лицензия
MIT
Поддержка
Если у вас возникли проблемы или вопросы, создайте issue в GitHub репозитории.
Changelog
1.0.0
Первоначальный релиз
Базовая функциональность поиска изображений
Поддержка пагинации
Валидация поисковых запросов
Available Tools
1 toolsearch_imagesB
Search for images using Pexels API. Query must contain no more than 3 words.
Inputs: query (required), page, per_page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of confusion or misselection between tools. Its purpose (searching Pexels for images) is unambiguous from the name and description.
The single tool follows a clear verb_noun pattern (search_images). With only one name there is no convention mixing to penalize, and the name is readable and predictable.
One tool is defensible for a narrowly scoped image-search server, but the surface feels thin for a Pexels integration, which naturally offers more than a single query endpoint. It is borderline under-scoped rather than clearly well-scoped.
Search is covered, but obvious adjacent operations are missing: fetching a photo by ID, browsing curated/popular images, and pagination or filtering controls. Agents can work around this for basic lookups but hit dead ends for anything beyond a single search call.
Maintenance
Related MCP Connectors
Search CC0 photos and build placeholder image URLs at exact sizes with Lorem Picsum.
Image Search: Fast and Simple Image Search API. You can get 100+ search results in one query!.
Find free-to-use stock photos by words, by image or by similarity; every result names its licence.
Search over 1.85 million captioned images using text, a reference image, or both. Upload a JPEG, PNG, or WebP image as base64, or provide a public HTTPS image URL. Find similar images from a Lightdrift asset ID and retrieve hosted file URLs, source licenses, and attribution. Connect with OAuth or an API key. Searches cost $0.005 ($5 per 1,000); image details are free. Setup: https://docs.lightdrift.ai/guides/images-mcp
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables searching and retrieving high-quality stock photos from Pexels with advanced filtering options including orientation, size, color, and localization support.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, recommend, and deliver professional stock photos from Unsplash with intelligent context awareness and automatic attribution management.17 npm64MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and downloading photos from Unsplash via the Unsplash API, with support for pagination, orientation filtering, and multiple resolutions.79 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search and retrieve Unsplash photos with filters, random photo selection, and compliant download tracking, while providing ready-to-use attribution text and HTML.3MIT