ToolHive Tutorial: Securely Deploy and Manage MCP Servers
1 min read
Summary
ToolHive is a simple command line interface (CLI) tool written in Go that can manage and deploy MCP servers that use containerisation, ensuring security and automation of configuration.
The tool uses containers to wrap servers, handles secrets safely, and exposes a variety of server types including local Go projects, Python-based MCPs, and Node.js-based MCPs.
ToolHive also supports a range of package managers including npx, uvx, and go, and can be used to deploy Kubernetes for MCP servers.
In the blog, the author follows a step-by-step guide to installing and running ToolHive on a Ubuntu virtual machine, including installing Docker, setting up ToolHive, configuring an initial MCP server, and running a custom MCP server.
The author also demonstrates permission customisation, exposing servers on specified ports, and a variety of use cases and practical examples including launching a Python MCP from uvx and a Node.js MCP from npx.