by grafana
AI-ready access to Grafana UI: full React component library—TypeScript source, MDX docs, Storybook examples, tests, and
Provides AI assistants with access to Grafana's React component library, including TypeScript source code, documentation, and design system tokens. Enables building Grafana-compatible interfaces through comprehensive component data retrieval.
Grafana UI MCP Server is an official MCP server published by grafana that provides AI assistants with tools and capabilities via the Model Context Protocol. AI-ready access to Grafana UI: full React component library—TypeScript source, MDX docs, Storybook examples, tests, and It is categorized under developer tools, design.
You can install Grafana UI MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Grafana UI MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Useful MCP listing: Grafana UI MCP Server is the kind of server we cite when onboarding engineers to host + tool permissions.
Grafana UI MCP Server is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We wired Grafana UI MCP Server into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, Grafana UI MCP Server benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Grafana UI MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Grafana UI MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend Grafana UI MCP Server for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Grafana UI MCP Server has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Strong directory entry: Grafana UI MCP Server surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Grafana UI MCP Server reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 62
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_
---
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.