Lorem Picsum

Ищите фотографии в коллекции CC0 и создавайте URL-адреса изображений-заполнителей точного размера для макетов и прототипов.

Размещённый MCP-сервер

npx add-mcp 'https://picsum.org/mcp'

Устанавливается в Claude Code, Codex, Cursor и другие

Документация

Lorem Picsum · MCP + OAuth 2.1Connect your coding agent.

Let Claude Code, Codex and Grok Bot search the Picsum collection of CC0 photos and build exact-size random image URLs. Sign in once with OAuth: there is no key to copy, and access is read-only.

https://picsum.org/mcp

Pick your agent

  1. Add the server.

    claude mcp add --transport http picsum https://picsum.org/mcp
    
  2. 2 In Claude Code, run /mcp, select picsum and choose Authenticate. Approve the connection in your browser.

  3. 3 Find three coffee photos on Picsum and give me 800 × 600 img tags.

  4. Add the server.

    codex mcp add picsum --url https://picsum.org/mcp
    
  5. Sign in with OAuth.

    codex mcp login picsum
    

    Remote MCP login requires a recent Codex CLI. You can also add this entry under [mcp_servers.picsum] in ~/.codex/config.toml.url = "https://picsum.org/mcp"

  6. 3 Use Picsum to fill this grid with random food photos.

  7. In the bot’s tool settings, add a remote MCP server with these values.

    Name: picsum
    URL: https://picsum.org/mcp
    Transport: Streamable HTTP
    Auth: OAuth
    
  8. 2 Sign in when prompted. The bot discovers the OAuth endpoints and registers its client.

  9. 3 Menu names vary. Other MCP clients can connect if they support OAuth with dynamic client registration.

What your agent can do

search_photos

Search CC0 photos by tag and category. Results are paginated and include a ready-to-use URL.

get_photo

Look up a photo’s author, description, tags, dimensions, source and licence by ID.

list_categories

List the category IDs and names in the same groups as on the homepage.

build_image_url

Build an exact-size URL and an HTML img tag. Supports seeds, categories, grayscale, blur and WebP.

Read-only access

  • The agent can search the public CC0 catalogue and build URLs. It cannot read or change your account or files.
  • The tool can read photos and build image links. It can’t modify your account.
  • Each connection opens a consent page showing which app is asking for access.
  • You can disconnect at any time by removing the server from your agent. Tokens expire after one hour and refresh for up to 30 days.
  • OAuth 2.1 requires PKCE. Clients can register dynamically without a client secret to copy.