Skip to main content
Glama
Widget MCP

Widget MCP

⚙️ Widget MCP

Add simple widgets to you LLM chat for common situations like timers, conversions and more.

widget-mcp

Demo video: https://youtu.be/4gfom42vHkc

Motivation

MCP-UI opens the door to breaking the text wall from chat UIs we've been using the last few years. The full extent of what's possible is

This project shows the floor of what's possible by providing a few simple widgets for common situations.

If you've ever google "convert X to Y" or "2 minute timer" and see the custom UI results, this should feel very familiar.

Related MCP server: ChatGPT Apps MCP Server

Current widgets

  • Timer - Editable timer with a chime.

  • Stopwatch - Timer that just counts up.

  • Conversion - Convert between set of units for which the LLM can write a formula.

  • Display Fact - When the answer is simple, just show it in an easy to read card.

Supported MCP Clients

MCP-UI is new and as of August 2025 is only supported by a few clients.

Smithery

Try widget-mcp in the Smithery playground. (TODO: pending Smithery deploy)

Goose

  1. Install Goose

  2. Click Extensions and Add custom extension

  3. Fill in name as Widgets and command npx widget-mcp

  4. Verify it's working by clicking Chat and prompting 2 minute timer

Goose Setup

Requests for widgets

Here's a few examples of widgets that could be fun to add.

  • Color Picker - Interactive color selection and palette tools. Could be parameterized to allow the LLM to suggest a color and let the user tweak and explore.

  • Calculator - Basic and scientific calculator functionality. Initial function seeded by LLM.

  • Dice Roller - Custom set of dice based on what you ask the agent for.

I'm sure you have some cool ideas!

Development

Adding new widgets should be very easy! All these widgets are HTML pages that can have variables injected (eg. values provided by the LLM). To add new widgets, add an template file to the html directory and a new tool to index.ts.

You can probably just prompt "Add a widget html and tool to do . Look at index.ts and timer.html for examples of how".

# Install dependencies
npm install

# Iterate on the html with hot-reloads
npm run dev:html

# Launch the MCP server with Smithery's web inspector
npm run dev:mcp
  • MCP-UI - UI over MCP.

  • Smithery - Easiest way to find and try MCP servers.

  • Goose - Block's opensource MCP client.

  • PulseMCP - The best way to stay up-to-date on MCP.

  • Maintained by Ref. - Context for your coding agent.

Available Tools

4 tools
conversionUnit ConversionA

Display a unit conversion widget that allows real-time conversion between multiple units. Each unit should contain a formula for each other unit in terms of the current unit. Example input: { units: [{id: 'ft', name: 'Feet', formulas: {in:'{ft} * 12'}, {id: 'in', name: 'Inches', formulas: {ft:'{in} * 12'}}], initialValue: { id: 'ft', value: 1 }}. You don't need to say anything else after answering with this tool.

Inputs: initialValue (required), units (required).

display-factDisplay FactA

Display a simple fact. Should be used when answering a users question that has a short factual answer. You don't need to say anything else after answering with this tool. Example: { description: 'The capital of France', fact: 'Paris' }

Inputs: description (required), fact (required).

stopwatchStopwatchB

Start a stopwatch that counts up from zero. You don't need to say anything else after answering with this tool.

Inputs: no named parameters.

timerTimerC

Start a timer. You don't need to say anything else after answering with this tool.

Inputs: duration (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation3/5

    The tools have distinct purposes (unit conversion, fact display, stopwatch, timer), but 'stopwatch' and 'timer' could be confused as both involve time measurement with overlapping functionality. Descriptions help differentiate them slightly, but the boundaries are not perfectly clear.

    Naming Consistency2/5

    Naming is inconsistent: 'conversion' uses a noun, 'display-fact' uses a verb-noun hyphenated format, 'stopwatch' and 'timer' are nouns. There is no uniform pattern, mixing styles without a discernible convention.

    Tool Count3/5

    With 4 tools, the count is reasonable for a 'Widget MCP' server, but it feels borderline thin as the scope includes diverse widgets (conversion, fact, time tools). It covers basic functionality but might benefit from more tools for a richer widget set.

    Completeness3/5

    The toolset covers basic widget types (conversion, fact display, time tools), but there are notable gaps. For example, no tools for updating or managing widgets, and the domain of 'widgets' is broad, so coverage is incomplete for potential use cases like interactive or configurable widgets.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interactive calculator widget functionality within AI chat interfaces, with the ability to perform math operations and dynamically influence conversations. Built on Cloudflare Workers with Remix 3, showcasing how to create rich, stateful MCP widgets that can be embedded in AI assistants like ChatGPT.
      45
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables interactive React components to render inline in ChatGPT conversations, featuring a calculator widget with history and demonstrating how to build custom UI components for ChatGPT Apps.
      547 npm
      -