Claude already reads my mail and my calendar. Both run through MCP servers other people wrote, sitting in Docker containers on one of my servers and connected to Claude as custom connectors. Once that worked, the next questions came naturally: What exactly do I run at Hetzner, and what does it cost? Which certificate in my reverse proxy expires next? What did I miss on Discord today? Did last night's backups actually run?

For none of these did I find a server that fit. Most existing MCP servers speak stdio: they run as a local process next to Claude Desktop or Claude Code. A custom connector in Claude needs the opposite – a remote server with a public HTTPS URL. So I built my own. Within nine days, between 15 and 23 November, four servers came out of it, all open source, all built with Claude as my pair programmer:

Server What Claude can do with it Tools (read-only) Based on
hetzner-mcp servers, networks, firewalls, IPs, volumes, Storage Boxes, DNS, prices 185 (59) wraps @lazyants/hetzner-mcp-server
nginx-proxy-manager-mcp proxy hosts, redirects, streams, certificates, access lists 50 (20) tool set of VeryBigSad's Python server
discord-mcp servers, channels, direct messages, reading and sending messages 5 (4) tool set of elyxlz's Python server
backrest-mcp restic backups in Backrest: plans, snapshots, operations, logs 26 (13) written from scratch against the Backrest API

This article is about what the four have in common, what was special about each of them, and how they ended up in the official MCP Registry without me clicking anything.

Why remote, and why stateless

The most important sentence in the whole project is one I later wrote into every Connect to Claude page of the documentation: custom connectors connect from Anthropic's servers, not from your machine. A URL that only works in your home network is useless. The server has to be reachable from the internet via HTTPS – which immediately makes security the first design question, not the last.

The second constraint: Claude's connectors cannot send custom headers. A bearer token, the obvious way to protect an HTTP API, only works for Claude Code and other clients. For the connectors in the Claude apps, protection has to happen in front of the server, at the reverse proxy.

For the transport I chose MCP's Streamable HTTP in stateless mode. Every POST to /mcp gets its own, fresh MCP server instance, answers and is gone. There are no sessions, no server-initiated streams, nothing kept in memory between requests; a GET simply gets a 405. That sounds like a limitation, but it made everything simpler: the containers can run with a read-only file system, a restart loses nothing, and there is no session state that could leak from one caller to another.

One skeleton for all four

After the first two servers, a fixed set of rules had emerged that the other two simply inherited:

  • Read-only by default. Without further configuration, every server only exposes the tools that cannot change anything. Write access is a conscious decision via an environment variable.
  • Allow and deny lists with * as a wildcard, e.g. MCP_TOOLS_DENY=delete_*. Read-only is the coarse switch, the lists are the fine one.
  • MCP tool hints. Read tools carry readOnlyHint, tools that delete or overwrite carry destructiveHint. Claude uses them to ask before risky actions, and in the connector settings you can force a confirmation per tool on top.
  • Optional bearer token for clients that can send headers, compared in constant time.
  • /healthz without authentication, which reveals nothing, for Docker's health check.
  • Boring containers: a 4 MB limit on request bodies, a non-root user where possible, no state on disk except where unavoidable.
  • Configuration only through environment variables, all documented, with sensible defaults.

The code itself follows the same guidelines I use for all my private projects, which made a real difference when working with an AI: the rules are written down once, and Claude follows them in every new repository instead of me correcting the same things four times.

hetzner-mcp: the thinnest wrapper, and a lesson about invoices

My original wish was simple: Claude should tell me what I have at Hetzner and what it costs, including the invoices. A good set of tools already existed in @lazyants/hetzner-mcp-server – but only via stdio. So hetzner-mcp is deliberately thin: about 300 lines that put the existing tools behind the HTTP transport and add read-only mode, filters and the token.

Two things I learned along the way. First, the Hetzner Cloud API has no invoices. Costs can only be derived from the inventory and the price list. That's fine in practice – Claude combines the servers with hetzner_get_pricing and calculates the monthly total – but it's a nice example of checking the API before promising a feature.

Second, 185 tools are a lot. Every tool description ends up in Claude's context. That's why hetzner-mcp can load only certain tool groups (MCP_SPLITS=servers,dns), and why read-only mode, which reduces the set to 59 tools, is not just a safety feature.

nginx-proxy-manager-mcp: tokens, partial updates and a dedicated user

Nginx Proxy Manager is the reverse proxy in front of everything I host – including, by now, these MCP servers. The tool set follows VeryBigSad/nginx-proxy-manager-mcp, a Python server for stdio; the code is an independent TypeScript implementation with 50 tools in nine areas.

NPM only knows user tokens, no API keys. So the server logs in with email and password, caches the token until shortly before it expires and logs in again on a 401. For that it gets its own NPM user – view-only, without two-factor authentication – so the credentials in the container can't do more than they should.

The detail I like most: the update tools only change the fields Claude passes. Without that, Claude would have to read a complete proxy host, change one value and send everything back – one wrong field and the configuration is broken. With partial updates, “force HTTPS on app.example.com” is exactly one field.

And yes, there is a slightly recursive moment: Claude can use this server to read the proxy host that protects this very server.

discord-mcp: a user account instead of a bot

Discord was the odd one out. The obvious way would be a bot – but a bot only sees the servers it was invited to and none of my direct messages. I wanted Claude to see what I see. So discord-mcp works with a regular user account:

  1. A headless Chromium (Playwright) opens the Discord web app once and logs in, including the two-factor code, which the server generates itself from a TOTP secret.
  2. While the web app loads, the server reads the session token from the Authorization header of its own API requests and closes the browser again.
  3. From then on, everything goes through the same HTTP API the web app uses. No page scraping. Token and browser session are stored in a volume, so a restart doesn't need a new login.

Small things matter here, too: Discord rejects messages longer than 2,000 characters, so send_message splits long texts at paragraph, line or word boundaries and sends them with a short pause in between, the way a person would.

To be clear: automating a user account is a “self-bot” and against Discord's Terms of Service. That's why the README and the documentation say so in a warning box, why the server is read-only by default, and why the project is marked as an experiment on my website. I use it with that risk in mind; you should decide that for yourself.

backrest-mcp: the complete one, and the secrets problem

The latest server was also the most thorough. Backrest is a web UI and scheduler for restic backups, and I wanted all of it in Claude: dashboard, operations, logs, snapshots, backups, restores, prune and check, configuration. The result is 26 tools – one for every procedure of the Backrest API a client can use, plus the Prometheus metrics. From the first commit to the entry in the MCP Registry, it took a single day.

Backrest offers its API as a gRPC service that can also be called with plain JSON over HTTP using the Connect protocol. That made a dedicated client easy. Server streams like live operation events or logs are read for a limited time, and Claude gets what arrived in that window.

The interesting part was the configuration. Backrest stores repository passwords in plain text in its config, along with access keys in the restic environment and tokens in notification hooks. If Claude can read the config, it can read every repository password. So backrest-mcp masks all of them as ******** before anything reaches Claude.

That creates a follow-up problem: what happens when Claude changes a plan and writes the config back? It would save ******** as the new password. So the server does the reverse on the way in: every ******** is replaced with the stored value – repositories and plans matched by ID, environment variables by name, hooks by position. If there is no stored value to restore, the call fails instead of silently destroying a repository password. That logic took more thought than the 26 tools combined.

How they run

All four run as Docker containers on one of my servers at Hetzner. Each gets its own subdomain under a wildcard certificate and sits behind Nginx Proxy Manager. At the proxy, an access list does the real work: only Anthropic's published outbound IP ranges and my own network get through, and they additionally need basic auth.

In Claude, each server is simply a custom connector with its URL. After that, the conversation is the test: “How did my backups do in the last 30 days?”, “Which certificates expire this month?”, “What does my Hetzner setup cost per month?” If Claude picks the right tools and the answers are right, the server works.

One pipeline from commit to registry

The part that turned four repositories into something I don't have to think about is a shared set of reusable GitHub workflows. Every MCP repository has a CI file of about thirty lines that calls them:

  1. Release: semantic-release on main decides from the Conventional Commits whether there is a new version, writes the changelog and bumps the version in package.json and server.json.
  2. Image: the Docker image is built and pushed to the GitHub Container Registry.
  3. Deploy: Dockhand updates the running container on my server, and Home Assistant tells me about it.
  4. Registry: a final job publishes the new version to the official MCP Registry.

Next to it, a second workflow watches the docs folder of each repository: it checks the Markdown and publishes it on my website as documentation in English and German.

The registry step is worth a closer look. It checks that the version in server.json matches the release tag and that the image is referenced with exactly that tag. It downloads the mcp-publisher CLI and verifies its signature with cosign before running it. It then logs in via GitHub OIDC – no stored secret, the GitHub identity proves that I own the io.github.DasRed namespace. And the registry in turn verifies that the Docker image belongs to the server: each image carries the label io.modelcontextprotocol.server.name.

Glama picks the servers up from GitHub on its own. So a merged commit ends up as a running container, updated documentation, a new image and a registry entry, without a single manual step.

What working with Claude was like

The obvious irony: Claude helped build the servers through which it now looks into my infrastructure. That's also what makes the loop so short – Claude is the client the servers are made for, so an unclear tool description or a clumsy answer format shows up in the very first conversation, not weeks later.

Where the AI was strong: turning two Python tool sets into idiomatic TypeScript, working through the Backrest service definition and producing typed tools for every procedure, keeping four repositories consistent, and writing documentation in two languages. Four servers with documentation, CI and registry entries in nine days would not have happened in my spare time otherwise.

Where I had to decide: read-only as the default, a user account instead of a bot for Discord, which tools count as destructive, and above all the secret masking in backrest-mcp. None of that is a coding question. It's the question of what a machine that acts on my behalf should be allowed to see and do – and that's exactly the part I don't want to delegate.

What I learned

  • Remote MCP is a security project first. As soon as Claude connects from the cloud, the server is on the internet. Protection belongs at the proxy, because the connectors can't send tokens.
  • Read-only by default costs nothing and avoids a lot. Write access is a deliberate switch, and destructive tools should say so.
  • Stateless is the easy way. One MCP instance per request means no sessions, no memory leaks between callers and containers that can run read-only.
  • Check the API before promising a feature. No invoices at Hetzner, plain-text passwords in Backrest – both changed the design.
  • Automate publishing early. The registry, GHCR and the documentation are updated by the same pipeline, so the four servers stay current without me thinking about it.

Documentation, configuration and setup guides for all four servers are on my website: hetzner-mcp, nginx-proxy-manager-mcp, discord-mcp and backrest-mcp. The code is on GitHub, under the MIT license.

Credits: lazyants for the Hetzner tools, VeryBigSad and elyxlz for the tool sets that inspired the Nginx Proxy Manager and Discord servers, Gareth George for Backrest, and the Model Context Protocol team for the SDK and the registry.

Originally published on marco-starker.de.