# codefmt

> codefmt is an MCP server. Format/lint JS, Python, HubL for automation platforms. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Website:** https://codefmt.dev
- **MCP Registry name:** dev.codefmt/codefmt
- **Listing updated:** 2026-11-13

## About

Format/lint JS, Python, HubL for automation platforms. Tools: format_code, format_json, ask_codefmt

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http codefmt https://codefmt.dev/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://codefmt.dev/api/mcp
```

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

```json
{
  "mcpServers": {
    "codefmt": {
      "url": "https://codefmt.dev/api/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "codefmt": {
      "type": "http",
      "url": "https://codefmt.dev/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codefmt": {
      "serverUrl": "https://codefmt.dev/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codefmt": {
      "type": "http",
      "url": "https://codefmt.dev/api/mcp"
    }
  }
}
```

## FAQ

### How do I add codefmt to Claude Code?

Run this command in your terminal: claude mcp add --transport http codefmt https://codefmt.dev/api/mcp

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