hugo-mcp

hugo-mcp

5

Hugo MCP server is a robust protocol server designed to manage Hugo static site generators efficiently. It offers a variety of tools for environment setup, site and theme management, content creation, and deployment. This server simplifies the process of creating and updating Hugo-based websites.

Hugo MCP Server

A powerful MCP (Model Control Protocol) server for managing Hugo static site generator. This server provides a comprehensive set of tools for creating, managing, and deploying Hugo sites.

Table of Contents

  • Installation
  • Usage
  • Tools
    • Environment Setup Tools
    • Site Management Tools
    • Theme Management Tools
    • Content Management Tools
    • Preview and Build Tools
  • Complete Workflow Example
  • Troubleshooting

Installation

  • Prerequisites: Python 3.10+, uv, Git
  • Process: Clone repository, add server to config, enable and try the server

Usage

The server provides a set of tools to manage Hugo sites, allowing connection through an MCP client.

Tools

  • Environment Setup: Tools like check and install for Hugo, Go, Git; configure Git
  • Site Management: Create and manage Hugo sites
  • Theme Management: List, get details, install, update themes
  • Content Management: Create posts, list content
  • Preview and Build: Start, stop preview server; build, deploy site

Troubleshooting

Guidance on common issues such as installation failures, server start failures, and build issues.