# codefmt MCP server

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

## Facts

- Endpoint: https://codefmt.dev/api/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: A (100/100, scanned 2026-10-05) · report https://gateturbo.com/report/a4819a71-fc43-4cb0-9674-aebb4538d9e9
- Tools: 3
- Category: Dev tools · source: registry
- Last probed: 2026-09-03 · first listed: 2026-08-18
- Directory page: https://gateturbo.com/mcp/codefmt · this document: https://gateturbo.com/mcp/codefmt.md · JSON: https://gateturbo.com/api/directory/servers/codefmt

## Tools (3)

- `format_code`: Format and lint JavaScript, Python, or HubL code for Zapier, n8n, Pipedream, Make, or HubSpot. Wraps the source in each platform's runtime s
- `ask_codefmt`: Ask a natural-language question about codefmt: formatting and linting JavaScript, Python, and HubL for automation platforms (Zapier, n8n, Pi
- `format_json`: Format (pretty-print or minify) a JSON document, optionally sorting object keys. Number literals are preserved exactly (64-bit IDs safe); pa

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect codefmt to your gate (https://gateturbo.com/login?next=/discovery?connect=codefmt).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/codefmt/claude · Claude Desktop → https://gateturbo.com/mcp/codefmt/claude-desktop · ChatGPT → https://gateturbo.com/mcp/codefmt/chatgpt · Codex → https://gateturbo.com/mcp/codefmt/codex · Cursor → https://gateturbo.com/mcp/codefmt/cursor · Windsurf → https://gateturbo.com/mcp/codefmt/windsurf · VS Code → https://gateturbo.com/mcp/codefmt/vscode · Gemini CLI → https://gateturbo.com/mcp/codefmt/gemini-cli · OpenClaw → https://gateturbo.com/mcp/codefmt/openclaw · n8n → https://gateturbo.com/mcp/codefmt/n8n · A script or server → https://gateturbo.com/mcp/codefmt/script

### Direct: Claude Code

Add codefmt to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

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

### Direct: Cursor

Add codefmt to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

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

### Direct: VS Code

Add codefmt to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

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

### Direct: Codex

Add codefmt to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.codefmt]
url = "https://codefmt.dev/api/mcp"
```

### Direct: Claude

Add codefmt as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "codefmt" and paste the URL below.
3. Save; the tools appear in new chats.

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

### Direct: ChatGPT

Add codefmt as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "codefmt" with the URL below.
3. Set authentication to none.

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

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
