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.

Configure installed backends ​

setup ​

Configure CodeGraph, Code Review Graph, or Serena with a maintained example:

bash
1mcp mcp setup --known codegraph

Registry Commands ​

install ​

Generate backend configuration from registry metadata. Use the interactive wizard to select a server.

bash
1mcp mcp install --interactive

uninstall ​

Remove server configuration, creating a backup before the write by default.

bash
1mcp mcp uninstall filesystem

Search the MCP registry for available servers.

bash
1mcp mcp search database

Manual Configuration Commands ​

add ​

Manually add a new MCP server to the configuration.

bash
1mcp mcp add my-server --type=stdio -- node server.js

remove ​

Remove an MCP server from the configuration.

bash
1mcp mcp remove my-server

update ​

Update an existing MCP server's configuration.

bash
1mcp mcp update my-server --tags=prod

enable / disable ​

Enable or disable an MCP server without removing it.

bash
1mcp mcp disable my-server

list ​

List all configured MCP servers.

bash
1mcp mcp list --tags=prod

status ​

Check the status and details of configured servers.

bash
1mcp mcp status my-server

tokens ​

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

bash
1mcp mcp tokens --model=gpt-3.5-turbo --format=summary

tools ​

List, disable, and re-enable individual tools for a configured server without disabling the entire server.

bash
1mcp mcp tools list filesystem --disabled
1mcp mcp tools disable filesystem write_file

Runtime Operations ​

restart ​

Restart a static backend or one or more active instances of a template backend in the running aggregated runtime.

bash
1mcp mcp restart my-server

See Also ​

Released under the Apache 2.0 License.