Nomad MCP server

Provides a bridge to HashiCorp Nomad's cluster management capabilities, enabling job management, deployment tracking, namespace administration, node operations, and ACL management for infrastructure operations.
Back to servers
Setup instructions
Provider
Erik Koci
Release date
Apr 21, 2025
Language
Go
Stats
34 stars

MCP Nomad Go is a Golang-based Model Context Protocol (MCP) server that connects to HashiCorp Nomad, providing a comprehensive interface for managing your Nomad cluster. It enables seamless integration with MCP-compatible clients like Claude and Inspector, allowing you to manage Nomad resources through natural language interactions.

Installation Options

Using Smithery

The simplest way to install and configure MCP Nomad Go for Claude:

npx -y @smithery/cli install @kocierik/mcp-nomad --client claude

Using mcp-get

Another automated installation option:

npx @michaellatman/mcp-get@latest install @kocierik/mcp-nomad

Prebuilt from npm

npm install -g @kocierik/mcp-nomad

Then update your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp_nomad": {
      "command": "mcp-nomad",
      "args": [],
      "env": {
        "NOMAD_TOKEN": "${NOMAD_TOKEN}",
        "NOMAD_ADDR": "${NOMAD_ADDR}"
      }
    }
  }
}

From GitHub Releases

Download the binary from GitHub releases and configure Claude Desktop:

{
  "mcpServers": {
    "mcp_nomad": {
      "command": "mcp-nomad",
      "args": [],
      "env": {
        "NOMAD_TOKEN": "${NOMAD_TOKEN}",
        "NOMAD_ADDR": "${NOMAD_ADDR}"
      }
    }
  }
}

Building from Source

go get github.com/kocierik/mcp-nomad
go install github.com/kocierik/mcp-nomad

Using Docker

For Linux:

docker run -i --rm --network=host kocierik/mcpnomad-server:latest

For macOS/Windows:

docker run -i --rm \
  -e NOMAD_ADDR=http://host.docker.internal:4646 \
  kocierik/mcpnomad-server:latest

Usage

Configuration Options

When running MCP Nomad Go, you can use the following command-line flags:

  -nomad-addr string
    	Nomad server address (default "http://localhost:4646")
  -port string
    	Port for SSE server (default "8080")
  -transport string
    	Transport type (stdio or sse) (default "stdio")

Environment Variables

You can also configure the server using environment variables:

  • NOMAD_ADDR: Nomad HTTP API address (default: http://localhost:4646)
  • NOMAD_TOKEN: Nomad ACL token (optional)

Using with Inspector

To browse your Nomad cluster using Inspector:

npx @modelcontextprotocol/inspector npx @kocierik/mcp-nomad

Using with Claude

For Claude integration, set up your claude_desktop_config.json based on your installation method.

Docker Configuration for Claude (macOS/Windows):

{
  "mcpServers": {
    "mcp_nomad": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "NOMAD_TOKEN=secret-token-acl-optional", 
        "-e", "NOMAD_ADDR=http://host.docker.internal:4646",
        "mcpnomad/server:latest"
      ]
    }
  }
}

Docker Configuration for Claude (Linux):

{
  "mcpServers": {
    "mcp_nomad": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "NOMAD_ADDR=http://172.17.0.1:4646",
        "-e", "NOMAD_TOKEN=secret-token-acl-optional", 
        "kocierik/mcpnomad-server:latest"
      ]
    }
  }
}

Supported Features

Job Management

  • List, run, stop, and update jobs
  • Get job details, versions, submissions
  • List job allocations, evaluations, deployments
  • Get job summaries and scale status
  • Create job evaluations and plans
  • Scale task groups
  • List job services

Variable Management

Example variable operations:

# List variables in a namespace
list_variables namespace="my-namespace" prefix="my/path" per_page=10

# Get a specific variable
get_variable path="my/path" namespace="my-namespace"

# Create a variable
create_variable path="my/path" key="username" value="john" namespace="my-namespace"

# Delete a variable
delete_variable path="my/path" namespace="my-namespace"

Additional Management Features

MCP Nomad Go also supports comprehensive management of:

  • Deployments
  • Namespaces
  • Nodes
  • Allocations
  • Volumes
  • ACL policies and tokens
  • Sentinel policies
  • Cluster information

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "mcp_nomad" '{"command":"npx","args":["-y","@kocierik/mcp-nomad"],"env":{"NOMAD_TOKEN":"${NOMAD_TOKEN}","NOMAD_ADDR":"${NOMAD_ADDR}"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "mcp_nomad": {
            "command": "npx",
            "args": [
                "-y",
                "@kocierik/mcp-nomad"
            ],
            "env": {
                "NOMAD_TOKEN": "${NOMAD_TOKEN}",
                "NOMAD_ADDR": "${NOMAD_ADDR}"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "mcp_nomad": {
            "command": "npx",
            "args": [
                "-y",
                "@kocierik/mcp-nomad"
            ],
            "env": {
                "NOMAD_TOKEN": "${NOMAD_TOKEN}",
                "NOMAD_ADDR": "${NOMAD_ADDR}"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later