expo-assets-mcp
Generates and transforms Expo assets such as icons, splash screens, and favicons for Expo projects.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@expo-assets-mcpGenerate Expo icons from ~/logo.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
expo-assets-mcp
Local MCP server to generate and transform Expo assets. Also includes a CLI script to run it directly from the terminal.
Project structure
src/
├── expo-assets.ts ← reusable logic (asset definitions, image transformations)
├── index.ts ← MCP server
└── generate.ts ← CLI script
dist/ ← compiled output (generated with npm run build)Related MCP server: Expo MCP Server
Installation
npm install
npm run buildWeb Generator
A pure JavaScript version of this tool is available directly in the browser! Open index.html or visit https://elber-code.github.io/expo-assets-mcp/ to access a rich GUI that features:
Interactive Cropper: Perfectly center your icons with a 1:1 aspect ratio.
Live Icon Previews: See how your icon looks in iOS (squircle) and Android (circle) shapes with transparent or solid backgrounds in real-time.
Advanced Banners: Generate App Store mockups or promo banners by placing your Expo assets (e.g. Splash, Icon) inside custom resolutions to download individually.
Custom ZIP Assets: Easily add extra custom-sized assets to the final ZIP.
Bilingual Interface: Seamlessly switch between English and Spanish (
index_es.html).
No backend or server required; everything is processed locally in your browser!
CLI usage
Generates all Expo assets from a source image. Creates a folder next to the image named <image>-assets/.
node dist/generate.js <image-path> [options]Options:
Flag | Description |
| Background color. Omit for transparent |
| Skip files that already exist |
Examples:
# Transparent background
node dist/generate.js /Users/me/logo.png
# With background color
node dist/generate.js /Users/me/logo.png --bg "#E6F4FE"Output:
/Users/me/logo-assets/
├── icon.png
├── android-icon-foreground.png
├── android-icon-background.png
├── android-icon-monochrome.png
├── splash-icon.png
├── favicon.png
├── react-logo.png
├── react-logo@2x.png
├── react-logo@3x.png
└── partial-react-logo.pngMCP usage (Claude Desktop)
Copy claude-config.example.json to claude-config.json, fill in the correct path, then merge it into:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"expo-assets-mcp": {
"command": "node",
"args": ["/absolute/path/to/expo-assets-mcp/dist/index.js"]
}
}
}Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsAvailable MCP tools
generate_expo_icons
Generates all 10 Expo assets into a single assets/images/ folder.
Parameter | Type | Default | Description |
| string | — | Absolute path to the source image |
| string | — | Absolute path to the Expo project's |
| string | transparent | Background color in hex (e.g. |
| boolean |
| Overwrite existing files |
| object | see table | Content proportion per asset (0.1–1.0) |
Proportions:
Key | Asset(s) | Default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transform_image
Transforms an image to specific dimensions with optional content proportion and background.
Parameter | Type | Default | Description |
| string | — | Path to the source image (PNG, JPEG, WebP, TIFF, AVIF) |
| string | — | Full output path including filename and extension (e.g. |
| number | — | Output canvas width in pixels |
| number | — | Output canvas height in pixels |
| number |
| How much of the canvas the content fills (0.1–1.0, 1 = fills everything) |
| string | transparent | Canvas background color in hex. Omit for transparent. |
|
|
| Output file format |
| number |
| Compression quality for jpeg/webp only (1 = lowest, 100 = highest) |
convert_svg
Converts an SVG file to PNG, JPEG, or WebP at the specified dimensions.
Parameter | Type | Default | Description |
| string | — | Absolute path to the source SVG file |
| string | — | Full output path including filename and extension |
| number | — | Output width in pixels |
| number | proportional | Output height in pixels. Omit to scale proportionally from width. |
|
|
| Output file format |
| string | transparent | Background color in hex. Omit for transparent (PNG only). |
| number |
| Compression quality for jpeg/webp only (1 = lowest, 100 = highest) |
Generated assets
Expo handles all platform-specific resizing automatically from these 10 files.
Source image requirements
Format: PNG
Minimum size: 1024×1024 px
Background: transparent (recommended)
Asset table
File | Canvas | Background | Transformation | app.json key |
| 1024×1024 |
|
|
|
| 512×512 | Always transparent |
|
|
| 512×512 |
|
|
|
| 432×432 | Always transparent | White silhouette, prop 0.33 |
|
| 1024×1024 | Always transparent |
|
|
| 48×48 | Always transparent |
|
|
| 100×100 | Always transparent |
| Decorative UI @1x |
| 200×200 | Always transparent |
| Decorative UI @2x |
| 300×300 | Always transparent |
| Decorative UI @3x |
| 518×316 | Always transparent | Right-side crop from top, prop 0.5 | Decorative UI partial |
Special transformations
android-icon-monochrome.png — White silhouette
Every non-transparent pixel is converted to pure white. Android 13+ uses this for Themed Icons, tinting the silhouette with the system color theme.
pixel (r, g, b, a > 10) → (255, 255, 255, a)
pixel (r, g, b, a ≤ 10) → unchanged (transparent)partial-react-logo.png — Section crop
A section of the source image is cropped without distortion:
Horizontal: right side (end)
Vertical: from the top (start)
The section is scaled proportionally to fit the 518×316 canvas
partial_logo: 0.5 → right half · partial_logo: 0.33 → right third
Android adaptive icon — Safe zone
Keep important content within the 66% center (338×338 px on a 512×512 canvas) to avoid being clipped by any Android launcher shape.
┌─────────────────┐ 512×512
│ │
│ ┌───────────┐ │
│ │ safe │ │ 338×338 (66%)
│ │ zone │ │
│ └───────────┘ │
│ │
└─────────────────┘Scripts
npm run build # compile TypeScript
npm start # start MCP server
npm run dev # run with tsx (no compile needed)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/elber-code/expo-assets-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server