makefilemcpserver
Exposes Makefile targets as callable tools, allowing execution of Make commands with arguments. Reads Makefile targets and their descriptions to create executable tools named make_.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@makefilemcpserverrun the test target for the backend module"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
makefilemcpserver
An MCP (Model Context Protocol) server that exposes Makefile targets as callable tools for AI assistants like Claude, Cursor, etc.
⚠️ ALPHA SOFTWARE - LOCAL USE ONLY ⚠️
This server executes Make commands with user-provided arguments. Only use in trusted environments. It intelligently parses out commands and args.
This almost certainly won't work flawlessly for your Makefile. In fact, it might not even work at all.
Installation
Prerequisites
Node.js 16 or higher
makecommand available in PATHA Makefile in your project directory
Quick Start
Clone this repository:
git clone https://github.com/mparker3/makefilemcpserver.git
cd makefilemcpserverInstall dependencies:
npm installBuild the server:
npm run buildRelated MCP server: wrapmcp
Usage
Add to your MCP server configuration:
{
"mcpServers": {
"makefilemcpserver": {
"command": "node",
"args": [
"/absolute/path/to/makefilemcpserver/build/index.js",
"/path/to/your/project"
]
}
}
}The second argument (optional) specifies the directory containing your Makefile. If omitted, uses the current directory.
Example Makefile
# Build the project
build:
npm run build
# Run tests
test:
npm test
# Deploy to production
deploy: build test
./deploy.shThis will expose tools: make_build, make_test, and make_deploy to Claude.
How It Works
The server reads your Makefile at startup
Each Make target becomes a tool with the name
make_<target>Comments directly above targets become tool descriptions
MCP clients can then run any target with optional arguments. We do some best-effort parsing of args from docs + commands, a better approach would just be to offload it to yet another LLM call(s) at startup.
Security Considerations
⚠️ WARNING: This server executes shell commands via Make. It currently has minimal input validation.
Anything you expose in your Makefile, any MCP client will have access to. Highly recommend running locally only.
The server does some de rigeur input sanitization, but no guarantees that an enterprising security researcher can't figure out a way around it.
Development
# Install dependencies
npm install
# Build once
npm run build
# Build and watch for changes
npm run watch
# Run the MCP Inspector for debugging
npm run inspectorDebugging
Since MCP servers communicate over stdio, use the MCP Inspector:
npm run inspectorThen open the provided URL to access debugging tools.
Contributing
This is alpha software. Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
License
MIT - See LICENSE file for details
Roadmap
Support for multiple Makefiles
Configuration for timeout values
Better error messages and logging
Tests and CI/CD pipeline
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseBqualityDmaintenanceExposes Makefile targets as MCP tools, allowing AI agents to execute project automation tasks like build, test, and deploy through natural language.121MIT
- AlicenseNot gradedqualityCmaintenanceUniversal MCP server that wraps any CLI tool, enabling AI assistants to run commands via natural language.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that wraps AI CLI tools — Claude Code, Antigravity CLI, and Codex CLI — so any MCP client can call them as tools.4539MIT
- AlicenseAqualityAmaintenanceAn MCP server that bridges AI assistants to other CLI tools, enabling capabilities like large-context reads, vision, file generation, and cross-vendor verification without API keys.62Apache 2.0
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mparker3/makefilemcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server