Skip to content

MCP Commands

Manage MCP server configurations within your 1MCP instance.

These commands allow you to add, remove, update, and manage the lifecycle of the MCP servers that 1MCP will proxy.

For a detailed guide on server management, including transport types and best practices, please see the Server Management Guide.

Commands

add

Add a new MCP server to the configuration.

bash
npx -y @1mcp/agent mcp add my-server --type=stdio --command="node server.js"

remove

Remove an MCP server from the configuration.

bash
npx -y @1mcp/agent mcp remove my-server

update

Update an existing MCP server's configuration.

bash
npx -y @1mcp/agent mcp update my-server --tags=prod

enable / disable

Enable or disable an MCP server without removing it.

bash
npx -y @1mcp/agent mcp disable my-server

list

List all configured MCP servers.

bash
npx -y @1mcp/agent mcp list --tags=prod

status

Check the status and details of configured servers.

bash
npx -y @1mcp/agent mcp status my-server

See Also

Released under the Apache 2.0 License.