MCP for Server Admins: How the Model Context Protocol Works

A plain-language look at the Model Context Protocol: what hosts, clients and servers do, how MCP traffic moves, and how to run MCP servers safely on a VPS.

dns WindowsVPS Team calendar_today schedule5 min read
MCP for Server Admins: How the Model Context Protocol Works
tocOn this page 8 sections
  1. What MCP Is, in One Paragraph
  2. The Three Roles: Host, Client, Server
  3. What a Server Can Offer
  4. How MCP Traffic Moves: Local vs Remote
  5. What a Typical Configuration Looks Like
  6. Running MCP Servers Safely on a VPS
  7. Where MCP Fits on a Windows VPS
  8. Key Takeaways

AI assistants have become much better at reasoning, but on their own they cannot see your files, query your database or restart a service. Developers used to close that gap by writing one-off glue code for each assistant and each tool. The Model Context Protocol (MCP) replaces that glue with one shared standard. If you run AI agents or developer tooling on a VPS, you will probably meet MCP soon, so it helps to understand what it actually does on your server.

What MCP Is, in One Paragraph

MCP is an open protocol that sets out how an AI application finds and calls external capabilities. Anthropic published it in late 2024, and many AI tools from different vendors have adopted it since. A common comparison is a universal port: you write a connector once as an MCP server, and any MCP-aware assistant can use it. You no longer need a separate plugin for each assistant. The messages are JSON-RPC 2.0, so the traffic is structured, readable JSON.

The Three Roles: Host, Client, Server

  • Host: the application the person works in, such as a desktop AI assistant, a code editor or an agent runner. The host decides which connections are allowed and asks the user for approval when needed.
  • Client: a component inside the host that keeps one connection to one MCP server. A host that talks to five servers runs five clients.
  • Server: a small program that exposes capabilities, for example reading a folder, querying SQL Server, calling an internal API or running a limited set of PowerShell actions.

The model never talks to your systems directly. It asks the host to use a capability, the host passes the request through the client, and the server does the work and returns the result.

What a Server Can Offer

An MCP server can expose three main kinds of capability:

  • Tools: actions the model can call, such as create_ticket or get_service_status. Each tool has a name, a description and an input schema.
  • Resources: read-only data the host can pull into context, such as a log file, a config file or a database row.
  • Prompts: reusable prompt templates the server offers to the user.

When a connection starts, the client and server run a handshake. Each side states which features it supports, and the client then asks the server for its list of tools, resources and prompts.

How MCP Traffic Moves: Local vs Remote

Local (stdio)

For a local server, the host starts it as a child process and exchanges messages over standard input and output. No network port is opened. On a Windows VPS, the server simply runs as a process in your RDP session, usually Node.js, Python or a compiled binary.

Remote (HTTP)

A remote server listens on an HTTP endpoint, and clients connect over the network. This lets one server be shared by several users or machines. It also makes the server a network service that you must protect like any other API.

What a Typical Configuration Looks Like

Most hosts read a JSON file that lists the servers to launch. The exact file name and location depend on the application, but the structure usually looks like this:

{
  "mcpServers": {
    "files": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "some-filesystem-server", "D:\\Projects"],
      "env": { "LOG_LEVEL": "info" }
    }
  }
}

On Windows, launchers such as npx are batch shims, so some hosts can only start them through cmd /c. If a server shows up in the host but never connects, try that first. Then check that the runtime is on the PATH of the account that runs the host.

Running MCP Servers Safely on a VPS

An MCP server does whatever its code allows, and the model chooses when to call it. Treat each server as code with access to your machine, because that is what it is.

  1. Install only servers you have reviewed. Read the source or use a publisher you trust, and pin versions rather than always pulling the latest.
  2. Scope access narrowly. Give a filesystem server one project folder, not C:\. Give a database server a read-only login unless it truly needs to write.
  3. Run under a low-privilege account. Avoid running agents and their servers as Administrator.
  4. Keep secrets out of config files you share. Pass API keys through environment variables and restrict file permissions on the config.
  5. Do not expose HTTP servers to the internet by accident. Bind them to localhost or a private network, and require authentication if remote access is necessary.
  6. Expect prompt injection. Text returned by a tool, such as a web page or a ticket body, can contain instructions meant to hijack the model. Keep human approval turned on for destructive tools.

Some quick PowerShell checks over RDP:

# Create a standard (non-admin) account for agent workloads
$pw = Read-Host -AsSecureString 'Password'
New-LocalUser -Name 'mcp-runner' -Password $pw -Description 'Runs AI agent and MCP servers'

# See what is listening, and which process owns it
Get-NetTCPConnection -State Listen |
  Select-Object LocalAddress, LocalPort, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

# Block inbound access to a remote MCP port from outside
New-NetFirewallRule -DisplayName 'Block MCP 8080 inbound' -Direction Inbound -LocalPort 8080 -Protocol TCP -Action Block

If a listener shows 0.0.0.0 as its local address when you expected 127.0.0.1, change the server's bind setting before you rely on the firewall alone. For more on defending against hostile tool output, see our guide to hardening local LLMs against prompt injection.

Where MCP Fits on a Windows VPS

MCP is most useful when an always-on machine sits close to the systems an agent needs: internal APIs, build tools, SQL databases or scheduled jobs. A VPS works well for this. Agents can run around the clock, servers stay reachable from one known place, and you can isolate the whole setup from your workstation. If you are building in this direction, our pages on a Windows VPS for development and testing and a Windows VPS for automation and bots cover sizing and use cases.

Key Takeaways

  • MCP is a common way for AI apps to call tools and read data, built on JSON-RPC.
  • Hosts run clients, clients connect to servers, and servers do the real work.
  • Local servers use stdio with no open port. Remote servers use HTTP and need the same protection as any API.
  • Use least privilege, keep access narrow and keep human approval on, because every server you add increases what an agent can reach.

Run this on your own Windows VPS

Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.

Buy a Windows VPS →

dns

Written by the WindowsVPS Team

We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.

About WindowsVPS Windows VPS guides All articles

Ready to deploy your server?

Windows or Linux VPS — up and running in under 60 seconds.