vagrant
MCP server from gitrgoliveira/vagrant-mcp-server
claude mcp add --transport stdio gitrgoliveira-vagrant-mcp-server ./bin/vagrant-mcp-server \ --env MCP_PORT="8080" \ --env LOG_LEVEL="info" \ --env VSCODE_MCP="false" \ --env VM_BASE_DIR="~/.vagrant-mcp-server/vms" \ --env MCP_TRANSPORT="stdio"
How to use
The Vagrant MCP Server (Go implementation) provides AI-assisted management of development virtual machines via the Model Context Protocol. It enables AI agents to create, configure, start, stop, and destroy Vagrant-based VMs, while ensuring file synchronization between the host and the VM and allowing commands to be executed inside the VM with synchronized working directories. This server is intended to run directly on the host system where Vagrant and a virtualization provider are installed, since it requires access to the Vagrant CLI and virtualization drivers. It is not designed to run inside a container. Typical workflows include provisioning a VM for a project, installing language runtimes and toolchains inside the VM, synchronizing project files, running build/test commands inside the VM, and forwarding ports for development servers.
To use the MCP server, start the binary (for example, ./bin/vagrant-mcp-server). Once running, you can connect an AI assistant or editor integration (such as VS Code) configured to communicate over stdio (or the specified transport) and begin issuing prompts like: create a development VM for this project, run npm install in the VM, or set up a Python environment with virtualenv inside the VM. The prompts will be translated into MCP requests to manage VMs, execute commands, and synchronize files according to the configured environment.
How to install
Prerequisites
- Vagrant CLI installed and available in your PATH
- A virtualization provider (e.g., VirtualBox, VMware, Hyper-V, libvirt)
- Go 1.18+ if building from source (optional if using pre-built binaries)
- Internet access to download dependencies or pre-built binaries
Option A: Install via pre-built binary
- Download the appropriate binary for your platform from the Releases page of the repository.
- Make the binary executable (Linux/macOS):
chmod +x vagrant-mcp-server
- Move the binary into your PATH (optional):
sudo mv vagrant-mcp-server /usr/local/bin/
- Verify installation:
vagrant-mcp-server -version
Option B: Build from source
- Clone the repository:
git clone https://github.com/vagrant-mcp/server.git vagrant-mcp-server
cd vagrant-mcp-server
- Build the server (requires Go 1.18+):
make build
- Start the server (stdio mode by default):
./bin/vagrant-mcp-server
Configuration after installation
- Set environment variables as needed (see the Configuration section in the README):
- MCP_TRANSPORT (stdio or sse)
- MCP_PORT (default 8080)
- LOG_LEVEL
- VM_BASE_DIR (default: ~/.vagrant-mcp-server/vms)
Additional notes
Notes and tips:
- This server is labeled as work in progress and not yet ready for production use. Expect ongoing changes and potential instability.
- The server must run on the host system with direct access to Vagrant and virtualization drivers. Running in Docker is not supported due to the need for direct VM access and file system synchronization.
- There is no built-in authentication in the MCP server itself; security relies on the surrounding environment (e.g., VS Code integration or other front-ends) and network exposure controls. Avoid exposing the SSE transport on public networks when using SSE mode.
- VM_BASE_DIR controls where VM state and files are stored; ensure it has enough space and proper permissions.
- When syncing files, consider enabling conflict resolution strategies and exclusion patterns for sensitive data.
- If you encounter issues, increase the log level to debug and inspect server logs for prompts and MCP protocol messages.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go