hugo-mcp-server
Hugo MCP Remote Server
Streamable HTTP MCP server that wraps the Hugo Generator API. Use it from Cursor (or any MCP remote client) to add and manage page schemas, records, generate markdown, build, and publish.
Prerequisites
Node.js 22+
A running Hugo Generator API (
HUGO_API_BASE_URL)
Local development
cp .env.example .env
# edit HUGO_API_BASE_URL if needed
npm install
npm run devServer listens on http://localhost:3100/mcp by default.
npm run build && npm startDocker
docker compose up --build -dDefaults:
Variable | Default |
|
|
|
|
| (empty — auth disabled) |
extra_hosts: host.docker.internal:host-gateway lets the container reach an API on the host machine. If the API runs in the same Compose network, set HUGO_API_BASE_URL to that service URL instead (e.g. http://hugo-generator:8080).
Cursor MCP config
Add a remote server entry (path may vary by Cursor version):
{
"mcpServers": {
"hugo": {
"url": "http://localhost:3100/mcp"
}
}
}With optional bearer auth (MCP_API_KEY set on the server):
{
"mcpServers": {
"hugo": {
"url": "http://localhost:3100/mcp",
"headers": {
"Authorization": "Bearer change-me"
}
}
}
}Tools
Tool | Purpose |
| Upstream API health |
| Schema CRUD |
| Page records |
| Write Hugo markdown |
| Run Hugo CLI |
| Sync |
| Theme library |
| Theme → schema helpers |
Typical content workflow: list_schemas → create_record → generate_from_records → build_site → publish_site.
Note: The upstream Records API supports create/list/get only (no update/delete).
Environment
Variable | Required | Description |
| yes | Hugo Generator API base URL (no trailing slash) |
| no | Listen port (default |
| no | When set, |
GET /health on this server is always unauthenticated (for Docker healthchecks).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/klauri/hugo-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server