Labsco
apache logo

Apache SkyWalking MCP

โ˜… 27

from apache

An MCP server for integrating AI agents with the SkyWalking observability platform and its ecosystem.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Apache SkyWalking MCP

Sky Walking logo

SkyWalking-MCP: A [Model Context Protocol][mcp] (MCP) server for integrating AI agents with Skywalking OAP and the surrounding ecosystem.

SkyWalking: an APM(application performance monitor) system, especially designed for microservices, cloud native and container-based (Docker, Kubernetes, Mesos) architectures.

Available Tools

SkyWalking MCP provides the following tools to query and analyze SkyWalking OAP data:

CategoryTool NameDescription
Tracequery_tracesQuery traces with multi-condition filtering (service, endpoint, state, tags, and time range via start/end/step). Supports full, summary, and errors_only views with performance insights.
Logquery_logsQuery logs with filters for service, instance, endpoint, trace ID, tags, and time range. Supports cold storage and pagination.
MQEexecute_mqe_expressionExecute MQE (Metrics Query Expression) to query and calculate metrics data. Supports calculations, aggregations, TopN, trend analysis, and multiple result types.
MQElist_mqe_metricsList available metrics for MQE queries. Filter by regex pattern; returns metric name, type, and catalog.
MQEget_mqe_metric_typeGet type information (REGULAR_VALUE, LABELED_VALUE, SAMPLED_RECORD) for a specific metric to help build correct MQE expressions.
Metadatalist_layersList all layers registered in SkyWalking OAP (e.g. GENERAL, MESH, K8S).
Metadatalist_servicesList all services registered in SkyWalking OAP under a specific layer.
Metadatalist_instancesList all instances of a service (e.g. pods or JVM processes).
Metadatalist_endpointsList endpoints of a service with optional keyword filtering.
Metadatalist_processesList processes of a service instance.
Eventquery_eventsQuery events (deployments, restarts, scaling) with filters for service, instance, endpoint, type, and layer.
Alarmquery_alarmsQuery alarms triggered by metric threshold breaches. Filter by scope, keyword, and tags.
Topologyquery_services_topologyQuery global or scoped service topology. Optionally filter by specific service IDs or layer.
Topologyquery_instances_topologyQuery service instance topology between a client service and a server service.
Topologyquery_endpoints_topologyQuery endpoint dependency topology for a given endpoint.
Topologyquery_processes_topologyQuery process topology for a given service instance.

Available Prompts

SkyWalking MCP provides the following prompts for guided analysis workflows:

CategoryPrompt NameDescriptionArguments
Performanceanalyze-performanceAnalyze service performance using metrics toolsservice_name (required), start (optional), end (optional)
Performancecompare-servicesCompare performance metrics between multiple servicesservices (required), metrics (optional), start (optional), end (optional)
Performancetop-servicesFind top N services ranked by a given metricmetric_name (required), top_n (optional), order (optional)
Traceinvestigate-tracesInvestigate traces for errors and performance issuesservice_id (optional), trace_state (optional), start (optional), end (optional)
Tracetrace-deep-diveDeep dive analysis of a specific tracetrace_id (required), view (optional)
Loganalyze-logsAnalyze service logs for errors and patternsservice_id (optional), log_level (optional), start (optional), end (optional)
Topologyexplore-service-topologyExplore services, instances, endpoints, and processes within a layer and time rangelayer (required), start (required), end (optional)
MQEbuild-mqe-queryHelp build MQE expressions for complex metric queriesquery_type (required), metrics (required), conditions (optional)
MQEexplore-metricsExplore available metrics and their typespattern (optional), show_examples (optional)
Utilitygenerate_durationConvert a natural-language time range into a {start, end} duration object for use with other toolstime_range (required)

Contact Us