MCP (Model Context Protocol) is a special interface provided by Nginx UI that allows AI agents to interact with Nginx UI. Through MCP, AI models can access and manage Nginx configuration files, perform Nginx-related operations (such as restart, reload), and get Nginx running status.
The MCP module is divided into two main functional areas:
The MCP interface is accessible through the /mcp
path and provides streaming via SSE.
The MCP interface is authenticated using the node_secret
query parameter.
For example:
http://localhost:9000/mcp?node_secret=<your_node_secret>
Resources are readable information provided by MCP, such as Nginx status.
Tools are executable operations provided by MCP, such as restarting Nginx, modifying configuration files, etc.
MCP is mainly used in the following scenarios: