Skip to content
MCP server

Makefile MCP

Expose chosen GNU Make targets to AI agents as typed tools, without a generic shell

Runs locally

Makefile MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.3.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add makefile-mcp -- uvx makefile-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "makefile-mcp": {
      "command": "uvx",
      "args": [
        "makefile-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "makefile-mcp": {
      "command": "uvx",
      "args": [
        "makefile-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "makefile-mcp": {
      "command": "uvx",
      "args": [
        "makefile-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "makefile-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "makefile-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add makefile-mcp -- uvx makefile-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.makefile-mcp]
command = "uvx"
args = ["makefile-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "makefile-mcp": {
      "command": "uvx",
      "args": [
        "makefile-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user makefile-mcp uvx -- makefile-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "makefile-mcp": {
          "command": "uvx",
          "args": [
            "makefile-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Makefile MCP

Makefile MCP assumes the agent may be compromised by prompt injection and keeps the worst case small: it can only run targets you listed, with values you typed, and a human approves the risky ones. With no configuration, it lists every target it can classify confidently but lets agents run only test, lint, check and fmt, with no caller-controlled Make variables. The project's README is explicit that recipes are trusted code and not sandboxed.

Adding a .makefile-mcp.yaml switches to governed mode, where only enabled context and target pairs run, inputs are typed and validated, and tasks marked dangerous require human approval through the MCP client. Every attempt, refused, approved or cancelled, can go to a hash-chained audit log with secret inputs masked, and a pin setting stops the server if the Makefile, its includes or listed scripts change.

It presents tools three ways: one typed tool per target, generic list_tasks, describe_task and run_task tools, or both. The same package also has a CLI with list, doctor and run commands, including a preview that uses make --dry-run. Install with pipx or uv from PyPI.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 5 tools changes data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

make_test
Run the test target.
make_lint
Run the lint target.
list_tasksName suggests: reads
List available tasks in the generic presentation.
describe_taskName suggests: reads
Describe one task.
run_taskName suggests: changes
Run one governed task.

What it does

Typed tools per target
Each runnable target becomes its own MCP tool, such as make_test.
Safe by default
Without config only test, lint, check and fmt can run.
Governed mode
Allow-listed context and target pairs with validated, typed inputs.
Human approval
Dangerous tasks need explicit approval through the client.
Hash-chained audit log
Records every governed attempt with secrets masked.
Pinning
Edits to the Makefile or listed scripts halt the server until restart.

Good for

  • Let an agent run tests and lint but nothing else
  • Allow a deploy target only to staging, with approval for production
  • Keep an audit trail of what an agent ran
  • Reuse existing Makefile automation instead of writing a new workflow tool

Pricing

Open source

Open-source PyPI package; licence badge linked from the repo

Makefile MCP FAQ

Does Makefile MCP give agents a shell?

No. Agents can only call exposed Make targets.

What can run with no config?

Only test, lint, check and fmt.

Is the Makefile sandboxed?

No. Recipes are treated as trusted code, not sandboxed.

How do I install Makefile MCP?

pipx install makefile-mcp or uv tool install makefile-mcp, then makefile-mcp serve.

Is Makefile MCP free?

Yes. Makefile MCP is open source, so you can use and self-host it for free.

How do I add Makefile MCP to Claude Code?

Run this command in your terminal: claude mcp add makefile-mcp -- uvx makefile-mcp

What are the best alternatives to Makefile MCP?

The closest alternatives to Makefile MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers