# Afm MCP

> Afm MCP is an open-source MCP server for font tooling. MCP server that parses Adobe Font Metrics files and validates their headers, glyph counts. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/mrfentmen/awesome-servers
- **MCP Registry name:** io.github.mrfentmen/afm-mcp
- **Categories:** font tooling
- **Listing updated:** 2026-11-19

## About

The registry entry describes this package as a way to parse Adobe Font Metrics (AFM) files and check their headers, glyph counts and glyph widths from an MCP client. It runs over stdio and is published to npm as @mrfentmen/afm-mcp, version 1.0.0, with no environment variables listed.

The package is one of the many small TypeScript servers in the awesome-servers collection, which the README describes as a set of keyless, single-purpose servers. The README's own text covers the wider repository rather than this package, so specifics beyond the registry entry are not confirmed here.

It suits developers and font tooling engineers who want an AI assistant to inspect AFM font metrics data without writing a parser themselves.

## Features

- **AFM file parsing:** Reads Adobe Font Metrics files and extracts their contents for inspection.
- **Header validation:** Checks the header section of an AFM file for structural correctness.
- **Glyph count checks:** Reports the number of glyphs defined in a metrics file.
- **Glyph width lookup:** Returns character width values from the font metrics.
- **Stdio transport:** Runs as a local process over standard input and output for MCP clients.

## Good for

- Validating an AFM file before using it in a typesetting or PDF pipeline
- Checking glyph counts and widths while debugging font layout
- Letting an AI assistant answer questions about metrics in a font file

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

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

## FAQ

### How is this server installed?

The registry lists it as an npm package, @mrfentmen/afm-mcp at version 1.0.0, run over stdio.

### Does it require any API keys or environment variables?

The registry entry lists no environment variables for the package.

### Is Afm MCP free?

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

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

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

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

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