Skip to main content
Glama

Unsplash API MCP Server

photos_model.py954 B
from pydantic import BaseModel, Field from typing import Optional, Literal class Photos(BaseModel): """ Model for retrieving photos from Unsplash's curated collection. Attributes: page: Page number for pagination per_page: Number of photos to return per page order_by: How to sort the returned photos """ page: Optional[int] = Field( default=1, description="Page number for pagination (starts at 1)", ge=1, example=1, ) per_page: Optional[int] = Field( default=10, description="Number of photos to return per page (max: 30)", ge=1, le=30, example=10, ) order_by: Optional[Literal["latest", "oldest", "popular"]] = Field( default="latest", description="How to sort the photos: 'latest' for most recent, 'oldest' for first published, 'popular' for most liked/downloaded", example="latest", )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gzpaitch/Unsplash-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server