Example MCP Server with image blocks
@larryhudson
Basic information
About Example MCP Server with image blocks
An example MCP server that sends image blocks
Example MCP Server with image blocks config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-example-image-block": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"npx",
"tsx",
"src/index.ts"
]
}
}
}Example MCP Server with image blocks tools
1get a random image using the Lorem Picsum API.
Overview
What is Example MCP Server with image blocks?
An example MCP server that uses the Lorem Picsum API to return a random image. It is designed to demonstrate how MCP servers can include image blocks in their tool responses, serving as a reference for developers building MCP tools.
How to use Example MCP Server with image blocks?
Add the server’s configuration to your MCP settings JSON file. For VS Code, include it under mcp.servers; for Claude or other MCP-compatible apps, under mcpServers. The command is npx -y @larryhudson/mcp-server-example-image-block. After configuration, call the get_random_image tool to retrieve a random image.
Key features of Example MCP Server with image blocks
- Returns a random image via the Lorem Picsum API.
- Demonstrates MCP’s image content block capability.
- Built with TypeScript for type safety.
- Single tool:
get_random_image.
Use cases of Example MCP Server with image blocks
- Learning how MCP servers return image content.
- Testing MCP client image rendering features.
- Quickly obtaining a random image from Lorem Picsum.
FAQ from Example MCP Server with image blocks
—
More Media & Design MCP servers
GPT Image 2.5 MCP
you.botGenerate and edit images with GPT Image 2.5 for $0.029 each. A free you.bot key (not an OpenAI key) comes with 50 credits — about 17 images — and needs no credit card.

Paperjoy
Send real handwritten postcards in Poland from Claude, Cursor, or any MCP client. A robot writes with a real pen, addresses the envelope, and mails via Poczta Polska.

Uwear.ai
Uwear.aiRun complete AI fashion photoshoots from ChatGPT, Claude, or Codex. Turn flat-lay, packshot, and mannequin product images into catalog-ready on-model photos and video with saved art direction, automatic QA, and catalog-s

CampaignStack
Run LinkedIn and email outreach from Claude, safely. Made for lead gen agencies, founders and medium-large companies. Every account gets enforced daily limits, its own proxy, and a review queue before anything sends.

Organize with AI (OwAI)
Alexander VisheratinSearch and manage photo and video libraries through AI assistants. Find images and video moments, review duplicates, and organize collections, groups, favorites and people across local folders, Apple Photos and OneDrive.
Comments