
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets AI assistants retrieve Grafana UI component source code and design-system tokens.
Grafana UI MCP Server is cataloged as an MCP server attributed to grafana. An MCP server that lets AI assistants retrieve Grafana UI component source code and design-system tokens. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Grafana UI MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It is a single tool that consolidates the server's functionality through action-based routing.
It provides Grafana design system tokens such as colors, typography, spacing, and shadows.
Search can match component names and optionally documentation content.
README.md · 36124c7690b7 · Fetched 2026-11-13 08:18:10 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Grafana UI components, documentation, stories, and design system tokens. This server enables AI tools like Claude Desktop, Continue.dev, and other MCP-compatible clients to retrieve and work with Grafana's React component library seamlessly.
This MCP server provides a single unified tool called grafana_ui that consolidates all functionality through action-based routing. This reduces complexity and makes it easier for AI agents to understand and use.
grafana_ui ToolAll operations are performed through one tool with an action parameter:
{
"tool": "grafana_ui",
"arguments": {
"action": "get_component",
"componentName": "Button"
}
}
Core Component Actions:
get_component - Get TypeScript source code for any Grafana UI componentget_demo - Get Storybook demo files showing component usagelist_components - List all available Grafana UI componentsget_metadata - Get component props, exports, and metadataget_directory - Browse the Grafana UI repository structureAdvanced Grafana Actions:
get_documentation - Get rich MDX documentation with sections and examplesget_stories - Get parsed Storybook stories with interactive controlsget_tests - Get test files showing usage patterns and edge casessearch - Search components by name and optionally by documentation contentget_theme_tokens - Get Grafana design system tokens (colors, typography, spacing, etc.)get_dependencies - Get component dependency tree analysis (shallow or deep)Breaking Change: Version 2.0+ uses a unified tool interface. If you were using individual tools like
get_component,list_components, etc., you now need to use thegrafana_uitool with anactionparameter.
Before (v1.x):
{ "tool": "get_component", "arguments": { "componentName": "Button" } }
After (v2.0+):
{ "tool": "grafana_ui", "arguments": { "action": "get_component", "componentName": "Button" } }
All functionality remains the same - only the interface has changed.
The fastest way to get started - no installation required!
# Basic usage (rate limited to 60 requests/hour)
npx @shelldandy/grafana-ui-mcp-server
# With GitHub token for better rate limits (5000 requests/hour)
npx @shelldandy/grafana-ui-mcp-server --github-api-key ghp_your_token_here
# Short form
npx @shelldandy/grafana-ui-mcp-server -g ghp_your_token_here
# Using environment variable (either option works)
export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
npx @shelldandy/grafana-ui-mcp-server
# Or using the common GITHUB_TOKEN variable
export GITHUB_TOKEN=ghp_your_token_here
npx @shelldandy/grafana-ui-mcp-server
🎯 Try it now: Run npx @shelldandy/grafana-ui-mcp-server --help to see all options!
grafana-ui-mcp [options]
Options:
--github-api-key, -g <token> GitHub Personal Access Token
--grafana-repo-path, -l <path> Path to local Grafana repository (takes precedence)
--help, -h Show help message
--version, -v Show version information
Environment Variables:
GITHUB_PERSONAL_ACCESS_TOKEN Alternative way to provide GitHub token
GITHUB_TOKEN Alternative way to provide GitHub token
GRAFANA_REPO_PATH Path to local Grafana repository
Examples:
npx @shelldandy/grafana-ui-mcp-server --help
npx @shelldandy/grafana-ui-mcp-server --version
npx @shelldandy/grafana-ui-mcp-server -g ghp_1234567890abcdef
npx @shelldandy/grafana-ui-mcp-server --grafana-repo-path /path/to/grafana
npx @shelldandy/grafana-ui-mcp-server -l /path/to/grafana
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_token npx @shelldandy/grafana-ui-mcp-server
GITHUB_TOKEN=ghp_token npx @shelldandy/grafana-ui-mcp-server
GRAFANA_REPO_PATH=/path/to/grafana npx @shelldandy/grafana-ui-mcp-server
Why do you need a token?
Go to GitHub Settings:
Generate New Token:
public_repo (for optimal access to Grafana repository)Copy Your Token:
ghp_)Method 1: Command Line (Quick testing)
npx @shelldandy/grafana-ui-mcp-server --github-api-key ghp_your_token_here
Method 2: Environment Variable (Recommended)
# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
# Then simply run:
npx @shelldandy/grafana-ui-mcp-server
Method 3: Claude Desktop Configuration
{
"mcpServers": {
"grafana-ui": {
"command": "npx",
"args": ["@shelldandy/grafana-ui-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
# Test without token (should show rate limit warning)
npx @shelldandy/grafana-ui-mcp-server --help
# Test with token (should show success message)
npx @shelldandy/grafana-ui-mcp-server --github-api-key ghp_your_token --help
# Check your current rate limit
curl -H "Authorization: token ghp_your_token" https://api.github.com/rate_limit
NEW: Work with a local Grafana repository for faster development and access to uncommitted changes!
Clone the Grafana Repository:
git clone https://github.com/grafana/grafana.git
cd grafana
Use Local Path (takes precedence over GitHub API):
# Command line option
npx @shelldandy/grafana-ui-mcp-server --grafana-repo-path /path/to/grafana
npx @shelldandy/grafana-ui-mcp-server -l /path/to/grafana
# Environment variable
export GRAFANA_REPO_PATH=/path/to/grafana
npx @shelldandy/grafana-ui-mcp-server
Claude Desktop Configuration:
{
"mcpServers": {
"grafana-ui": {
"command": "npx",
"args": ["@shelldandy/grafana-ui-mcp-server"],
"env": {
"GRAFANA_REPO_PATH": "/path/to/your/grafana/repository"
}
}
}
}
The server checks sources in this order:
--grafana-repo-path or GRAFANA_REPO_PATH)--github-api-key or GITHUB_*_TOKEN)"source": "local" vs "source": "github")# Test local repository access
npx @shelldandy/grafana-ui-mcp-server --grafana-repo-path /path/to/grafana --help
# Should show: "Local Grafana repository configured: /path/to/grafana"
The MCP server provides the unified grafana_ui tool for AI assistants:
// Get Button component source code
{
"tool": "grafana_ui",
"arguments": {
"action": "get_component",
"componentName": "Button"
}
}
// List all available components
{
"tool": "grafana_ui",
"arguments": {
"action": "list_components"
}
}
// Get component metadata and props
{
"tool": "grafana_ui",
"arguments": {
"action": "get_metadata",
"componentName": "Alert"
}
}
// Get rich MDX documentation for a component
{
"tool": "grafana_ui",
"arguments": {
"action": "get_documentation",
"componentName": "Button"
}
}
// Get Storybook stories with interactive examples
{
"tool": "grafana_ui",
"arguments": {
"action": "get_stories",
"componentName": "Input"
}
}
// Get test files showing usage patterns
{
"tool": "grafana_ui",
"arguments": {
"action": "get_tests",
"componentName": "Modal"
}
}
// Search components by name
{
"tool": "grafana_ui",
"arguments": {
"action": "search",
"query": "button"
}
}
// Search components including documentation content
{
"tool": "grafana_ui",
"arguments": {
"action": "search",
"query": "form validation",
"includeDescription": true
}
}
// Get all design system tokens
{
"tool": "grafana_ui",
"arguments": {
"action": "get_theme_tokens"
}
}
// Get specific token category (colors, typography, spacing, etc.)
{
"tool": "grafana_ui",
"arguments": {
"action": "get_theme_tokens",
"category": "colors"
}
}
// Get component dependencies (shallow)
{
"tool": "grafana_ui",
"arguments": {
"action": "get_dependencies",
"componentName": "Button"
}
}
// Get deep dependency analysis
{
"tool": "grafana_ui",
"arguments": {
"action": "get_dependencies",
"componentName": "DataTable",
"deep": true
}
}
Add to your Claude Desktop configuration (~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"grafana-ui": {
"command": "npx",
"args": [
"@shelldandy/grafana-ui-mcp-server",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
Or with environment variable:
{
"mcpServers": {
"grafana-ui": {
"command": "npx",
"args": ["@shelldandy/grafana-ui-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
Add to your Cursor configuration file. Access this through:
Ctrl+Shift+P → "View: MCP Settings" → New MCP ServerCmd+Shift+P → "View: MCP Settings" → New MCP Server{
"mcp": {
"grafana-ui": {
"command": "npx",
"args": [
"@shelldandy/grafana-ui-mcp-server",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
{
"mcp": {
"grafana-ui": {
"command": "npx",
"args": ["@shelldandy/grafana-ui-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
After adding the configuration, restart Cursor to enable the MCP server. You can then use the Grafana UI tools in your conversations with Cursor's AI assistant.
Grafana UI components follow a rich multi-file structure:
packages/grafana-ui/src/components/ComponentName/
├── ComponentName.tsx # Main component implementation
├── ComponentName.mdx # Rich documentation with examples
├── ComponentName.story.tsx # Storybook stories and interactive examples
├── ComponentName.test.tsx # Test files showing usage patterns
├── types.ts # TypeScript type definitions
├── utils.ts # Utility functions
└── styles.ts # Styling utilities (if applicable)
This server provides access to all these files, giving AI assistants comprehensive understanding of each component.
The server provides access to 200+ Grafana UI components including:
Plus access to:
"Rate limit exceeded" errors:
# Solution: Add GitHub API token
npx @shelldandy/grafana-ui-mcp-server --github-api-key ghp_your_token_here
"Component not found" errors:
# Check available components first
# Use grafana_ui tool with action: "list_components" via your MCP client
# Component names are case-sensitive (e.g., "Button", not "button")
"Command not found" errors:
# Solution: Install Node.js 18+ and ensure npx is available
node --version # Should be 18+
npx --version # Should work
Network/proxy issues:
# Set proxy if needed
export HTTP_PROXY=http://your-proxy:8080
export HTTPS_PROXY=http://your-proxy:8080
npx @shelldandy/grafana-ui-mcp-server
Enable verbose logging:
# Set debug environment variable
DEBUG=* npx @shelldandy/grafana-ui-mcp-server --github-api-key ghp_your_token
# Clone the repository
git clone https://github.com/shelldandy/grafana-ui-mcp-server.git
cd grafana-ui-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Test the package
npm run test
This project is licensed under the MIT License - see the LICENSE file for details.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Made with ❤️ by shelldandy
Star ⭐ this repo if you find it helpful!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Grafana UI MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/grafana-ui-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.