Nacos MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
hostYesYour Nacos host
portYesYour Nacos main port, such as 8848
access_tokenYesYour Nacos access token, get from `login` api: /nacos/v3/auth/user/login with `username` and `password`

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_namespaces

Retrieves the list of namespaces in the current Nacos cluster.

list_services

This interface retrieves the list of services under a specified namespace. The response format depends on the withInstances parameter:withInstances=true: Returns service details with instances (ServiceDetailInfo objects). withInstances=false: Returns service metadata without instances (ServiceView objects). **NOTE: ** When withInstances=true, The API may cost too much memory and networks, If Only want get instance list with little or one service, Suggest use withInstances=false with List Service Instances.

get_service

This interface retrieves detailed information of a specified service, including metadata and clusters, not including instance list.

list_service_instances

This interface retrieves the list of instances for a specified service.

list_service_subscribers

This interface retrieves the list of subscribers for a specified service.

list_configs

This interface retrieves the list of configurations under a specified namespace.

get_config

This interface retrieves the details of the specified configuration.

list_config_history

This interface retrieves the complete publish history of a configuration.

get_config_history

This interface retrieves a specific historical change record of a configuration.

list_config_listeners

This interface retrieves the list of listeners subscribed to a specific configuration.

list_listened_configs

This interface lists the configurations subscribed to by a specific client IP address.

ID: 4znv103es6