photo_search
Pack: pexels · Endpoint: https://gateway.pipeworx.io/pexels/mcp
Search Pexels photos by keyword (required); returns paginated results with image URLs in multiple sizes, photographer name, and attribution link.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes |
Example call
Arguments
{
"query": "mountain landscape"
}
curl
curl -X POST https://gateway.pipeworx.io/pexels/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"photo_search","arguments":{"query":"mountain landscape"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('photo_search', {
"query": "mountain landscape"
});
More examples
{
"query": "sunset beach"
}
Response shape
| Field | Type | Description |
|---|---|---|
page | integer | Current page number |
per_page | integer | Number of results per page |
photos | array | Array of photo objects |
total_results | integer | Total number of results available |
next_page | string | URL for next page of results |
Full JSON Schema
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"description": "Current page number"
},
"per_page": {
"type": "integer",
"description": "Number of results per page"
},
"photos": {
"type": "array",
"description": "Array of photo objects",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Photo ID"
},
"width": {
"type": "integer",
"description": "Photo width in pixels"
},
"height": {
"type": "integer",
"description": "Photo height in pixels"
},
"url": {
"type": "string",
"description": "URL to photo page"
},
"photographer": {
"type": "string",
"description": "Photographer name"
},
"photographer_url": {
"type": "string",
"description": "URL to photographer profile"
},
"photographer_id": {
"type": "integer",
"description": "Photographer ID"
},
"avg_color": {
"type": "string",
"description": "Average color of photo as hex"
},
"src": {
"type": "object",
"description": "Image sources in different sizes",
"additionalProperties": {
"type": "string"
}
},
"liked": {
"type": "boolean",
"description": "Whether photo is liked by user"
},
"alt": {
"type": "string",
"description": "Alt text for photo"
}
}
}
},
"total_results": {
"type": "integer",
"description": "Total number of results available"
},
"next_page": {
"type": "string",
"description": "URL for next page of results"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"pexels": {
"url": "https://gateway.pipeworx.io/pexels/mcp"
}
}
}
See Getting Started for client-specific install steps.