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

NameTypeRequiredDescription
idnumberyes

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

FieldTypeDescription
idintegerPhoto ID
widthintegerPhoto width in pixels
heightintegerPhoto height in pixels
urlstringURL to photo page
photographerstringPhotographer name
photographer_urlstringURL to photographer profile
photographer_idintegerPhotographer ID
avg_colorstringAverage color of photo as hex
srcobjectImage sources in different sizes
likedbooleanWhether photo is liked by user
altstringAlt 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.

Regenerated from source · build July 9, 2026