MCP-Ambari-API
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AMBARI_HOST | No | Host address for the Ambari server | |
| AMBARI_PASS | No | Password for Ambari server authentication (e.g., "admin") | |
| AMBARI_PORT | No | Port number for the Ambari server | 8080 |
| AMBARI_USER | No | Username for Ambari server authentication (e.g., "admin") | |
| FASTMCP_HOST | No | Host address for HTTP transport | |
| FASTMCP_PORT | No | Port number for HTTP transport (also enables streamable-http mode when set) | |
| FASTMCP_TYPE | No | Transport type (stdio or streamable-http) | |
| AMBARI_LOG_LEVEL | No | Logging level for the MCP server (DEBUG, INFO, WARNING, ERROR) | |
| AMBARI_CLUSTER_NAME | No | Name of the target Ambari cluster (e.g., "TEST-AMBARI") |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Apache Ambari (Hadoop) cluster operations through the Ambari REST API: cluster, service, component, and host status; service and component start/stop/restart; configuration lookup; request and task tracking; users; current and historical alerts; Ambari Metrics (AMS) time series; and HDFS capacity reports.
Scope
Every tool call is a real request to the configured Ambari server and cluster (AMBARI_CLUSTER_NAME unless a tool accepts cluster_name). Use tools for facts; never guess, simulate, or invent results, and do not tell the user to check the Ambari UI or run curl instead.
The server only reads live Ambari state and runs service operations. Generic Hadoop theory, tuning advice, log analysis, installs, and data deletion are out of scope; say so and offer a concrete status query.
Call only the tools needed; avoid repeating the same lookup.
Reporting results
Report what the tool returned. Never claim success after an error, an empty response, or a partial result; quote the error.
set_* tools (action=start/stop/restart) submit an Ambari request; accepted is not completed. Show the returned request ID near the top (
Request ID: <id>, orUnknownif missing; never fabricate one) and point to get_request_status / get_request_tasks for progress.
Changing state
get_* tools only read; set_* tools change cluster state. If no set_* tools are listed, the server runs in read-only mode: say state changes are disabled instead of attempting them.
Run set_service_state / set_host_component_state only when the user explicitly asks for that action on a named service, component, or host. If the target is ambiguous ("restart it"), ask first.
set_all_services_state affects the whole cluster. Use them only when the user clearly asks for all services, confirm before running, and warn that live cluster state will change and may take several minutes.
If a required value (service, host, component, request ID) is missing or unclear, ask or look it up with a read tool (get_cluster_services, get_hosts, get_active_requests) instead of guessing.
Time ranges
For relative times ("yesterday", "last week"), call get_alerts_history with include_time_context=true, compute epoch-millisecond from_timestamp/to_timestamp from the returned current time, then call again with those values.
Metrics
get_ambari_metrics needs an explicit app_id and exact metric names. If unsure, find them first with get_ambari_metric_apps, get_common_metrics_catalog (search=), or get_ambari_metrics_metadata.
app_id mapping: Ambari Server=ambari_server, NameNode=namenode, DataNode=datanode, NodeManager=nodemanager, ResourceManager=resourcemanager, host-level=HOST. hostnames is optional.
Keep numbers distinct: configured values (get_configurations), capacity (get_hdfs_dfsadmin_report), and measured time series (get_ambari_metrics) are different things. State units, time window, and hosts. If no datapoints are returned, say so; never estimate.
Large results
Narrow before listing everything: get_configurations with config_type, filter, service_filter, or summarize=true; get_alerts_history with filters, limit, page_size, and start_page; get_request_tasks with status_filter (e.g. "not:COMPLETED", "FAILED") and host_filter. Say when output is truncated or only one page was shown.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_configurationsC | Unified configuration introspection tool (supersedes list_configurations & dump_all_configurations). |
| get_cluster_infoA | Retrieves basic information for an Ambari cluster. [Tool Role]: Dedicated tool for real-time retrieval of overall status and basic information for an Ambari cluster. [Core Functions]:
[Required Usage Scenarios]:
Returns: Cluster basic information (success: formatted info, failure: English error message) |
| get_active_requestsA | Retrieves currently active (in progress) requests/operations in an Ambari cluster. Shows running operations, in-progress tasks, pending requests. [Tool Role]: Dedicated tool for monitoring currently running Ambari operations [Core Functions]:
[Required Usage Scenarios]:
Returns: Active requests information (success: active request list, failure: error message) |
| get_cluster_servicesA | Retrieves the list of services with status in an Ambari cluster. [Tool Role]: Dedicated tool for real-time retrieval of all running services and basic status information in an Ambari cluster [Core Functions]:
[Required Usage Scenarios]:
[Absolutely Prohibited Scenarios]:
Returns: Cluster service list with status information (success: service list with status, failure: error message) |
| get_service_statusA | Retrieves the status information for a specific service in an Ambari cluster. [Tool Role]: Dedicated tool for real-time retrieval of specific service status and state information [Core Functions]:
[Required Usage Scenarios]:
|
| get_service_componentsA | Retrieves detailed components information for a specific service in the Ambari cluster. [Tool Role]: Dedicated tool for retrieving service component details and host assignments. [Core Functions]:
[Required Usage Scenarios]:
|
| get_service_detailsA | Retrieves detailed status and configuration information for a specific service in the Ambari cluster. [Tool Role]: Dedicated tool for retrieving comprehensive service details, including state, components, and configuration. [Core Functions]:
[Required Usage Scenarios]:
|
| get_request_statusA | Retrieves the status and progress of a specific Ambari request operation. [Tool Role]: Dedicated tool for real-time tracking and reporting of Ambari request status. [Core Functions]:
[Required Usage Scenarios]:
|
| get_request_tasksA | Retrieves task-level details for a specific Ambari request (host-by-host breakdown). [Tool Role]: Provides granular, per-host task information for an Ambari request, going beyond the summary level offered by get_request_status. [Core Functions]:
[Required Usage Scenarios]:
|
| get_hostsB | Retrieves the list of hosts in the Ambari cluster. [Tool Role]: Dedicated tool for listing all hosts registered in the Ambari cluster. [Core Functions]:
[Required Usage Scenarios]:
Returns: List of hosts (success: formatted list, failure: error message) |
| get_host_detailsA | Retrieves detailed information for a specific host or all hosts in the Ambari cluster. [Tool Role]: Dedicated tool for retrieving comprehensive host details including metrics, hardware info, and components. [Core Functions]:
[Required Usage Scenarios]:
|
| get_usersA | List all users in the Ambari system. Returns a formatted list of all users with their basic information. |
| get_userB | Get detailed information about a specific user. |
| get_alerts_historyA | Retrieve current alerts or alert history from Ambari cluster. [Tool Role]: Unified tool for retrieving both current/active alert status and historical alert events from Ambari cluster [Core Functions]:
[Required Usage Scenarios]:
|
| get_current_alertsA | Retrieve current alerts from Ambari cluster. DEPRECATED: This function is deprecated in favor of get_alerts_history with mode="current". This wrapper is maintained for backward compatibility. |
| get_ambari_metrics_metadataC | Retrieve metric metadata from Ambari Metrics service with optional filters. |
| get_common_metrics_catalogC | List supported metrics per appId (exact names only). |
| get_ambari_metric_appsB | Return discovered AMS appIds, optionally with metric counts. |
| get_hdfs_dfsadmin_reportB | Produce a DFSAdmin-style capacity and DataNode report using Ambari metrics. |
| get_ambari_metricsC | Fetch time-series metrics (exact metric names only) from Ambari Metrics. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
Several tools overlap heavily: get_service_status, get_service_details, and get_service_components all return service state information, and get_cluster_services also lists services with status. Similarly get_hosts and get_host_details (when called without a host_name) return the same data, and get_current_alerts is explicitly a deprecated duplicate of get_alerts_history with mode=current. Descriptions help but boundaries require careful reading.
Every tool follows a predictable get_<noun> snake_case pattern (get_service_status, get_cluster_info, get_request_tasks, get_ambari_metrics). No style mixing or inconsistent verb forms across the 20 tools.
At 20 tools the surface is on the heavy side for a monitoring API, and the count is inflated by redundancy (deprecated get_current_alerts, overlapping service/host tools). The breadth of Ambari concepts (services, hosts, requests, alerts, metrics, users) does justify many tools, but consolidation could trim the set.
Read/inspection coverage is broad—services, components, hosts, requests, tasks, alerts, metrics, and users are all reachable. However there are no mutation operations at all (no start/stop/restart service, no config update, no user create/del), which are core to an Ambari management API, leaving notable gaps.