Skip to content
MCP server

Cmake MCP

CMake MCP: 20 real tools to read, check, lint, scaffold, build and run CMake code.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.0
Listing updated
4 days ago

About Cmake MCP

Cmake MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add cmake-mcp -- npx -y @mrfentmen/cmake-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "cmake-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/cmake-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "cmake-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/cmake-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "cmake-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/cmake-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "cmake-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/cmake-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "cmake-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/cmake-mcp"
      ]
    }
  }
}

Pricing

Open source

Cmake MCP FAQ

Is Cmake MCP free?

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

How do I add Cmake MCP to Claude Code?

Run this command in your terminal: claude mcp add cmake-mcp -- npx -y @mrfentmen/cmake-mcp