Skip to main content
Glama

aifmt

Make visual text content just work.

An MCP server that fixes, validates, and generates visual text content for AI coding assistants.

Tests License: MIT Python 3.10+


LLMs can't count visual columns. len("📦") returns 1, but it renders wider. Every AI-generated box, table, and tree diagram ends up misaligned. aifmt fixes it.

Install

pip install aifmt

Related MCP server: Vison-MCP

Configure

Add to your MCP client (Copilot CLI, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI):

{
  "mcpServers": {
    "aifmt": {
      "command": "uvx",
      "args": ["aifmt"]
    }
  }
}

Tools

Tool

Description

fix

Repair misaligned boxes, tables, bars, and tree diagrams

validate

Check for alignment issues without modifying

generate

Create diagrams via Mermaid or PlantUML

targets

List rendering profiles (GitHub, terminal, custom)

Key Insight

GitHub renders emoji at 2.5 monospace columns — not 2.0. aifmt uses rendering-profile-aware width calculation to handle this. Read how we discovered it →

Documentation

📖 ericchansen.github.io/aifmt

License

MIT

A
license - permissive license
-
quality - not tested
F
maintenance

Maintenance

–Maintainers
<1hResponse time
–Release cycle
1Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/ericchansen/aifmt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server