An MCP server exposes tools, resources and prompts to an AI application through the Model Context Protocol. A client inside the application discovers what the server offers and requests those capabilities as needed.
An MCP server handles requests for tools, resources or prompts. The AI application uses the response in its workflow. The same protocol works with local and remote servers.
For example, a coding assistant can use an MCP tool to search approved project documentation. The tool needs permission to read those files only.
Key Takeaways
- The host runs the AI application, the client manages the connection, and the server provides capabilities.
- A better understanding of how the requests move from an AI application to an external source is essential.
- Select local hosting if the integration is possible on one machine.
- Make sure you distinguish tools, resources, and prompts before giving your AI application access.
- Utilize least privilege and secure credentials and approval for any critical action.
What is an MCP Server?
An MCP server gives an AI application a defined way to work with another system. It can offer a tool to search documentation, look up a database record or check a service. The server handles the request using the permissions it has in that system.
The host manages the interaction, the MCP client sends requests, and the server calls the connected system. The database or API still enforces its own access rules.
The application’s reach depends on the tools the server exposes, the credentials it uses and the permissions the connected service enforces.
The MCP transport specification describes how clients and servers exchange messages.
Host, Client and Server
The host, client and server work together. Here’s what each one handles.
MCP host: The AI application responsible for overseeing the interaction. An AI assistant or suitable development environment could act as the host.
MCP client: This piece inside the host is responsible for communicating with a specific MCP server and overseeing that communication.
MCP server: This is the application exposing the capabilities and communicating with the client. It can be running on the user’s computer or elsewhere.
The model can suggest a tool call. The host decides whether to allow it, and the MCP server carries it out within the connected service’s permissions.
The external service is also independent. An MCP server can connect to databases, documentation software, or even the API of a cloud provider. The permissions of the MCP server dictate what actions it can perform in those systems.
An MCP Interaction Workflow
The client first discovers what the server offers, then calls a tool. In the example below, a developer asks an assistant to find a support ticket.
Part 1: Discovery of Capabilities of the Server
The MCP client connects to the server and discovers its tools, resources and prompts. The host can then make the available tools known to the model.
- Tools perform some specific actions, e.g., searching documentation.
- Resources provide some specific data, e.g., documents.
- Prompts are reusable templates for some tasks.
Part 2: Calling the Tool and Obtaining the Result
If the host allows the lookup, the MCP client calls the ticket tool. The server queries the support API with its own credentials and returns the record through the client. The host can then use it to answer the developer’s question.

The Support Ticket Example
A read-only ticket tool can return the status of a failed-payment report.
The tool returns the matching record using credentials that allow ticket lookup.
If the developer also asks to close the ticket, that requires a separate tool with write permission and its own approval rules.
Three critical types of capabilities defined by MCP are:
| Capability | Purpose | Example |
|---|---|---|
| Tools | Execute functions or actions | Search support tickets or check service status |
| Resources | Provide data or context | Read a documentation file or approved report |
| Prompts | Supply reusable prompt templates | A template for investigating a support incident |
Tools can have side effects; however, they are not required to. Resources are meant to offer background information, while prompts can be reused templates for users to choose from. They define different types of operations but do not ensure that the specific operation is safe.
Local vs. Remote MCP Servers
Use a local process when the application and server run on the same machine. A remote service is useful when several authorized clients need access or when the server must run independently of a desktop session.
Local Processes
With the stdio transport, the client launches the MCP server as a local subprocess. The communication is done using standard input and output where the client sends protocol messages and gets back responses through standard output. No HTTP endpoint or port is needed for this type of transport mechanism.
Hosting the process locally may facilitate access to local files and development tools, however, the process itself has the permissions of the operating system of the environment in which it was executed.
Network Services
With Streamable HTTP, the MCP client sends requests to a server endpoint over the network. The server can reply with JSON or a stream of events.
You can keep a remote server on a private network or restrict it to authorized clients.
Comparison at a Glance
| Factor | Local MCP server | Remote MCP server |
|---|---|---|
| Typical transport | Standard input/output (stdio) | Streamable HTTP |
| Access | Usually tied to a local application or machine | Available to authorized clients over a network |
| Authentication | Depends on local process and application controls | Requires suitable network access controls and authentication |
| Availability | Depends on the local machine and process | Can run continuously if properly operated |
| Multiple users | Usually less convenient | Better suited to shared access |
| Administration | Local setup and updates | Server maintenance, monitoring, network and access management |
Older implementations may use the legacy HTTP+SSE transport. Check that the client and server support the same transport before deploying them.
Remote MCP Server Hosting
A remote MCP server requires a proper runtime, a managed process, secure client connections, and maintenance. The VPS creates an environment for the application, but the MCP stack is not installed nor secured automatically.
Requirements for the Deployment
Run-time and dependencies: Install the run-time which is required by the server implementation, like Python or Node.js. Follow the documentation of the project and use the appropriate versioning of dependencies.
Process management: Employ process/service management to start, stop, and recover from failures. Ensure that the application can handle requests after the restart; the process just starting does not mean it is working fine.
Logging and monitoring: Log useful information, like failures during the start and request errors, but avoid logging passwords, access tokens, and other sensitive information. Check the service availability and look into recurring failures.
Updates and Resource Planning: Fix the OS and its dependencies. Read security notices. Test the updates before making production deployment. Calculate the CPU, memory, storage, and network requirements based on actual load. An API connector might need a fraction of resources compared to a service handling large files. There is no common RAM limit for all MCP servers.
Network Configuration: Provide access only to the required endpoint. In case of an HTTP connection through a network, make sure HTTPS, authentication, authorization, and proper firewall rules are in place. Don’t make an unauthenticated endpoint public just for convenience.
If you need a dedicated environment for this type of service, explore UltaHost VPS hosting. For a Linux-based deployment, UltaHost Linux VPS hosting is another option to evaluate.
Security Considerations Prior to Connection
Prior to establishing a server connection, determine what tools are supported by the server, the data that is accessible by the server, and the server’s credentials. The controls needed for establishing connections depend in part on whether the client connects to the local process or the network service.
Differentiate Between Local and Network Transports Security
In the case of stdio transport, the client spawns an MCP server as a local child process and communicates messages using standard input and output. Since stdio is not an HTTP network connection, HTTPS is unnecessary in this case. It is necessary that the server have proper operating-system permissions and secure handling of inputs and credentials.
For Streamable HTTP transport, use HTTPS to secure the network traffic, use authentication and authorization, and validate the Origin header to mitigate potential DNS rebinding attacks. When establishing a local HTTP service, it should be bound to 127.0.0.1 rather than to 0.0.0.0 or any other network interface.
These controls follow the official MCP transport specification. Authentication depends on the transport, implementation, and deployment. The proper guidance is to refer to the MCP authorization rules rather than assume that all servers will have the same configuration.
Protect Credentials
Keep API keys and tokens in protected configuration or a secrets manager. Grant only the permissions each tool needs.
The official MCP security best practices describe risks and mitigations that developers and server operators should understand.
Authentication and Credentials
Use HTTPS for remote HTTP connections. Do not include your API keys and access tokens directly in your source code. Rotate your credentials whenever there is a potential risk of exposure and invalidate credentials that are no longer needed.
Authentication identifies the user making a connection. Authorization decides what permissions this user has. Both are important.
Use Least Privilege Approach
Use distinct sets of credentials in distinct environments and for distinct services where possible. Do not reuse high-privilege administrator accounts for regular integration tasks.
Consider Tool Results Untrusted
Consider the content returned as data, not as instructions to follow.
- Validate the input.
- Constrain file and network access.
- Think about the handling of untrusted content on the side of the host machine.
The existence of a secure connection does not imply that the content will be trustworthy.
Require Human Approval
Investigate what is done by each particular tool, the credentials it requires, and if its operations can be undone. The presence of the tool in the interface of the AI application does not mean that all its invocations are OK.
- Minimize network access.
- Authenticate authorized users.
- Check the server with non-production data.
Avoid exposing the remote endpoint just because the client needs it.
Practical Use Cases of an MCP Server
MCP is especially valuable when the server provides only those capabilities that are necessary for the workflow. The following examples demonstrate how to restrict access in this way, rather than just establishing a connection between the AI application and the whole system.
Documentation Retrieval
The server can search a documentation directory the team has approved. It can return relevant passages without gaining permission to edit files, read outside that directory or run commands.
Run it locally for documents on one machine, or use a remote service for a team.
Limited Database Search
An internal assistant can look up the status of a support ticket or order. The tool can pass the record ID to a read-only database view with a parameterized query.
Use database credentials that can read only the required records and fields. Keep other records, writes and administrative queries outside those permissions.
Monitoring Infrastructure
A team can give an assistant read access to approved health checks and metrics. This lets it report on service health and performance.
Keep service restarts, firewall changes and deployments in separate tools with stronger authorization.
Conclusion
An MCP server provides an AI application with a specific method by which it can ask another system for data and action. Knowing the roles makes it easy to determine which tools to open up and where.
A personal workflow may require nothing more than a local process. For a connector that needs to be always accessible to multiple authenticated clients, remote hosting on the right infrastructure may make more sense. Examine the tools. Limit their capabilities. Secure any credentials.
Before putting the server on a network, test which calls an authorized client can make and confirm that sensitive operations require approval.
FAQs
Is there a need for an MCP server to have a VPS?
No. It is possible to use just the MCP server locally for a number of personal integrations and developments. The value of a VPS becomes apparent when there is a need for constant availability, central administration, or network access by several approved clients.
Is there an AI model on an MCP server?
Not necessarily. An MCP server provides tools or resources or prompts to an AI application. The AI model usually executes in a dedicated AI service or application. Whether to run the AI model and provide the MCP server on the same computer is an independent choice.
Can any AI application connect to an MCP server?
No. The application has to be compatible with MCP and the communication protocols used by the server.
Do we need a network endpoint for an MCP server?
No. An MCP server can talk through stdio without any network endpoint. The only requirement of a remote server is that it should have a network endpoint reachable to its authorized users, but that does not mean that its network endpoint should be accessible to everybody.
What permissions will an MCP utility have?
An MCP server can access the data and operations its tools, credentials and connected systems allow. Check what it can read or change before adding it to your workflow.