# Makefile MCP

> Makefile MCP is an open-source MCP server for developer tools. Expose chosen GNU Make targets to AI agents as typed tools, without a generic shell. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS
- **Repository:** https://github.com/ai-ronin-systems/makefile-mcp
- **MCP Registry name:** io.github.ai-ronin-systems/makefile-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add makefile-mcp -- uvx makefile-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_tasks` (name suggests: reads): List available tasks in the generic presentation.
- `describe_task` (name suggests: reads): Describe one task.
- `run_task` (name suggests: changes): Run one governed task.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/makefile-mcp
