Learn how to connect n8n and Claude Code using Tailscale and Hetzner to replicate OpenClaw functionality. Discover the right tools for self-hosted automation.

The Model Context Protocol acts as the secret translator between Claude and n8n, transforming the AI from a text generator into an operator that understands the capabilities of your instance as if they were its own built-in functions.
What tools can I use to connect n8n and Claude code to have the same functionality as openclaw? Do I need to use RPAs? I currently have openclaw running on Hetzner but I just set up Claude code on my Mac mini with tailscale and I put n8n self hosted Hetzner with tailscale as well. I have telegram on my phone (tailscale as well) so I can communicate as if we are all on the same network, but I still can’t replace openclaw. What tools am I missing?

To replicate OpenClaw's capabilities using n8n and Claude Code, you need a robust integration layer. Since you already have n8n and Claude Code self-hosted on Hetzner and connected via Tailscale, you should focus on using webhooks and API nodes within n8n. These tools allow your services to communicate securely across your private Tailscale network, enabling Claude Code to receive instructions and return data to your automation workflows without needing external exposure.
While traditional RPA tools can automate UI-based tasks, they are often unnecessary if you are using n8n and Claude Code. Instead of heavy RPA software, you can leverage n8n’s native integrations and custom code nodes to handle logic. By utilizing the Claude Code CLI or API within an n8n workflow, you can achieve deep automation and terminal-like control that mimics OpenClaw’s behavior more efficiently than standard robotic process automation.
You can integrate Telegram by setting up a Telegram Bot node within your self-hosted n8n instance on Hetzner. Since your phone and servers are linked via Tailscale, the communication remains secure. The bot acts as the interface, sending user prompts to n8n, which then processes the logic through Claude Code. This setup ensures that you can trigger complex coding tasks or system commands directly from your phone while maintaining a private network environment.
Tailscale is essential for this configuration because it creates a secure, private mesh VPN between your Mac Mini, Hetzner VPS, and mobile device. This allows n8n to communicate with Claude Code as if they were on the same local network, even though they are geographically separated. It eliminates the need for complex firewall rules or public port forwarding, ensuring your automation tools and sensitive code data remain protected from the public internet.
Von Columbia University Alumni in San Francisco entwickelt
"Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."
"I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."
"Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."
"Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."
"Reading used to feel like a chore. Now it’s just part of my lifestyle."
"Feels effortless compared to reading. I’ve finished 6 books this month already."
"BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."
"BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."
"BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"
"It is great for me to learn something from the book without reading it."
"The themed book list podcasts help me connect ideas across authors—like a guided audio journey."
"Makes me feel smarter every time before going to work"
Von Columbia University Alumni in San Francisco entwickelt
