Lorem Picsum
Search a CC0 photo collection and build exact-size placeholder image URLs for layouts and prototypes.
होस्ट किया गया 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.
Pick your agent
-
Add the server.
claude mcp add --transport http picsum https://picsum.org/mcp -
2 In Claude Code, run /mcp, select picsum and choose Authenticate. Approve the connection in your browser.
-
3 Find three coffee photos on Picsum and give me 800 × 600 img tags.
-
Add the server.
codex mcp add picsum --url https://picsum.org/mcp -
Sign in with OAuth.
codex mcp login picsumRemote 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" -
3 Use Picsum to fill this grid with random food photos.
-
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 -
2 Sign in when prompted. The bot discovers the OAuth endpoints and registers its client.
-
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.