# metricui [Health: Active]

**Category:** 📊 Data Visualization  
**Repository:** https://github.com/mpmcgowen/metricui  
**GitHub Stars:** 5  
**npm Downloads (last month):** 217  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/metricui

## Description
React dashboard components — API lookup, code generation, and prop validation for AI tools.

## Tools
Capabilities this server exposes over MCP:

- **list_components** — List all MetricUI components, optionally filtered by category
- **search_components** — Search MetricUI components by use case description. Returns ranked results.
- **get_component_api** — Get the full API reference for a specific MetricUI component — all props, types, defaults, examples
- **get_component_example** — Returns a complete, working code example for a MetricUI component with the requested features enabled. The example uses realistic sample data and has every relevant prop annotated. You adapt the values/labels to your specific use case — the structure and props are correct as-is.
- **generate_dashboard** — Generate a COMPLETE, production-quality MetricUI dashboard with theme presets, MetricGrid auto-layout, DashboardHeader with live status, FilterProvider + PeriodSelector, advanced KpiCards (conditions, goals, sparkline overlays), charts with reference lines and threshold bands, data-driven Callout alerts, and rich DataTable. Returns a full page.tsx file ready to use.
- **generate_data_shape** — Generate the TypeScript interface for a component's required data shape
- **generate_table_columns** — Generate DataTable column definitions from a list of fields
- **generate_provider_config** — Generate MetricProvider configuration JSX with only the fields you need
- **validate_props** — Validate a MetricUI component's prop configuration — catches unknown props, type mismatches, deprecated usage, and common mistakes
- **suggest_format** — Suggest the right format configuration for a value type
- **get_setup_guide** — Get complete setup instructions for MetricUI — install command, provider setup, CSS imports, and framework-specific configuration for Next.js, Vite, or CRA.
- **init_project** — Initialize a project for MetricUI — generates CLAUDE.md content with usage instructions so AI tools always use MetricUI components. Run this once per project.
- **search_docs** — Search all MetricUI documentation — components, props, types, patterns, format examples, and guides. Returns ranked results with snippets. Use this when a user asks conceptual questions like 'how do I set up dark mode?' or 'what format should I use for currency?'

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "metricui": {
    "command": "npx",
    "args": ["-y","@metricui/mcp-server"]
  }
}
```

## Documentation

## What metricui MCP server does

The metricui MCP server is described as a developer tool for working with MetricUI, a React dashboard component library. Its listed functions are API lookup, code generation, and prop validation. These capabilities are relevant when an AI tool needs to inspect the library’s component interface, produce React usage examples, or check whether supplied component properties match the expected API.

MetricUI itself provides dashboard building blocks including KPI cards, area, line, bar, donut, funnel, and other chart types, data tables, callouts, dashboard headers, metric grids, and layout primitives. The library also includes formatting for currencies, percentages, durations, and compact numbers; theme presets; light and dark mode; responsive layout behavior; comparison values; reference lines; threshold bands; and data-driven alerts.

## How it works

It does not specify the individual MCP tool names, input schemas, output formats, transport, authentication, or whether the server reads a local project. Treat the metricui MCP server as an assistant for producing and checking MetricUI-related React code rather than as a documented data connector.

Generated code can target the `metricui` React package. A typical MetricUI dashboard uses components such as `Dashboard`, `KpiCard`, `AreaChart`, `DonutChart`, and `DataTable`, with CSS imported from `metricui/styles.css`. The package also exposes a browser module through jsDelivr for environments without a bundler.

## Setup and configuration

The documented library installation is:

```bash
npm install metricui
```

A React application can import components from `metricui` and the stylesheet from `metricui/styles.css`. Browser-based environments without npm can import the browser build from jsDelivr and include the hosted stylesheet. These instructions cover MetricUI usage, not a separate MCP launch command or client configuration.

## Tools and capabilities

The documented capabilities are:

- Look up MetricUI APIs.
- Generate React code for MetricUI components.
- Validate MetricUI component props.
- Work with dashboard components such as KPI cards, charts, tables, and layouts.
- Use MetricUI formatting, theming, comparisons, and data-state features in generated examples.

## Limitations and notes

The metricui MCP server documentation supplied here does not identify supported MCP clients, connection transports, installation commands, authentication requirements, version constraints, or tool schemas. It also does not establish that the server fetches live dashboard data or connects to external APIs.

Confirm the repository’s MCP-specific instructions before configuring an agent.

_Full upstream README: https://allmcps.com/mcp/metricui/readme_

