Using the ToolHive CLI
Introduction
The ToolHive CLI (thv
) is a command-line tool that allows you to deploy and
manage MCP servers on your local machines or in development environments. It
provides quick deployment of MCP servers and supports advanced features like
custom permissions, network access filtering, and telemetry.
It's designed for developers who prefer working in a terminal or need to integrate MCP server management into scripts or automation workflows.
The ToolHive CLI can be used alongside the ToolHive UI, which provides a graphical interface. You can use both tools together to get the best of both worlds: the ease of use of a graphical interface and the flexibility of the CLI.
Contents
📄️ Install ToolHive
How to install, upgrade, and manage the ToolHive CLI.
📄️ Explore the registry
How to use the built-in registry to find MCP servers.
📄️ Run MCP servers
How to run MCP servers with the ToolHive CLI.
📄️ Monitor and manage MCP servers
How to monitor and manage the lifecycle of MCP servers using ToolHive.
📄️ Secrets management
How to securely manage API tokens and other sensitive data in ToolHive.
📄️ Client configuration
How to configure AI agent clients to work with ToolHive MCP servers.
📄️ Custom permissions
How to create and apply filesystem permissions and network isolation for MCP servers using permission profiles in ToolHive.
🗃️ Command reference
Detailed reference for ToolHive CLI commands
🗃️ API server
How to set up and use the ToolHive API server