Realtime Sales Dashboard
Click on "Deploy 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., "@Realtime Sales Dashboardshow the live sales dashboard"
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.
Realtime Sales Dashboard — MCP Apps + WebSocket
A live, auto-refreshing sales dashboard built as an MCP (Model Context Protocol) server with an embedded rich UI. The dashboard streams simulated sales data for Indian states via WebSocket, rendering KPI cards, state-level rankings, sparkline charts, and a live activity feed — all inside an MCP App iframe.
Article
Read the full article for more details on how this functionality is added -
How I Added WebSocket-Powered Realtime Streaming to MCP Apps
Related MCP server: akapal-mcp-portfolio
Demo
Key Features
Live KPI Cards — Revenue, Orders, Conversion Rate, AOV, and New Customers with delta indicators and sparkline micro-charts
State Rankings Chart — Horizontal bar chart (Chart.js) ranking all states by the selected metric, with toggleable state chips
Activity Feed — Real-time stream of simulated order, conversion, and customer events across Indian cities
WebSocket Push — Sub-2-second data refresh via a Python WebSocket server
Prerequisites
Node.js ≥ 18
Python ≥ 3.10
npm (comes with Node.js)
Quick Start
1. Install dependencies
# Node.js dependencies
npm install
# Python dependencies
pip install -r requirements.txt2. Start the WebSocket server
python ws_server.pyYou should see:
🚀 WebSocket server starting on ws://localhost:8765
📡 Dashboard clients connect to: ws://localhost:8765
⏱️ Push interval: 1.8s
✅ Server listening on ws://localhost:87653. Start the MCP server
In a separate terminal:
# Development (with hot-reload via tsx)
npm run dev
# — or — Production
npm run build
npm startYou should see:
🚀 MCP Apps Realtime Sales Dashboard server running at http://localhost:3000
📡 MCP endpoint: http://localhost:3000/mcpLicense
This project is licensed under the Apache License 2.0.
This server cannot be deployed
Maintenance
Related MCP Connectors
- AuroraOAuthbuild.aurora
Create, edit, preview, and deploy full-stack web apps to a live URL from any MCP client.
Public read-only Précis Finance MCP demo with synthetic data; no account or credentials required.
- UpscrapeOAuthcom.upscrape
Real-time data APIs for 50+ commerce, grocery, social and maps platforms over one OAuth MCP server
1 Agent-native commerce with trusted catalog, durable carts, and Stripe Checkout via MCP and UCP.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceMCP server that controls an interactive dashboard demo, providing tools to toggle features, update stats, set messages, and simulate traffic via Cloudflare Workers.-
- FlicenseNot gradedqualityBmaintenanceMCP server exposing portfolio and brokerage data through SSE transport, with tools for account summaries, holdings, quotes, market data, and order previews, backed by mock data with live quote fallback.-
- FlicenseNot gradedqualityCmaintenanceMCP server for controlling a real-time interactive dashboard deployed on Cloudflare Workers. It provides tools to toggle features, update statistics, set messages, and simulate traffic.-
- FlicenseAqualityBmaintenanceMCP 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-