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.
The simplest way to install and configure MCP Nomad Go for Claude:
npx -y @smithery/cli install @kocierik/mcp-nomad --client claude
Another automated installation option:
npx @michaellatman/mcp-get@latest install @kocierik/mcp-nomad
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}"
}
}
}
}
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}"
}
}
}
}
go get github.com/kocierik/mcp-nomad
go install github.com/kocierik/mcp-nomad
docker run -i --rm --network=host kocierik/mcpnomad-server:latest
docker run -i --rm \
-e NOMAD_ADDR=http://host.docker.internal:4646 \
kocierik/mcpnomad-server:latest
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")
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)To browse your Nomad cluster using Inspector:
npx @modelcontextprotocol/inspector npx @kocierik/mcp-nomad
For Claude integration, set up your claude_desktop_config.json
based on your installation method.
{
"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"
]
}
}
}
{
"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"
]
}
}
}
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"
MCP Nomad Go also supports comprehensive management of:
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.
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.
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}"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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