# M4sugar MCP

> M4sugar MCP is an open-source MCP server. M4Sugar MCP: 20 real tools to read, check, lint, scaffold, build and run M4Sugar code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mrfentmen/awesome-servers
- **MCP Registry name:** io.github.mrfentmen/m4sugar-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add m4sugar-mcp -- npx -y @mrfentmen/m4sugar-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## FAQ

### Is M4sugar MCP free?

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

### How do I add M4sugar MCP to Claude Code?

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

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