photo
Pack: pexels · Endpoint: https://gateway.pipeworx.io/pexels/mcp
Fetch full metadata for a single Pexels photo by numeric id, including all sized image URLs, photographer name/URL, dimensions, and alt text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | yes |
Example call
Arguments
{
"id": 45890
}
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","arguments":{"id":45890}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('photo', {
"id": 45890
});
Response shape
| Field | Type | Description |
|---|---|---|
id | integer | Photo ID |
width | integer | Photo width in pixels |
height | integer | Photo height in pixels |
url | string | URL to photo page |
photographer | string | Photographer name |
photographer_url | string | URL to photographer profile |
photographer_id | integer | Photographer ID |
avg_color | string | Average color of photo as hex |
src | object | Image sources in different sizes |
liked | boolean | Whether photo is liked by user |
alt | string | Alt text for photo |
Full JSON Schema
{
"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"
}
}
}
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.