[{"data":1,"prerenderedAt":112},["ShallowReactive",2],{"seo-verification":3,"blog-mcp-serveur-ia-auto-heberge-vps-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"title":9,"excerpt":10,"readTime":11,"views":12,"isPinned":13,"publishedAt":14,"category":15,"categories":21,"featuredImage":23,"bgImage":24,"posterImage":25,"relatedSolution":23,"intro":26,"sections":27,"ctaTitle":69,"ctaBody":70,"ctaButton":71,"ctaUrl":72,"relatedPosts":73},214,"mcp-serveur-ia-auto-heberge-vps","How to deploy an MCP server on a VPS","The MCP 2026-07-28 spec has made Model Context Protocol the universal standard for AI agents. Here is how to self-host your own MCP server on a VPS.",7,0,false,"2026-08-03T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},1,"Artificial Intelligence","intelligence-artificielle","bg-purple-500\u002F10 text-purple-400","ia",[22],{"id":16,"name":17,"slug":18,"color":19,"icon":20},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fmcp-serveur-ia-auto-heberge-vps-poster.svg","Since the publication of the MCP 2026-07-28 specification, the Model Context Protocol has established itself as the interoperability standard for AI agents — backed by Anthropic, OpenAI, Google, Microsoft and AWS. With over 10,000 public servers listed and 97 million SDK downloads per month, hosting your own MCP server on a VPS has never been more relevant. This guide walks you through it step by step.",[28,32,41,44,63,66],{"type":29,"title":30,"body":31},"h2","Why host your own MCP server","The Model Context Protocol defines a standardised communication layer between an AI agent and its data sources or tools. An MCP server exposes resources (files, databases, APIs) and tools (executable functions) that any compatible client can consume — whether that is Claude Desktop, an IDE like Cursor, or a platform like Open WebUI.\n\nThe specification published on 28 July 2026 introduces two structural changes. The first is a shift to stateless mode: each request is now self-contained, which simplifies deployment behind a load balancer or reverse proxy. The second is the emergence of MCP Apps — packaged, ready-to-deploy servers that you launch the way you would launch a container.\n\nSelf-hosting an MCP server gives you full control over the data being processed — it never leaves your infrastructure — and lets you connect internal tools without exposing your secrets to a third-party service. It is also a way to iterate quickly on your own tools without waiting for a publication in a public registry.",{"type":33,"title":34,"items":35},"ul","What you gain by self-hosting",[36,37,38,39,40],"**Data sovereignty** — your contexts, API keys and documents never transit through an external service.","**Universal compatibility** — an MCP server that complies with the spec can be consumed by any conforming client, with no vendor lock-in.","**Controlled latency** — a server hosted in your region responds in a few milliseconds; a public relay can introduce unnecessary round trips.","**Full customisation** — you add, modify or remove tools without depending on an external release cycle.","**Predictable cost** — a VPS starting at 99 DH\u002Fmonth\u002Fmonth is enough for a basic MCP server, with no per-request billing.",{"type":29,"title":42,"body":43},"Prerequisites before you start","A basic MCP server is remarkably lightweight. A VPS with 1 vCPU and 1 GB of RAM is sufficient for development workloads and small teams. If you plan to serve tools to multiple simultaneous agents or run local embeddings, aim for 2 GB instead.\n\nOn the software side, you have two runtime options: **Docker**, which isolates the server in a container and makes updates straightforward, or **Node.js** (version 20 or higher) for a direct installation. MCP servers written in Python run via `uvx` or a virtual environment. In all cases, the `npm` or `pip` package manager must be available.\n\nNetworking: port 443 must be open and a valid TLS certificate is required. The MCP 2026-07-28 spec requires HTTPS for HTTP Streamable transports; an unencrypted connection will be rejected by most modern clients. A domain name pointing to your VPS is therefore necessary — we will use `your-domain.com` in the examples below.",{"type":45,"title":46,"steps":47},"steps","Deploy an MCP server in 5 steps",[48,51,54,57,60],{"title":49,"body":50},"Choose and clone a reference MCP server","The official `modelcontextprotocol\u002Fservers` registry on GitHub lists dozens of reference servers: filesystem, fetch, PostgreSQL, GitHub, Brave Search, and more. Choose the one that fits your use case. On your VPS, clone the repository: `git clone https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fservers.git`, then navigate to the subfolder of your chosen server, for example `cd servers\u002Fsrc\u002Ffetch`.",{"title":52,"body":53},"Build and start the Docker container","If a `Dockerfile` is present, build the image: `docker build -t my-mcp-server .`. Then start the container, exposing the server's HTTP port — usually 3000 or 8080 depending on the implementation: `docker run -d --name mcp-server -p 127.0.0.1:3000:3000 my-mcp-server`. Binding to `127.0.0.1` ensures the port is not directly exposed to the internet — nginx will handle TLS termination.",{"title":55,"body":56},"Configure the nginx reverse proxy with TLS","Install nginx and obtain a certificate via `certbot --nginx -d your-domain.com`. In the `server` block for port 443, add a `location \u002F` that proxies to `http:\u002F\u002F127.0.0.1:3000`. Reload nginx with `systemctl reload nginx`. Your MCP server is now accessible at `https:\u002F\u002Fyour-domain.com\u002F` over HTTPS.",{"title":58,"body":59},"Enable OAuth 2.0 authentication","The MCP 2026-07-28 spec defines an authorisation profile based on OAuth 2.0 with PKCE. For team use, configure an identity provider (self-hosted Keycloak, or a service like GitHub OAuth Apps) and register your server as a protected resource. For personal or development use, a static token in an `Authorization: Bearer \u003Ctoken>` header is sufficient initially, provided HTTPS is active. Never deploy an MCP server without authentication on a public port.",{"title":61,"body":62},"Test, then connect to Open WebUI or Dify","From your local machine, configure Claude Desktop by adding your server to `claude_desktop_config.json`: in the `mcpServers` section, declare an `http` type server pointing to `https:\u002F\u002Fyour-domain.com`. Verify that your tools appear in the interface palette. To go further, connect the same server to Open WebUI or Dify: these platforms accept an MCP HTTP endpoint in their model settings, allowing you to reuse the exact same server without any modification.",{"type":64,"body":65},"tip","Always enable nginx access logs for your MCP server and set up an alert on 401 and 403 status codes. An MCP server exposed without authentication or with a compromised token can become a data exfiltration vector if your tools access sensitive resources. Also consider restricting allowed origins via the `Access-Control-Allow-Origin` header if your server is consumed from a browser.",{"type":29,"title":67,"body":68},"Towards a complete AI environment on your VPS","An MCP server on its own is just one component. Its value emerges when it integrates into an ecosystem: a conversational interface like Open WebUI to expose your tools to your users, or an orchestration platform like Dify to compose multi-step workflows from several MCP servers.\n\nServOrbit offers VPS plans optimised for these workloads, with snapshots for backups and a dedicated IPv4 address. If you want to go further, our guides on hosting Open WebUI and deploying Dify on a VPS describe how to combine these building blocks. The resulting architecture — MCP server + orchestrator + interface — fits comfortably on one or two VPS instances and gives you a sovereign AI environment, with no default dependency on cloud APIs.","Your MCP server deserves reliable infrastructure","Deploy your MCP server on a ServOrbit VPS: dedicated resources, static IPv4, automatic snapshots. Starting at 99 DH\u002Fmonth\u002Fmonth.","Deploy my VPS","\u002Fvps-cloud",[74,86,99],{"id":75,"slug":76,"title":77,"excerpt":78,"readTime":11,"views":12,"isPinned":13,"publishedAt":79,"category":80,"categories":81,"featuredImage":23,"bgImage":24,"posterImage":83,"relatedSolution":84},135,"heberger-open-webui-vps","Installing Open WebUI on a VPS: A Clean, Private Guide","Deploy Open WebUI on a ServOrbit VPS: a private AI interface, data under your control and a link to the official documentation.","2026-02-12T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},[82],{"id":16,"name":17,"slug":18,"color":19,"icon":20},"\u002Fblog\u002Fcovers\u002Fheberger-open-webui-vps-poster.svg",{"categorySlug":20,"appSlug":85},"open-webui",{"id":87,"slug":88,"title":89,"excerpt":90,"readTime":11,"views":91,"isPinned":13,"publishedAt":92,"category":93,"categories":94,"featuredImage":23,"bgImage":24,"posterImage":96,"relatedSolution":97},2,"deployer-dify-vps","Deploying Dify on a VPS: AI Workflows Under Control","Install Dify on a ServOrbit VPS to build agents, chatflows and AI apps without losing control of your data.",2480,"2026-02-11T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},[95],{"id":16,"name":17,"slug":18,"color":19,"icon":20},"\u002Fblog\u002Fcovers\u002Fdeployer-dify-vps-poster.svg",{"categorySlug":20,"appSlug":98},"dify",{"id":100,"slug":101,"title":102,"excerpt":103,"readTime":104,"views":12,"isPinned":13,"publishedAt":105,"category":106,"categories":107,"featuredImage":23,"bgImage":24,"posterImage":109,"relatedSolution":110},122,"heberger-hermes-agent-vps","Host Hermes Agent on a VPS","Host Nous Research's Hermes Agent on your VPS: the self-learning open source AI agent that remembers you. Guide to the Docker build, LLM configuration and memory backup.",8,"2026-02-22T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},[108],{"id":16,"name":17,"slug":18,"color":19,"icon":20},"\u002Fblog\u002Fcovers\u002Fheberger-hermes-agent-vps-poster.svg",{"categorySlug":20,"appSlug":111},"hermes",1785765041870]