# TypeScale MCP

> TypeScale MCP is an open-source MCP server for design and media. MCP server that generates fluid type, spacing and touch-target tokens for web and Flutter. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/ahmedsaeed1-eng/typescale-mcp
- **MCP Registry name:** io.github.ahmedsaeed1-eng/typescale-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-11-28

## About

TypeScale runs as a local stdio server and calculates responsive font sizes, line heights, spacing steps, corner radii and control target sizes between two viewport widths. Sizes are computed geometrically across a configurable base and ratio range, then expressed as CSS clamp() custom properties or a JSON mapping of logical-pixel font sizes for Flutter.

The server exposes two read-only tools. One generates a full token set from parameters such as base size, scale ratio, viewport bounds, spacing unit and density. The other returns typography and text-direction guidance for English or Arabic interfaces, including LTR and RTL handling.

It suits designers and front-end developers who want a consistent type scale for design systems and need Arabic RTL support alongside English. Calculations are deterministic and the server makes no network calls, but the output still needs to be checked in the rendered interface for contrast, zoom and wrapping.

## Features

- **Fluid font scale:** Computes nine type roles that interpolate smoothly between a minimum and maximum viewport width.
- **CSS and Flutter output:** Returns CSS custom properties or a JSON mapping of font sizes and line-height multipliers.
- **English and Arabic support:** Provides typography guidance for both LTR and RTL interfaces.
- **Spacing and touch targets:** Generates spacing steps, corner radii, control padding and recommended 44px and 48px target sizes.
- **Configurable parameters:** Accepts base size, scale ratio, viewport range, spacing unit and density settings with validated ranges.
- **Local stdio operation:** Runs as a local MCP server over stdin and stdout with no network calls during requests.

## Good for

- Generate a responsive type scale for a design system
- Create Arabic RTL design tokens with comfortable body text
- Produce CSS variables for a web project from one set of parameters
- Map typography tokens to a Flutter app's font sizes
- Keep button and control touch targets consistent across layouts

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add typescale-mcp -- npx -y typescale-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add typescale-mcp -- npx -y typescale-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.typescale-mcp]
command = "npx"
args = ["-y", "typescale-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user typescale-mcp npx -- -y typescale-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "typescale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "typescale-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `generate_design_tokens`: Generate fluid typography, spacing, radii, target sizes and layout tokens
- `typography_recommendations`: Return typography and direction guidance for an English or Arabic interface

## FAQ

### How do I install TypeScale MCP?

Run codex mcp add typescale -- npx --yes typescale-mcp@0.1.1, or install the package globally with npm and register the typescale-mcp command. Node.js 20 or newer is required.

### Does TypeScale MCP make network requests?

No. The two tools perform numerical computation only and do not read project files or execute commands.

### Does TypeScale MCP generate Flutter code?

No. It outputs a JSON mapping of font sizes and line-height multipliers; applications must apply the interpolation themselves.

### Which tools does TypeScale MCP expose?

generate_design_tokens for full token sets and typography_recommendations for English or Arabic guidance.

### Is TypeScale MCP free?

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

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

Run this command in your terminal: claude mcp add typescale-mcp -- npx -y typescale-mcp

### What are the best alternatives to TypeScale MCP?

The closest alternatives to TypeScale MCP are Figma To Code MCP, Figma Context MCP, Polish Studio MCP, Design Token Bridge MCP and Figma MCP Rust.

## Where this comes from

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

## Alternatives

- [Figma To Code MCP](https://ai-powered.com/mcp/figma-to-code-mcp): Figma To Code MCP is an open-source MCP server for design and media.
- [Figma Context MCP](https://ai-powered.com/mcp/figma-context-mcp-2): Figma Context MCP is an open-source MCP server for design and media.
- [Polish Studio MCP](https://ai-powered.com/mcp/polish-studio-mcp): Polish Studio MCP is an open-source MCP server for design and media.
- [Design Token Bridge MCP](https://ai-powered.com/mcp/design-token-bridge-mcp): Design Token Bridge MCP is an open-source MCP server for design and media.
- [Figma MCP Rust](https://ai-powered.com/mcp/figma-mcp-rust): Figma MCP Rust is an open-source MCP server for design and media.
- [EverythingFonts MCP Server](https://ai-powered.com/mcp/everythingfonts-mcp-server): EverythingFonts MCP Server is a freemium MCP server for design and media.
- [Fonts.Free](https://ai-powered.com/mcp/fonts-free): Fonts.Free is a freemium MCP server for design and media.
- [Branding MCP](https://ai-powered.com/mcp/branding-mcp): Branding MCP is an open-source MCP server for design and media.

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