DEV Community

Tomas Scott
Tomas Scott

Posted on

Windows Developers: How to Set Up Claude Code Locally Without VMs or Docker

Almost every programmer uses AI tools to write code today. Applications like Cursor and Claude Code generate code quickly and boost daily work. But on Windows, managing multiple programming languages and databases remains tricky. Traditional tools like WSL2 and Docker often isolate networks and consume lots of memory. This makes it hard for local AI tools to directly control your development environment.

ServBay solves this issue by adding a native Model Context Protocol (MCP) server. As a lightweight alternative to Laravel Herd on Windows, it supports over 50 programming languages and databases. It lets your local AI manage your entire stack directly on your Windows PC without virtual machines.

Laravel Herd MCP Alternative

Why Virtual Containers Are Not Ideal for Local AI Coding on Windows

Virtual setups like WSL2 or Docker create a network barrier between the virtual environment and your Windows system. Because of this, an AI assistant running on your Windows PC struggles to manage databases and services inside the container via fast, low-latency channels. Additionally, these virtual layers use extra CPU power and gigabytes of RAM.

Docker AI Alternative

Usually, Windows full-stack development requires starting Docker or a WSL2 machine. If you want Cursor or Claude Code to check your app's current state, you have to configure port forwarding, SSH keys, and file path mappings.

ServBay works differently by using a native, container-free design on Windows. It does not run a Linux kernel in the background. Instead, it runs native Windows binaries directly on your machine.

This means runtimes like Java (JDK), Go, Python, Rust, and Node.js, along with databases like PostgreSQL, MariaDB, and Redis, run as standard Windows processes. Without virtual networks blocking the way, your local AI tools can easily read and interact with your databases and servers.

Why ServBay is Great for Windows Developers

Some tools, such as Laravel Herd, provide MCP Server support to let AI control your local stack. However, Herd focuses mostly on PHP. Its Windows version also updates slower than its macOS version. ServBay offers a broader alternative. It supports over 50 full-stack services and provides an MCP Server that works with many different coding languages.

ServBay MCP Server

The Model Context Protocol (MCP) is an open industry standard managed by the Linux Foundation. It allows AI agents to interact with local software and systems securely.

If you develop full-stack projects using Python, Java, or Go, ServBay offers a native environment that works for all of them. Here is how ServBay compares to Laravel Herd on Windows:

Features / Comparison Laravel Herd (Windows) ServBay (Windows)
Supported Languages Mostly PHP and its ecosystem Java, Go, Python, Rust, Node.js, PHP, and more
Services & Tools Limited, mainly focused on PHP apps Over 50 databases, cache tools, and web servers
MCP Capabilities Controls PHP-related environments only Manages general services, domain binding, SSL setups, etc.
Architecture Relies on some ported Windows elements Native Windows binaries; no VMs or Docker required
Platform Equality Windows features lag slightly behind macOS Updated simultaneously; Windows gets identical advanced tools

Since ServBay runs natively on Windows, MCP connectors for Cursor or Claude Code can call ServBay's control commands directly using your local network (localhost) or inter-process communication. No complex network setups or middle layers are needed.

Quick Guide: Running and Configuring Local Services via Cursor on Windows 11

You can connect Cursor in ServBay's settings panel with one click. This lets your AI assistant start local services, map path variables, register local domains, and configure trusted local SSL certificates automatically.

ServBay One-Click Link to Cursor

On Windows 11, you can link the AI and your local stack by adding ServBay's path to your Cursor settings file:

{
  "mcpServers": {
    "servbay-control": {
      "command": "C:\\Program Files\\ServBay\\bin\\servbay-aigw.exe",
      "args": ["mcp"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

After adding this, you can type a simple request in Cursor's chat box, like this:

"Please run our Spring Boot app with JDK 17, and start a local Redis database. Also, prepare a Python 3.10 environment, bind our local API to api.servbay.test, and set up a trusted local SSL certificate."

Once it receives the command, the ServBay MCP Server completes the following steps directly on your Windows PC. This saves you from editing your hosts file or using command lines to make certificates manually:

  1. Starting Services: It runs the compiled local Redis binary to start your caching service.
  2. Configuring Paths: It points your project directories to the native JDK 17 and Python 3.10 paths.
  3. Domain & HTTPS Setup: It adds a mapping for api.servbay.test in Nginx and uses local cryptographic tools to generate and trust an SSL certificate for your local domain.

Once finished, the AI assistant will show the status:

I have completed the tasks:
1. Started the local Redis service (Port 6379)
2. Set up the environments (JDK 17 and Python 3.10)
3. Registered the local domain api.servbay.test and installed a trusted HTTPS certificate
You can now access your project at https://api.servbay.test.
Enter fullscreen mode Exit fullscreen mode

Summary: AI-Native Coding for Windows Developers

In the past, lightweight native development tools usually focused on macOS first. ServBay removes this limitation for Windows users.

By combining native multi-language management with the open MCP standard, ServBay provides a lightweight, battery-friendly, and AI-compatible local development base for Windows. If you are looking for an extensible, multi-language alternative to Laravel Herd on Windows, ServBay's native environment setup is a great choice.

Top comments (0)