Skip to content

MCP Commands

Manage MCP server configurations within your 1MCP instance.

These commands allow you to discover, install, configure, and manage the lifecycle of MCP servers through both manual configuration and the 1MCP registry.

For a detailed guide on server management, including registry-based installation and best practices, please see the Server Management Guide.

install

Install MCP servers from the 1MCP registry with automatic dependency resolution and version management.

bash
npx -y @1mcp/agent mcp install filesystem
npx -y @1mcp/agent mcp install --interactive

uninstall

Safely remove MCP servers with automatic backup creation and dependency validation.

bash
npx -y @1mcp/agent mcp uninstall filesystem
npx -y @1mcp/agent mcp uninstall test-server --force

Search the MCP registry for available servers.

bash
npx -y @1mcp/agent mcp search database
npx -y @1mcp/agent mcp search --category=filesystem

Manual Configuration Commands

add

Manually 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

tokens

Estimate MCP token usage for server capabilities by connecting to servers and analyzing their tools, resources, and prompts.

bash
npx -y @1mcp/agent mcp tokens --model=gpt-3.5-turbo --format=summary

See Also

Released under the Apache 2.0 License.