
Transparent Background Sample
Supports UIby localden
A demonstration MCP App showing how to create transparent, theme-aware widgets that blend seamlessly with Claude's chat surface.
What it does
This is a reference implementation of an MCP App widget designed to blend directly into the chat interface. Unlike standard widgets that sit in opaque boxes, this app removes the background and adopts the host's theme tokens (colors, fonts, and radii) in real-time.
Key features
- Seamless Integration: Uses transparent backgrounds to eliminate the "boxed-in" look of standard widgets.
- Dynamic Theming: Automatically adapts to light and dark modes using host-provided theme tokens.
- Theme Awareness: Implements the
ui/notifications/host-context-changedevent to update styles instantly when the user switches themes. - Borderless Design: Explicitly requests a borderless frame via
prefersBorder: falsefor a native-feeling experience.
Installation
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"transparent-widget-sample": {
"command": "npm",
"args": ["start", "--prefix", "/absolute/path/to/mcp-app-transparent-bg", "--", "--stdio"]
}
}
}
Claude.ai Web
- Tunnel your local server using ngrok:
ngrok http 3030 - Go to Settings → Connectors → Add custom connector
- Enter the ngrok URL:
https://<your-ngrok-host>/mcp
Supported hosts
- claude
Quick install
npm install && npm startInformation
- Pricing
- free
- Published






