Skip to main content
Glama
thecuriousarchitect09

claude-mcp-render-local-widgets

Claude.ai UI widgets examples

Two standalone servers, each demonstrating a different Prefab pattern.

Install

python -m venv venv && source venv/bin/activate
pip install -r requirements.txt

Related MCP server: ggui

1. chat_app.py — interactive, calls back to the server

Pattern: FastMCPApp with two tools —

  • chat_widget (@app.ui()) — the entry point the model calls, visible in the model's tool list.

  • send_message (@app.tool()) — UI-only (never shown to the model), called by the widget's Form.on_submit via CallTool.

Use this pattern whenever the UI needs to write data, trigger backend work, or fetch something fresh — anything beyond just displaying what the tool returned.

fastmcp dev apps chat_app.py     # preview in browser
python chat_app.py               # run for Claude Desktop (stdio)

2. chart_app.py — data visualization, no callback needed

Pattern: a single @mcp.tool(app=True) that returns a PrefabApp wrapping a BarChart. No FastMCPApp, no second tool — charts render entirely client-side (tooltips, legend, hover) from the data you pass in once. Use this pattern whenever the UI's job is just to display what the tool already computed.

fastmcp dev apps chart_app.py    # preview in browser
python chart_app.py              # run for Claude Desktop (stdio)

Swap BarChart/ChartSeries for LineChart, AreaChart, PieChart, RadarChart, or RadialChart — same data + series shape for all of them (PieChart uses data_key/name_key instead of series).

Connecting to claude.ai (web) instead of Desktop

Follow the ngrok way to tunnel local mcp server Read the installation guide

Which pattern for your own tool?

Your UI needs to...

Use

Just display data the tool computed

@mcp.tool(app=True) — like chart_app.py

Submit forms, trigger backend actions, refresh data

FastMCPApp with @app.ui() + @app.tool() — like chat_app.py

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/thecuriousarchitect09/claude-mcp-render-local-widgets'

If you have feedback or need assistance with the MCP directory API, please join our Discord server