Hetzner MCP Server for Pydantic AIGive Pydantic AI instant access to 38 tools to Create Certificate, Create Firewall, Create Floating Ip, and more
Pydantic AI brings type-safe agent development to Python with first-class MCP support. Connect Hetzner through Vinkius and every tool is automatically validated against Pydantic schemas. catch errors at build time, not in production.
Ask AI about this MCP Server for Pydantic AI
The Hetzner MCP Server for Pydantic AI is a standout in the Developer Tools category — giving your AI agent 38 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerHTTP
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
server = MCPServerHTTP(url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
agent = Agent(
model="openai:gpt-4o",
mcp_servers=[server],
system_prompt=(
"You are an assistant with access to Hetzner "
"(38 tools)."
),
)
result = await agent.run(
"What tools are available in Hetzner?"
)
print(result.data)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Hetzner MCP Server
Connect your Hetzner Cloud account to any AI agent to orchestrate your infrastructure through natural language.
Pydantic AI validates every Hetzner tool response against typed schemas, catching data inconsistencies at build time. Connect 38 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
What you can do
- Server Management — List all active servers, fetch specific details, and create or delete instances on demand.
- Power Control — Remotely power on servers or rebuild them from specific images using simple commands.
- Networking & Security — Manage private networks, configure firewalls, and handle floating IPs to ensure connectivity.
- Load Balancing — List and create load balancers to distribute traffic across your infrastructure efficiently.
The Hetzner MCP Server exposes 38 tools through the Vinkius. Connect it to Pydantic AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 38 Hetzner tools available for Pydantic AI
When Pydantic AI connects to Hetzner through Vinkius, your AI agent gets direct access to every tool listed below — spanning cloud-hosting, server-management, infrastructure-as-code, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Create certificate on Hetzner
Create a new certificate
Create firewall on Hetzner
Create a new firewall
Create floating ip on Hetzner
Create a new floating IP
Create load balancer on Hetzner
Create a new load balancer
Create network on Hetzner
Create a new network
Create server on Hetzner
Create a new server
Create ssh key on Hetzner
Create a new SSH key
Create storage box snapshot on Hetzner
Create a manual snapshot for a Storage Box
Create storage box subaccount on Hetzner
Create a subaccount for a Storage Box
Create volume on Hetzner
Create a new volume
Create zone on Hetzner
Create a new DNS zone
Delete load balancer on Hetzner
Delete a load balancer
Delete server on Hetzner
Delete a server
Get action on Hetzner
Get details of a specific action
Get server on Hetzner
Get details of a specific server
Get storage box on Hetzner
Get details of a specific Storage Box
List certificates on Hetzner
List all certificates
List datacenters on Hetzner
List all datacenters
List firewalls on Hetzner
List all firewalls
List floating ips on Hetzner
List all floating IPs
List images on Hetzner
List all images
List isos on Hetzner
List all ISOs
List load balancers on Hetzner
List all load balancers
List locations on Hetzner
List all locations
List networks on Hetzner
List all networks
List placement groups on Hetzner
List all placement groups
List primary ips on Hetzner
List all primary IPs
List server types on Hetzner
List all server types
List servers on Hetzner
List all servers
List ssh keys on Hetzner
List all SSH keys
List storage box snapshots on Hetzner
List snapshots for a Storage Box
List storage box subaccounts on Hetzner
List subaccounts for a Storage Box
List storage boxes on Hetzner
List all Storage Boxes
List volumes on Hetzner
List all volumes
List zones on Hetzner
List all DNS zones
Poweron server on Hetzner
Power on a server
Rebuild server on Hetzner
Rebuild a server from an image
Update storage box on Hetzner
Update Storage Box settings (e.g., enable/disable protocols like SMB, WebDAV)
Connect Hetzner to Pydantic AI via MCP
Follow these steps to wire Hetzner into Pydantic AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install Pydantic AI
pip install pydantic-aiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use Pydantic AI with the Hetzner MCP Server
Pydantic AI provides unique advantages when paired with Hetzner through the Model Context Protocol.
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your Hetzner integration code
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
Dependency injection system cleanly separates your Hetzner connection logic from agent behavior for testable, maintainable code
Hetzner + Pydantic AI Use Cases
Practical scenarios where Pydantic AI combined with the Hetzner MCP Server delivers measurable value.
Type-safe data pipelines: query Hetzner with guaranteed response schemas, feeding validated data into downstream processing
API orchestration: chain multiple Hetzner tool calls with Pydantic validation at each step to ensure data integrity end-to-end
Production monitoring: build validated alert agents that query Hetzner and output structured, schema-compliant notifications
Testing and QA: use Pydantic AI's dependency injection to mock Hetzner responses and write comprehensive agent tests
Example Prompts for Hetzner in Pydantic AI
Ready-to-use prompts you can give your Pydantic AI agent to start working with Hetzner immediately.
"List all my active servers in the Hetzner Cloud."
"Get the full details for server ID 12345."
"Power on the server with ID 12347."
Troubleshooting Hetzner MCP Server with Pydantic AI
Common issues when connecting Hetzner to Pydantic AI through Vinkius, and how to resolve them.
MCPServerHTTP not found
pip install --upgrade pydantic-aiHetzner + Pydantic AI FAQ
Common questions about integrating Hetzner MCP Server with Pydantic AI.
How does Pydantic AI discover MCP tools?
MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.Does Pydantic AI validate MCP tool responses?
Can I switch LLM providers without changing MCP code?
Explore More MCP Servers
View all →
Knackly
8 toolsGenerate legal and business documents from smart templates with conditional logic that adapts content to every unique situation.

Elsevier ScienceDirect
9 toolsAccess millions of scientific, technical, and medical research articles and book chapters directly from your AI agent.

Azure Cosmos DB Container
4 toolsThis MCP does exactly one thing: it manages documents in a single Azure Cosmos DB Container. That's its only function, and nothing else. Incredible for giving your AI a secure NoSQL database.

Better Stack
10 toolsMonitor uptime and incidents via Better Stack — list monitors, heartbeats, and on-call schedules directly from any AI agent.
