Skip to main content
Glama
mcp-interactive-ui-server

mcp-interactive-ui-server

by AiAgentKarl

mcp-interactive-ui-server

PyPI version License: MIT

MCP Apps UI toolkit — forms, dashboards, charts, tables for AI agents to render interactive UIs.

What Are MCP Apps?

MCP Apps is a 2026 extension to the Model Context Protocol that enables AI agents to go beyond text responses and render interactive user interfaces directly within MCP-compatible clients.

Instead of returning plain text or markdown, agents can generate structured UI schemas that clients render as native components — forms, dashboards, charts, tables, and multi-step wizards. This bridges the gap between conversational AI and application-level interactivity.

Why This Matters

  • Agents become app builders: Instead of describing data, agents can present it visually with charts, dashboards, and tables

  • Structured data collection: Forms and wizards let agents gather complex user input with validation

  • Richer interactions: Toggles, buttons, accordions, and tabs embedded directly in responses

  • Client-agnostic: The JSON schema approach works across any MCP client that supports UI rendering

Related MCP server: ggui

Tools (6)

Tool

Description

create_form

Generate interactive forms with text, number, select, checkbox, date fields and validation

create_dashboard

Build grid-based dashboards with stat cards, charts, tables, progress bars

create_chart

Define charts (bar, line, pie, scatter, area, donut, heatmap) with data and styling

create_table

Create sortable, filterable, paginated tables from headers and row data

create_wizard

Multi-step form wizards with per-step validation and progress tracking

render_markdown

Enhanced markdown with embedded interactive elements (buttons, toggles, inputs, tabs)

Installation

pip install mcp-interactive-ui-server

Quick Start

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "interactive-ui": {
      "command": "interactive-ui-server"
    }
  }
}

Cursor / Windsurf

Add to your MCP settings:

{
  "mcpServers": {
    "interactive-ui": {
      "command": "interactive-ui-server"
    }
  }
}

With uvx (no install needed)

{
  "mcpServers": {
    "interactive-ui": {
      "command": "uvx",
      "args": ["mcp-interactive-ui-server"]
    }
  }
}

Usage Examples

Create a Contact Form

Agent: create_form("Contact Us", [
    {"label": "Name", "type": "text", "required": true},
    {"label": "Email", "type": "email", "required": true},
    {"label": "Subject", "type": "select", "options": ["General", "Support", "Sales"]},
    {"label": "Message", "type": "textarea", "rows": 6}
])

Build a Sales Dashboard

Agent: create_dashboard("Q1 Sales", [
    {"type": "stat_card", "title": "Revenue", "value": "$142K", "trend": "up", "change": "+12%"},
    {"type": "stat_card", "title": "Orders", "value": "1,247", "trend": "up", "change": "+8%"},
    {"type": "chart", "title": "Monthly Sales", "chart_type": "bar",
     "data": {"labels": ["Jan","Feb","Mar"], "datasets": [{"label": "Sales", "values": [42,51,49]}]}},
    {"type": "progress_bar", "title": "Quarterly Target", "value": 72, "max": 100}
])

Generate a Chart

Agent: create_chart("pie",
    {"labels": ["Chrome", "Firefox", "Safari", "Edge"], "values": [65, 15, 12, 8]},
    title="Browser Market Share"
)

Interactive Markdown Report

Agent: render_markdown(
    "# Status Report\n\nSystem health: {{status_badge}}\n\n{{details}}\n\n{{action_btn}}",
    [
        {"type": "badge", "id": "status_badge", "text": "Healthy", "color": "green"},
        {"type": "accordion", "id": "details", "title": "View Details", "content": "All 12 services operational."},
        {"type": "button", "id": "action_btn", "label": "Run Diagnostics", "action": "diagnose"}
    ]
)

UI Schema

All tools return structured JSON following the mcp-ui schema specification:

{
  "$schema": "mcp-ui/<component>/v1",
  "type": "<component_type>",
  "title": "...",
  "...": "component-specific properties",
  "metadata": {
    "created_at": "ISO timestamp",
    "version": "1.0"
  }
}

Schema types: form, dashboard, chart, table, wizard, enhanced_markdown

Requirements

  • Python 3.10+

  • MCP SDK (mcp[cli]>=1.0.0)

License

MIT

Available Tools

6 tools
create_chartA

Generiert eine Chart-Definition (Bar, Line, Pie, Scatter, etc.).

Erstellt ein Chart-Schema mit Daten und Konfiguration, das MCP-Clients als interaktives Diagramm rendern können.

Unterstützte Chart-Typen: bar, line, pie, scatter, area, donut, heatmap.

Daten-Format:

  • Für bar/line/area: {"labels": ["Jan","Feb"], "datasets": [{"label": "Sales", "values": [10,20]}]}

  • Für pie/donut: {"labels": ["A","B","C"], "values": [30, 50, 20]}

  • Für scatter: {"datasets": [{"label": "Set 1", "points": [{"x": 1, "y": 2}]}]}

  • Für heatmap: {"x_labels": [...], "y_labels": [...], "values": [[...]]}

Args: chart_type: Art des Charts (bar, line, pie, scatter, area, donut, heatmap) data: Chart-Daten als Dictionary title: Chart-Titel x_label: Beschriftung X-Achse y_label: Beschriftung Y-Achse colors: Optionale Farbliste (hex oder CSS-Farbnamen) stacked: Gestapelte Darstellung (nur bar/area)

Returns: JSON-String mit dem Chart-Schema

Inputs: chart_type (required), data (required), title, x_label, +3 more. Returns: result

create_dashboardA

Generiert ein Dashboard-Layout mit verschiedenen Widget-Typen.

Erstellt eine strukturierte Dashboard-Definition mit konfigurierbarem Grid-Layout, die MCP-Clients als interaktives Dashboard rendern können.

Unterstützte Widget-Typen: chart, stat_card, table, progress_bar, metric, list, markdown.

Jedes Widget braucht mindestens: {"type": "stat_card", "title": "Users", "value": "1234"}

Args: title: Dashboard-Titel widgets: Liste von Widget-Definitionen (dicts mit type, title, etc.) description: Optionale Dashboard-Beschreibung columns: Anzahl Grid-Spalten (1-6) refresh_interval: Auto-Refresh in Sekunden (0 = kein Refresh)

Returns: JSON-String mit dem Dashboard-Schema

Inputs: title (required), widgets (required), description, columns, +1 more. Returns: result

create_formA

Generiert eine JSON-Formular-Definition mit verschiedenen Feld-Typen.

Erstellt ein strukturiertes Formular-Schema, das MCP-Clients als interaktives UI rendern können.

Unterstützte Feld-Typen: text, number, select, checkbox, date, email, password, textarea, radio, range.

Jedes Feld braucht mindestens: {"label": "Name", "type": "text"} Optional: id, required, placeholder, default, validation, options (für select/radio), min/max/step (für number/range), rows (für textarea).

Args: title: Formular-Titel fields: Liste von Feld-Definitionen (dicts mit type, label, etc.) description: Optionale Beschreibung über dem Formular submit_label: Text des Submit-Buttons layout: "vertical" oder "horizontal" Feld-Anordnung

Returns: JSON-String mit dem Formular-Schema

Inputs: title (required), fields (required), description, submit_label, +1 more. Returns: result

create_tableA

Generiert eine interaktive Tabellen-Definition mit Sortierung und Filterung.

Erstellt ein Tabellen-Schema mit Spalten-Definitionen und Daten, das MCP-Clients als interaktive Tabelle rendern können.

Args: headers: Liste von Spalten-Überschriften rows: Liste von Zeilen (jede Zeile ist eine Liste von Werten) sortable: Spalten sortierbar machen filterable: Suchfilter anzeigen page_size: Zeilen pro Seite (Pagination) title: Optionaler Tabellen-Titel

Returns: JSON-String mit dem Tabellen-Schema

Inputs: headers (required), rows (required), sortable, filterable, +2 more. Returns: result

create_wizardA

Generiert einen Multi-Step-Formular-Wizard mit Validierung.

Erstellt eine Wizard-Definition mit mehreren Schritten, die MCP-Clients als geführten Prozess rendern können. Jeder Schritt hat eigene Felder und Validierungsregeln.

Jeder Step braucht: {"title": "Schritt 1", "fields": [...]} Optional: description, validation (dict mit Regeln).

Validierungsregeln pro Step:

  • {"required_fields": ["name", "email"]}

  • {"custom": {"field_id": {"min_length": 3}}}

Args: steps: Liste von Step-Definitionen (dicts mit title, fields, etc.) title: Wizard-Gesamttitel allow_skip: Schritte überspringbar machen show_progress: Fortschrittsanzeige einblenden

Returns: JSON-String mit dem Wizard-Schema

Inputs: steps (required), title, allow_skip, show_progress. Returns: result

render_markdownA

Erweitertes Markdown mit eingebetteten interaktiven Elementen.

Kombiniert Standard-Markdown mit interaktiven UI-Komponenten wie Buttons, Toggles, Inputs und Accordions, die MCP-Clients inline rendern können.

Interaktive Elemente werden via Platzhalter {{element_id}} im Markdown eingebettet.

Unterstützte Element-Typen:

  • button: {"type": "button", "id": "btn1", "label": "Click", "action": "submit"}

  • toggle: {"type": "toggle", "id": "tog1", "label": "Dark Mode", "default": false}

  • input: {"type": "input", "id": "inp1", "placeholder": "Enter value..."}

  • accordion: {"type": "accordion", "id": "acc1", "title": "Details", "content": "..."}

  • alert: {"type": "alert", "id": "alt1", "severity": "info", "message": "Hinweis..."}

  • badge: {"type": "badge", "id": "bdg1", "text": "New", "color": "green"}

  • tabs: {"type": "tabs", "id": "tab1", "items": [{"label": "Tab 1", "content": "..."}]}

Args: content: Markdown-Inhalt (mit optionalen {{element_id}} Platzhaltern) interactive_elements: Liste interaktiver Element-Definitionen theme: "auto", "light" oder "dark"

Returns: JSON-String mit dem Enhanced-Markdown-Schema

Inputs: content (required), interactive_elements, theme. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool generates a distinct UI component type (chart, dashboard, form, table, wizard, markdown), with no overlapping purposes or ambiguous boundaries.

    Naming Consistency4/5

    Five tools follow the 'create_' prefix pattern, but 'render_markdown' breaks this by using 'render_', causing a minor inconsistency.

    Tool Count5/5

    Six tools cover the essential interactive UI components well, without being overly numerous or insufficient for the server's stated purpose.

    Completeness4/5

    The set covers major UI components (charts, forms, tables, dashboards, wizards, enhanced markdown), but lacks more specialized components like modals or cards, though these are not essential.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server that lets agents create, display, and export rich UI widgets (cards, dashboards, charts, forms) inline in conversations, with interactive iframe support in MCP Apps hosts and PNG image fallback for other clients.
      3
      MIT

    Appeared in Searches