AI-Managed VPS Server: How to Manage a Cloud Server with MCP

Published Author: Oren 12 min read

Table of contents
  1. Key takeaways
  2. What is MCP and how does it connect an AI application to a cloud server?
  3. What does a management action through MCP look like?
  4. From a natural-language request to a tool call
  5. An example of managing cloud resources
  6. How do you connect Claude to an MCP server?
  7. What are the benefits of connecting AI to server management?
  8. Which tasks and tools can you expose to AI?
  9. How do you protect a server managed through MCP?
  10. Minimal permissions and approval for sensitive actions
  11. External content, poisoning and isolating the runtime environment
  12. How do you choose an AI-managed VPS server for your work?
  13. Summary
  14. FAQ
  15. Does MCP run the AI model on the VPS?
  16. Can Claude perform an action on the server without approval?
  17. Does an MCP connection give the AI root access?
  18. What do I need to manage Hetzner resources through MCP?
  19. What is the difference between MCP and an SSH connection?
  20. Is MCP suitable for running a local AI model?

An AI-managed VPS server connected through MCP lets an AI application request information and perform defined actions on the server, so it may suit anyone who wants to simplify operational tasks without giving up permission boundaries. The connection grants access only to the actions and information defined in advance, and it does not give the model automatic control over your entire cloud environment.

This approach may suit website owners, development teams and operations staff who perform recurring tasks and want to phrase requests in natural language. Instead of typing commands every time, you can ask the application to check a status or run an available action. The boundaries still matter: a request in natural language does not replace setting permissions, verification or judgment.

Key takeaways

  • MCP connects an AI application to the tools and resources defined for it.
  • Tools enable actions, and resources make information available to the application.
  • The available actions depend on the MCP server and the permissions granted to it.
  • You can request information or an action in natural language, but not every request matches an available tool.
  • Human approval is especially important before a sensitive or irreversible change.
  • Match the VPS specifications to the workload, separately from configuring the MCP connection.

The actual scope of control is determined by the tools and permissions you define for the connection.

What is MCP and how does it connect an AI application to a cloud server?

MCP is an open standard that lets an AI application talk to an MCP server that exposes defined actions and information to it. An MCP server is a software component that exposes tools for performing actions and resources for retrieving information to an AI application.

A connection has three components: an MCP client, an MCP server, and tools or resources. The MCP client is the AI application that connects, such as Claude. The server receives the client's request and exposes only the access defined for the connection, to specific systems and actions.

An AI application receives information from an MCP server in the cloud

When you ask to check the server's status, the application can use a read tool or receive information from a suitable resource. A request to create a pull request, on the other hand, runs a tool that performs an action. Tools and resources are different types of access: retrieving information is not the same as a request that changes the server.

MCP connects AI applications to data sources and tools, and the application connects to an MCP server that provides access to defined systems and actions. The open MCP standard defines how the connection works, but it does not require every server to expose the same tools or data.

This distinction matters in day-to-day management: an information request can return data without changing settings, while a write tool may change a configuration or a resource. The server exposes to the AI only the types of information and actions set for the connection.

What does a management action through MCP look like?

If you ask which servers are managed in your account, the application can choose a suitable read tool from the tools the MCP server has exposed. The request goes through several stages, and the server only executes a call to a tool that is defined and available.

The result depends on the functions that the specific MCP server exposes, not on the name MCP alone. This is what a typical request flow looks like:

  1. You phrase a request, for example to check which servers are active in your account.
  2. The AI application identifies a suitable tool among the tools available to it.
  3. The MCP server receives the call and runs the tool the application selected.
  4. The result returns to the application, which displays it or continues the conversation with it.

From a natural-language request to a tool call

The natural-language phrasing describes the goal, and the application matches it to an available tool. If the tool returns a status, the server does not need to change any settings. If the request asks for a change, the application needs to choose a tool that performs it, and the action is subject to the permissions that have been defined.

It is worth distinguishing between a request such as "show the website's status" and "restart the server". The first asks for information; the second changes the state of the service. Overly general commands may match more than one resource, so it is important to identify the exact server or website.

An example of managing cloud resources

Managing servers and cloud resources in a Hetzner account

An MCP server for managing Hetzner Cloud can expose functions for managing servers, volumes, firewall rules and SSH keys. Connecting requires a Hetzner Cloud API token, and the range of actions is determined by the functions the server offers.

A common mistake is to assume that every MCP server offers the same set of actions. One server may allow status checks only, while another may also include tools for changing resources. Before a request that changes a resource, make sure the phrasing states exactly which resource is supposed to change.

How do you connect Claude to an MCP server?

In Claude Code, you can configure an MCP server with a local, project or user scope, and the choice determines which projects and users it is available to. The scope of the connection affects who will be able to use the server, not just where the configuration is stored.

Choose a scope based on the projects and people who need access, then configure the MCP server and the appropriate connection details. An overly broad scope can make a connection intended for one purpose available beyond the project you had in mind.

Claude Code settings selecting the access scope of an MCP server

ScopeWho uses itAvailability
LocalThe current userThe current project only
ProjectUsers of the repositoryShared with the project's users
UserThe current userAvailable to the user across all projects

In Claude Code, a project-scoped MCP server is defined in the .mcp.json file. Before using it in an interactive session, each user must approve the server. Approving a project MCP server is a separate step, even when the configuration already exists in the repository.

A remote MCP server is subject to the OAuth 2.1 requirement under the MCP authorization specification update of 2025-06-18. This mechanism governs authorization to a remote server; it does not determine which actions the server will expose. For a connection configured at the project level, each user approves the MCP server before using it in an interactive session.

What are the benefits of connecting AI to server management?

The main benefit is that you can ask the AI for information or an action in natural language, instead of translating every request into a server command yourself. Reducing friction is especially useful when a team repeats the same checks or operational actions.

The value comes when the request matches the tools that have been defined, not from the mere use of AI. Combining information with action tools may help you check a status, understand the data and then perform a suitable task.

A development team compares MCP with SSH for managing a website

Way of workingHow the request is madeType of accessExample use
MCPA natural-language request to an AI applicationDefined tools and resourcesChecking status with a read tool
Graphical control panelClicking and selecting on screensActions the interface offersChecking storage usage in the account
SSHCommands over a shell connectionAccess through a shellRunning a command on the server

Unlike SSH, which passes commands directly over a shell connection, MCP lets an AI application use the tools the server exposes. Recurring requests can be easier to phrase, as long as a suitable tool is available and returns a useful result.

Combining status data with tools may support both diagnosis and execution: you can check information and then request a defined action. AI is not an automatic substitute for operational expertise, and those who prefer manual control can perform the same task over SSH or through the control panel. The value grows when the MCP tools match the tasks your team actually repeats.

Which tasks and tools can you expose to AI?

You can expose to AI any defined action that the server presents as a tool, from reading information to changing a configuration. The actual actions depend on the tools that have been defined, and on the resources the connection makes available to the application.

Aim for a focused result for each request, especially when a tool may return long output. Possible uses include reading information, checking resources, making a defined change and working with code or files.

  • Reading status information or logs: displaying a service's status or finding a specific line in a log.
  • Checking cloud resources: getting information about servers, storage or account settings.
  • Changing a defined configuration: running a tool that changes a specific setting in the environment.
  • Development or file actions: access to code tasks, files or a development environment, if suitable tools have been defined.

In Claude Code, MCP tool output exceeding 10,000 tokens triggers a warning, and the default limit is 25,000 tokens. You can raise it with the MAX_MCP_OUTPUT_TOKENS variable, for example to 50000.

Text in results longer than 50,000 characters is saved to a file instead of entering the conversation context. Tool output that is too large can use up the conversation context, so it is better to request logs filtered by a specific time, service or error message.

Docker MCP Toolkit, built into Docker Desktop 4.62 and later, lets you manage MCP servers in containers and connect them to AI clients, including Claude. Each container is limited at runtime to one CPU core and 2 GB of memory.

By default, MCP servers in Docker MCP Toolkit do not get access to the host computer's file system. The user explicitly chooses which servers connect to which folders, and the toolkit blocks requests to and from tools when they contain sensitive information, such as secrets. Match the scope of the result to the request, especially when a tool returns logs or long documents.

How do you protect a server managed through MCP?

Even pre-approved MCP tools may return external content that contains malicious instructions, so it is important to limit permissions and approve sensitive actions. Content returned by a tool is not necessarily an instruction from the user, and the model should not be given unrestricted authority to act on it.

Limiting permissions and requiring human approval reduce the scope of the risk, especially when an action changes data or is hard to undo. Overly broad permissions may give an agent access to data that the task does not need.

Minimal permissions and approval for sensitive actions

Give each tool only the permissions its role requires. Separate read tools from change tools, so that a status check does not get access to change the configuration. For a high-impact or irreversible action, you can stop an authorized call and ask for a human decision.

Also check where the information a tool returns comes from. Web pages and documents may contain malicious instructions that enter the model's context. Treat them as external content, not as an instruction that overrides the user's request or the access rules.

External content, poisoning and isolating the runtime environment

An empirical study of open-source MCP servers collected up to June 2025 found general vulnerabilities in 7.2% of the servers examined, and MCP-specific tool poisoning in 5.5%. The findings describe the group of servers that was examined, not every MCP server.

The MCPTox benchmark tested 45 live MCP servers, 353 tools and 1,312 malicious test cases. The attack success rate reached 72.8%, and the average across the agent configurations tested was 36.5%. The highest refusal rate of any agent was less than 3%.

The test also examined different ways of changing an agent's behavior. Replacing a parameter in a tool the agent already intended to run succeeded in 46.7% of cases on average. Replacing the tool following an explicit user request succeeded in 36.7%, and replacing it following an unrelated action succeeded in 26.7%.

The figures describe the systems and configurations that were tested, but they illustrate a practical risk: hostile content can influence the choice of tool or a call parameter. Keep human approval in place before an irreversible or high-impact action.

  • Give each tool minimal permissions, based on the task it performs.
  • Separate read tools from tools that change data or configuration.
  • Require human approval for a high-impact or irreversible action.
  • Check the source of content a tool returns, and limit the model's authority to act on it.

How do you choose an AI-managed VPS server for your work?

Match the VPS specifications to the type of workload, and the MCP connection to the range of actions you want to allow. Managing the VPS and connecting AI are separate choices: the first concerns the server environment and its maintenance, and the second concerns how an application gets access to tools and information.

Match the CPU or GPU to the task: an external AI service and running a local model may require different resources. Also check memory, storage, backups, maintenance and support as part of choosing your working environment.

Compare the monthly cost according to the resources and services each plan includes, not by storage space alone. Before choosing, write down which tasks will be performed, which resources they consume and which actions will require approval.

Summary

MCP turns AI requests into defined actions on the server, with permissions setting the boundaries of access. The first principle is that the application can use only the tools and information defined for it.

The second principle is that minimal permissions, together with approval for sensitive actions, help manage the risk. A practical step is to prepare a list of tasks and review with a managed VPS provider how well the tools, permissions, maintenance and monthly cost fit your needs.

Define the tasks and permissions you need, then check how well they fit with your service provider.

FAQ

Does MCP run the AI model on the VPS?

Not necessarily. MCP connects an AI application to tools and information sources, and it does not determine where the model itself runs. Where the model runs depends on how the application and the model are configured, so the model may run on a separate service while the VPS only provides tools or information. Check the resource requirements of running a local model separately.

Can Claude perform an action on the server without approval?

That depends on the tools and permissions that have been defined, and on how the connection requires approval. In Claude Code, each user must approve a project MCP server before using it in an interactive session. You can also require human approval before a sensitive, high-impact or irreversible action, even when the tool is authorized to perform it.

Does an MCP connection give the AI root access?

Not by virtue of the connection itself. MCP exposes to the application only the actions and resources that have been defined, and the permissions of the server's tools determine which data or actions can be accessed. If a tool is given broad permissions, it may allow more than the task requires. That is why it is important to separate reading from changing and to keep tool permissions to a minimum.

What do I need to manage Hetzner resources through MCP?

You need a compatible MCP server and a Hetzner Cloud API token. The available tools may include managing servers, volumes, firewall rules and SSH keys. The actual scope of management depends on the functions the server exposes and on the token's permissions. Before using it, it is worth knowing which actions the tools can perform in your account.

What is the difference between MCP and an SSH connection?

MCP lets an AI application use defined tools, while SSH passes commands over a shell connection. With MCP, the application chooses from actions the server exposes; with SSH, the user works in a shell environment and runs commands. The choice depends on how you want to work and on the scope of access that suits you and your team.

Is MCP suitable for running a local AI model?

Yes, MCP can serve as a connection layer to tools and information alongside a local model, but it does not provide the resources to run it. To run a model on a VPS, separately match the CPU or GPU, memory and storage to the expected workload. An MCP connection can expose tools to the model, but it does not guarantee that the server is capable of running the model itself.

Author

Oren

More articles

WooCommerce store billing and invoicing

Research and practical tests for fast checkout and correctly documented payment A customer adds a product to their cart, selects a delivery, and enters payment information. For the […]