Hugo MCP Server

✏️ Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator.

Local serverstdioTypeScript

What is the Hugo MCP Server?

✏️ Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator.

What you get

These integrate seamlessly with Hugo's built-in PostCSS pipes.

  • 🚀 Zero configuration — Hugo binary is automatically downloaded on install
  • 📦 Version-locked — Package version matches Hugo version (e.g., hugo-extended@0.140.0 = Hugo v0.140.0)
  • 🔒 Type-safe API — Full TypeScript support with autocomplete for all Hugo commands and flags
  • ⚡ Multiple APIs — Use CLI, function-based, or builder-style APIs
  • 🎯 Extended by default — Automatically uses Hugo Extended on supported platforms

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
buildhugo.build()
serverhugo.server()
newhugo.new()
confighugo.config()
versionhugo.version()
envhugo.env()

How to install the Hugo MCP Server

{
  "mcpServers": {
    "hugo": {
      "command": "npx",
      "args": ["-y", "hugo-extended"],
      "env": {
        "DEPLOY_PRIME_URL": "your-value",
        "HUGO_BIN_PATH": "your-value",
        "HUGO_MIRROR_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DEPLOY_PRIME_URLEndpoint or connection string the server talks to.Yes
HUGO_BIN_PATHFilesystem location the server is allowed to use.Optional
HUGO_MIRROR_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Hugo to build.”
  • “Use Hugo to server.”
  • “Use Hugo to new.”

Frequently asked questions

✏️ Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.