메트릭, 로그, 알림 및 이상 탐지를 포함한 실시간 인프라 모니터링 데이터와 AI 어시스턴트 간의 상호작용을 지원합니다.
다른 이름 netdata/netdata, mcp-server
- 스타
- 81,408
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 2.12.3
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- GPL-3.0
Netdata MCP란?
Netdata은(는) MCP server입니다. 메트릭, 로그, 알림 및 이상 탐지를 포함한 실시간 인프라 모니터링 데이터와 AI 어시스턴트 간의 상호작용을 지원합니다.
프로젝트 README에서 생성된 요약
Netdata MCP server 정보
Netdata는 2.6.0 버전부터 Netdata Agents 및 Parents에 직접 내장된 MCP server를 제공합니다. 이를 통해 AI 어시스턴트는 하드웨어 사양, 운영 체제 상세 정보, 스트리밍 토폴로지를 포함한 실시간 인프라 모니터링 데이터에 접근할 수 있습니다. 사용자는 ML 기반의 이상 탐지를 통해 복잡한 메트릭을 쿼리하고, 메트릭 상관관계 및 스코어링을 통해 근본 원인 분석을 수행할 수 있습니다.
연결 방식은 클라이언트의 기능에 따라 달라집니다. HTTP 또는 SSE를 지원하는 AI 클라이언트는 Netdata 인스턴스에 직접 연결할 수 있습니다. stdio로 제한된 클라이언트의 경우, 개발자는 npx를 통해 mcp-remote 도구를 사용하거나 Go, Node.js, Python을 사용하여 nd-mcp와 같은 브릿지를 구축할 수 있습니다. systemd-journal, windows-events 또는 프로세스 모니터링과 같은 민감한 기능에 접근하려면 Authorization Bearer 헤더를 통해 임시 MCP API key를 전달해야 합니다.
가시성 수준은 연결 지점에 따라 다릅니다. 단독 노드는 해당 특정 머신의 데이터만 제공하는 반면, Parent 노드는 어시스턴트가 연결된 모든 자식 노드를 볼 수 있도록 합니다. 이러한 설정을 통해 전체 인프라 토폴로지에 걸쳐 자동화된 관측성 작업을 수행할 수 있습니다.
활용 사례
- 1근본 원인 분석 수행메트릭 상관관계와 이상 탐지를 사용하여 시스템 문제의 원인을 식별하도록 AI 어시스턴트에게 요청합니다.
- 2실시간 시스템 알림 모니터링AI 에이전트가 활성 알림을 추적하고 알림 상태 변경 이력을 검토하도록 합니다.
- 3시스템 로그 탐색문제 해결을 위해 AI 어시스턴트가 systemd-journal 또는 windows-events 로그를 조사하도록 요청합니다.
- 4인프라 메타데이터 검색AI를 사용하여 노드 전반의 하드웨어 사양 및 운영 체제 상세 정보를 매핑합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Netdata MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 Netdata MCP 설치
$ claude mcp add --transport http mcp-server https://app.netdata.cloud/api/v1/mcpCursor에 Netdata MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "https://app.netdata.cloud/api/v1/mcp"
}
}
}VS Code에 Netdata MCP 설치
.vscode/mcp.json
{
"servers": {
"mcp-server": {
"type": "http",
"url": "https://app.netdata.cloud/api/v1/mcp"
}
}
}Codex에 Netdata MCP 설치
~/.codex/config.toml
[mcp_servers.mcp-server] url = "https://app.netdata.cloud/api/v1/mcp"
Gemini CLI에 Netdata MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server": {
"httpUrl": "https://app.netdata.cloud/api/v1/mcp"
}
}
}구성
NETDATA_MCP_API_KEY
| 이름 | 설명 | 유형 |
|---|---|---|
| NETDATA_MCP_API_KEY | — |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 원격 엔드포인트가 HTTPS 사용통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음검사되지 않음
README
GitHub에서 보기Netdata MCP
All Netdata Agents and Parents (v2.6.0+) are Model Context Protocol (MCP) servers, enabling AI assistants to interact with your infrastructure monitoring data.
Every Netdata Agent and Parent includes an MCP server, listening at same port the dashboard is listening at (default: 19999).
Netdata provides comprehensive access to all available observability data through MCP, including complete metadata:
- Node Discovery - Hardware specifications, operating system details, version information, streaming topology, and associated metadata
- Metrics Discovery - Full-text search capabilities across contexts, instances, dimensions, and labels
- Function Discovery - Access to system functions including
processes,network-connections,streaming,systemd-journal,windows-events, etc. - Alert Discovery - Real-time visibility into active and raised alerts
- Metrics Queries - Complex aggregations and groupings with ML-powered anomaly detection
- Metrics Scoring - Root cause analysis leveraging anomaly detection and metric correlations
- Alert History - Complete alert transition logs and state changes
- Function Execution - Execute Netdata functions on any connected node (requires Netdata Parent)
- Log Exploration - Access logs from any connected node (requires Netdata Parent)
For sensitive features currently protected by Netdata Cloud SSO, a temporary MCP API key is generated on each Netdata instance. When presented via the Authorization: Bearer header, this key unlocks access to sensitive data and protected functions (like systemd-journal, windows-events and processes). This temporary API key mechanism will eventually be replaced with a new authentication system integrated with Netdata Cloud.
AI assistants have different visibility depending on where they connect:
- Netdata Cloud: (coming soon) Full visibility across all nodes in your infrastructure
- Netdata Parent Node: Visibility across all child nodes connected to that parent
- Netdata Child/Standalone Node: Visibility only into that specific node
Transport Options
Netdata implements the MCP protocol with multiple transport options:
| Transport | Endpoint | Use Case | Version Requirement |
|---|---|---|---|
| WebSocket | ws://YOUR_IP:19999/mcp |
Original transport, requires nd-mcp bridge for stdio clients | v2.6.0+ |
| HTTP Streamable | http://YOUR_IP:19999/mcp |
Direct connection from AI clients supporting HTTP | v2.7.2+ |
| SSE | http://YOUR_IP:19999/sse |
Server-Sent Events for real-time streaming | v2.7.2+ |
- Direct Connection (v2.7.2+): AI clients that support HTTP or SSE transports can connect directly to Netdata
- Bridge Required: AI clients that only support stdio need the
nd-mcp(stdio-to-websocket) ormcp-remote(stdio-to-http or stdio-to-sse) bridge
Official MCP Remote Client (mcp-remote)
If your AI client doesn't support HTTP/SSE directly and you don't want to use nd-mcp, you can use the official MCP remote client (requires Netdata v2.7.2+):
# Export your MCP key once per shell
export NETDATA_MCP_API_KEY="$(cat /var/lib/netdata/mcp_dev_preview_api_key)"
# For HTTP transport
npx mcp-remote@latest --http http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer $NETDATA_MCP_API_KEY"
# For SSE transport
npx mcp-remote@latest --sse http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer $NETDATA_MCP_API_KEY"
Note: The --allow-http flag is required for non-HTTPS connections. Only use this on trusted networks as traffic will not be encrypted.
Finding the nd-mcp Bridge
Note: With the new HTTP and SSE transports, many AI clients can now connect directly to Netdata without nd-mcp. Check your AI client's documentation to see if it supports direct HTTP or SSE connections.
The nd-mcp bridge is only needed for AI clients that:
- Only support
stdiocommunication (like some desktop applications) - Cannot use HTTP or SSE transports directly
- Cannot use
npx mcp-remote@latest
The nd-mcp bridge needs to be available on your desktop or laptop where your AI client runs. Since most users run Netdata on remote servers rather than their local machines, you have two options:
- If you have Netdata installed locally - Use the existing nd-mcp
- If Netdata is only on remote servers - Build nd-mcp on your desktop/laptop
Option 1: Using Existing nd-mcp
If you have Netdata installed on your desktop/laptop, find the existing bridge:
Linux
# Try these locations in order:
which nd-mcp
ls -la /usr/sbin/nd-mcp
ls -la /usr/bin/nd-mcp
ls -la /opt/netdata/usr/bin/nd-mcp
ls -la /usr/local/bin/nd-mcp
ls -la /usr/local/netdata/usr/bin/nd-mcp
# Or search for it:
find / -name "nd-mcp" 2>/dev/null
Common locations:
- Native packages (apt, yum, etc.):
/usr/sbin/nd-mcpor/usr/bin/nd-mcp - Static installations:
/opt/netdata/usr/bin/nd-mcp - Built from source:
/usr/local/netdata/usr/bin/nd-mcp
macOS
# Try these locations:
which nd-mcp
ls -la /usr/local/bin/nd-mcp
ls -la /usr/local/netdata/usr/bin/nd-mcp
ls -la /opt/homebrew/bin/nd-mcp
# Or search for it:
find / -name "nd-mcp" 2>/dev/null
Windows
# Check common locations:
dir "C:\Program Files\Netdata\usr\bin\nd-mcp.exe"
dir "C:\Netdata\usr\bin\nd-mcp.exe"
# Or search for it:
where nd-mcp.exe
Option 2: Building nd-mcp for Your Desktop
If you don't have Netdata installed loca you can build just the nd-mcp bridge. Netdata provides three implementations - choose the one that best fits your environment:
-
Go bridge (recommended) - Go bridge source code
- Produces a single binary with no dependencies
- Creates executable named
nd-mcp(nd-mcp.exeon windows) - Includes both
build.shandbuild.bat(for Windows)
-
Node.js bridge - Node.js bridge source code
- Good if you already have Node.js installed
- Creates script named
nd-mcp.js - Includes
build.sh
-
Python bridge - Python bridge source code
- Good if you already have Python installed
- Creates script named
nd-mcp.py - Includes
build.sh
To build:
# Clone the Netdata repository
git clone https://github.com/netdata/netdata.git
cd netdata
# Choose your preferred implementation
cd src/web/mcp/bridges/stdio-golang/ # or stdio-nodejs/ or stdio-python/
# Build the bridge
./build.sh # On Windows with the Go version, use build.bat
# The executable will be created with different names:
# - Go: nd-mcp
# - Node.js: nd-mcp.js
# - Python: nd-mcp.py
# Test the bridge with your Netdata instance (replace localhost with your Netdata IP)
./nd-mcp ws://localhost:19999/mcp # Go bridge
./nd-mcp.js ws://localhost:19999/mcp # Node.js bridge
./nd-mcp.py ws://localhost:19999/mcp # Python bridge
# You should see:
# nd-mcp: Connecting to ws://localhost:19999/mcp...
# nd-mcp: Connected
# Press Ctrl+C to stop the test
# Get the absolute path for your AI client configuration
pwd # Shows current directory
# Example output: /home/user/netdata/src/web/mcp/bridges/stdio-golang
# Your nd-mcp path would be: /home/user/netdata/src/web/mcp/bridges/stdio-golang/nd-mcp
Important: When configuring your AI client, use the full absolute path to the executable:
- Go bridge:
/path/to/bridges/stdio-golang/nd-mcp - Node.js bridge:
/path/to/bridges/stdio-nodejs/nd-mcp.js - Python bridge:
/path/to/bridges/stdio-python/nd-mcp.py
Verify the Bridge Works
Once you have nd-mcp (either from existing installation or built), test it:
# Test connection to your Netdata instance (replace YOUR_NETDATA_IP with actual IP)
/path/to/nd-mcp ws://YOUR_NETDATA_IP:19999/mcp
# You should see:
# nd-mcp: Connecting to ws://YOUR_NETDATA_IP:19999/mcp...
# nd-mcp: Connected
# Press Ctrl+C to stop the test
Using MCP Remote Client
The official MCP remote client (mcp-remote) is an alternative bridge that enables stdio-only AI clients to connect to Netdata's HTTP and SSE transports (requires Netdata v2.7.2+). Unlike nd-mcp which only supports WebSocket, mcp-remote provides broader transport compatibility.
When to Use MCP Remote
Use mcp-remote when:
- Your AI client only supports stdio communication
- You want to use HTTP or SSE transports instead of WebSocket
- You're running Netdata v2.7.2 or later
- You don't want to build/install nd-mcp
Installation
No installation required - mcp-remote runs via npx:
# Test the connection
npx mcp-remote@latest --http http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer YOUR_API_KEY"
Transport Options
mcp-remote supports multiple transport strategies:
# HTTP transport (recommended)
npx mcp-remote@latest --http http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer YOUR_API_KEY"
# SSE transport
npx mcp-remote@latest --sse http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer YOUR_API_KEY"
# Auto-detect with fallback (tries SSE first, falls back to HTTP)
npx mcp-remote@latest --transport sse-first http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer YOUR_API_KEY"
# HTTPS (no --allow-http flag needed)
npx mcp-remote@latest --http https://YOUR_NETDATA_IP:19999/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Common Options
| Option | Description | Example |
|---|---|---|
--http |
Use HTTP transport | --http http://host:19999/mcp |
--sse |
Use SSE transport | --sse http://host:19999/mcp |
--allow-http |
Allow non-HTTPS connections (required for HTTP URLs) | --allow-http |
--header |
Add custom headers (for authentication) | --header "Authorization: Bearer KEY" |
--transport |
Transport strategy | --transport sse-first (tries SSE, falls back to HTTP) |
--debug |
Enable debug logging | --debug |
--host |
OAuth callback host (default: localhost) | --host 127.0.0.1 |
| Port number | OAuth callback port (optional) | 9696 |
Authentication
For Netdata MCP, pass the API key via the Authorization header:
# Using environment variable (recommended)
export NETDATA_MCP_API_KEY="$(cat /var/lib/netdata/mcp_dev_preview_api_key)"
npx mcp-remote@latest --http http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer $NETDATA_MCP_API_KEY"
Security Note: The --allow-http flag is required for non-HTTPS connections. Only use this on trusted networks as traffic will not be encrypted.
Troubleshooting
Connection Issues:
# Enable debug logging
npx mcp-remote@latest --debug --http http://YOUR_NETDATA_IP:19999/mcp \
--allow-http \
--header "Authorization: Bearer YOUR_API_KEY"
# Check debug logs (stored in ~/.mcp-auth/)
cat ~/.mcp-auth/*_debug.log
Clear Authentication State:
# Remove cached credentials
rm -rf ~/.mcp-auth
Spaces in Arguments:
Some AI clients (Cursor, Claude Desktop on Windows) have issues with spaces in arguments. Use environment variables as a workaround:
{
"mcpServers": {
"netdata": {
"command": "npx",
"args": [
"mcp-remote@latest",
"--http",
"http://YOUR_IP:19999/mcp",
"--allow-http",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Version Management
Always use the latest version:
# Force npx to check for latest version
npx mcp-remote@latest --http http://YOUR_NETDATA_IP:19999/mcp
Or in AI client configurations:
{
"args": ["mcp-remote@latest", "--http", "..."]
}
For more details, see the official mcp-remote documentation.
Finding Your API Key
To access sensitive functions like logs and live system information, you need an API key. Netdata automatically generates an API key on startup. The key is stored in a file on the Netdata server you want to connect to.
You need the API key of the Netdata you will connect to (usually a Netdata Parent).
Note: This temporary API key mechanism will eventually be replaced by integration with Netdata Cloud.
Find the API Key File
# Try the default location first:
sudo cat /var/lib/netdata/mcp_dev_preview_api_key
# For static installations:
sudo cat /opt/netdata/var/lib/netdata/mcp_dev_preview_api_key
# If not found, search for it:
sudo find / -name "mcp_dev_preview_api_key" 2>/dev/null
Copy the API Key
The file contains a UUID that looks like:
a1b2c3d4-e5f6-7890-abcd-ef1234567890
Copy this entire string - you'll need it for your AI client configuration.
No API Key File?
If the file doesn't exist:
- Ensure you have a recent version of Netdata
- Restart Netdata:
sudo systemctl restart netdata - Check the file again after restart
AI Client Configuration
AI clients can connect to Netdata MCP in different ways depending on their transport support:
Direct Connection (HTTP/SSE)
For AI clients that support HTTP or SSE transports:
{
"mcpServers": {
"netdata": {
"type": "http",
"url": "http://IP_OF_YOUR_NETDATA:19999/mcp",
"headers": [
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Or for SSE:
{
"mcpServers": {
"netdata": {
"type": "sse",
"url": "http://IP_OF_YOUR_NETDATA:19999/mcp?transport=sse",
"headers": [
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Using nd-mcp Bridge (stdio)
For AI clients that only support stdio:
{
"mcpServers": {
"netdata": {
"command": "/usr/sbin/nd-mcp",
"args": [
"--bearer",
"YOUR_API_KEY",
"ws://IP_OF_YOUR_NETDATA:19999/mcp"
]
}
}
}
Using Official MCP Remote Client
{
"mcpServers": {
"netdata": {
"command": "npx",
"args": [
"mcp-remote@latest",
"--http",
"http://IP_OF_YOUR_NETDATA:19999/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Replace:
IP_OF_YOUR_NETDATA: Your Netdata instance IP/hostnameYOUR_API_KEY: The API key from the file mentioned above/usr/sbin/nd-mcp: With your actual nd-mcp path (if using the bridge)
Multiple MCP Servers
You can configure multiple Netdata instances:
{
"mcpServers": {
"netdata-production": {
"command": "/usr/sbin/nd-mcp",
"args": ["--bearer", "PROD_KEY", "ws://prod-parent:19999/mcp"]
},
"netdata-testing": {
"command": "/usr/sbin/nd-mcp",
"args": ["--bearer", "TEST_KEY", "ws://test-parent:19999/mcp"]
}
}
}
Legacy Query String Support
For compatibility with older tooling, Netdata still accepts the ?api_key=YOUR_API_KEY query parameter on the /mcp endpoints. New integrations should prefer the Authorization: Bearer YOUR_API_KEY header, but the query-string form remains available if you are migrating gradually.
AI Client Specific Documentation
For detailed configuration instructions for specific AI clients, see:
Chat Clients:
- Claude Desktop - Anthropic's desktop AI assistant
- Cursor - AI-powered code editor
- Visual Studio Code - VS Code with MCP support
- JetBrains IDEs - IntelliJ, PyCharm, WebStorm, etc.
- Netdata Web Client - Built-in web-based AI chat
DevOps Copilots:
- Claude Code - Anthropic's CLI for Claude
- Gemini CLI - Google's Gemini CLI
- OpenAI Codex CLI - OpenAI's Codex CLI
- Crush - Charmbracelet's glamorous terminal AI
- OpenCode - SST's terminal-based AI assistant
Each guide includes specific transport support matrices and configuration examples optimized for that client.
Netdata MCP 질문
Netdata MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --transport http mcp-server https://app.netdata.cloud/api/v1/mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Netdata MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
Netdata MCP를 통해 AI 어시스턴트가 어떤 데이터에 접근할 수 있나요?
어시스턴트는 노드 검색 상세 정보, 메트릭 검색, 프로세스 및 네트워크 연결과 같은 시스템 기능, 실시간 알림 및 로그에 접근할 수 있습니다.
민감한 기능에 대한 인증은 어떻게 처리되나요?
민감한 기능은 각 Netdata 인스턴스에서 생성되는 임시 MCP API key로 보호되며, Authorization: Bearer 헤더를 통해 전달해야 합니다.