Skip to main content
Glama

Unsplash API MCP Server

random_model.py672 B
from pydantic import BaseModel, Field from typing import Optional class Random(BaseModel): """ Model for retrieving random photos from Unsplash. Attributes: query: Optional search term to filter random photos count: Number of random photos to return """ query: Optional[str] = Field( default="nature", description="Optional search term to filter random photos (e.g., 'beach', 'mountains', 'architecture')", example="landscape", ) count: Optional[int] = Field( default=1, description="Number of random photos to return (max: 30)", ge=1, le=30, example=3, )

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