A Model Context Protocol server that provides make functionality. This server enables LLMs to execute make targets from a Makefile in a safe, controlled way.
The server exposes make functionality through the Model Context Protocol, allowing LLMs like Claude to:
Using uv
(recommended):
uv pip install mcp-server-make
Using pip:
pip install mcp-server-make
# Run with default Makefile in current directory
uvx mcp-server-make
# Run with specific Makefile and working directory
uvx mcp-server-make --make-path /path/to/Makefile --working-dir /path/to/working/dir
To use with Claude Desktop, add to your Claude configuration (claude_desktop_config.json
):
{
"mcpServers": {
"make": {
"command": "uvx",
"args": [
"mcp-server-make",
"--make-path", "/absolute/path/to/Makefile",
"--working-dir", "/absolute/path/to/working/dir"
]
}
}
}
This server enables powerful development workflows by giving LLMs direct access to make functionality:
Automated Assistance
Project Management
Self-Validation Capabilities
make test
make lint
make format
make check
Project Understanding
make x
make z
make r
Independent Development
The server exposes a single tool:
make
- Run a make target from the Makefile
target
(string, required): Target name to executeThe server handles common errors gracefully:
All errors are returned with descriptive messages through the MCP protocol.
--working-dir
is specified, changes to that directory before executing makeHere's how Claude can help with development tasks:
Human: Can you run our test suite and format any code that needs it?
Claude: I'll help run the tests and format the code:
1. First, let's format the code:
[Calling make tool with args {"target": "format"}]
2 files reformatted, 3 files left unchanged
2. Now let's run the tests:
[Calling make tool with args {"target": "test"}]
Running tests...
4 passed, 0 failed
All formatting and tests completed successfully. The code is now properly formatted and all tests are passing.
Common issues:
We welcome contributions to improve mcp-server-make! Here's how:
make check
MIT License - see LICENSE file for details
{
"mcpServers": {
"make": {
"env": {},
"args": [
"mcp-server-make",
"--make-path",
"/absolute/path/to/Makefile",
"--working-dir",
"/absolute/path/to/working/dir"
],
"command": "uvx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.