Pexels MCP Server

v1.0.1
io.github.hanoak/pexels-mcp-server Checked 5 days ago Published 3 months ago

MCP server for the Pexels API: search & fetch stock photos, videos, and collections.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pexels_search_photos Search Pexels Photos

Search Pexels for photos matching a query, with optional orientation/size/color/locale filters. Returns compact photo objects with pre-sized URLs and a courtesy credit (attribution is appreciated but not required by the Pexels license). Read-only. Each photo includes several pre-sized URLs in `src` (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using `original`.

ParameterTypeDescription
query *stringThe search query, e.g. "ocean", "tigers", "pears".
colorstringDesired photo color: a named color (red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white) or a hex code like "#ffffff".
localestringThe locale of the search, e.g. "en-US", "fr-FR" (28 supported locales).
orientationstringDesired photo orientation.
pageintegerPage number, 1-based.
per_pageintegerItems per page (clamped to a max of 80).
sizestringMinimum photo size: large (24MP), medium (12MP), or small (4MP).

pexels_curated_photos Curated Pexels Photos

List Pexels' hand-curated photo picks, refreshed hourly (paginated). Returns compact photo objects. Read-only. Each photo includes several pre-sized URLs in `src` (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using `original`.

ParameterTypeDescription
pageintegerPage number, 1-based.
per_pageintegerItems per page (clamped to a max of 80).

pexels_get_photo Get Pexels Photo

Get a single Pexels photo by its numeric ID, with full detail, pre-sized URLs, and a courtesy credit. Read-only. Each photo includes several pre-sized URLs in `src` (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using `original`.

ParameterTypeDescription
id *integerThe numeric Pexels photo ID.

pexels_search_videos Search Pexels Videos

Search Pexels for videos matching a query, with optional orientation/size/locale filters. Returns compact video objects with rendition links. Read-only. `video_files` is trimmed to the highest-resolution renditions (see `video_files_count` for the full count) — call pexels_get_video for the complete rendition list on one video.

ParameterTypeDescription
query *stringThe search query, e.g. "ocean", "tigers", "pears".
localestringThe locale of the search, e.g. "en-US", "fr-FR" (28 supported locales).
orientationstringDesired video orientation.
pageintegerPage number, 1-based.
per_pageintegerItems per page (clamped to a max of 80).
sizestringMinimum video size: large (4K), medium (Full HD), or small (HD).

pexels_get_video Get Pexels Video

Get a single Pexels video by its numeric ID, with full detail and every available rendition (unlike the search/popular tools, this returns the complete video_files list, not just the top few). Read-only.

ParameterTypeDescription
id *integerThe numeric Pexels video ID.

pexels_list_my_collections List My Pexels Collections

List the collections belonging to the Pexels account that owns the configured API key (paginated). Since Pexels has no per-conversation OAuth login, this always reflects the API key's own account, not the person chatting — it will be empty unless that account has created collections on pexels.com. Read-only.

ParameterTypeDescription
pageintegerPage number, 1-based.
per_pageintegerItems per page (clamped to a max of 80).

pexels_get_collection_media Get Pexels Collection Media

Get the photos and/or videos inside a Pexels collection by its ID (paginated, optionally filtered to just photos or just videos). Each item is returned in the same compact shape its own domain tool would use, tagged with `media_type`. Read-only. Each photo includes several pre-sized URLs in `src` (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using `original`. `video_files` is trimmed to the highest-resolution renditions (see `video_files_count` for the full count) — call pexels_get_video for the complete rendition list on one video.

ParameterTypeDescription
id *stringThe Pexels collection ID.
pageintegerPage number, 1-based.
per_pageintegerItems per page (clamped to a max of 80).
sortstringSort order.
typestringFilter media by type. Omit to return both photos and videos.