TypeScale MCP
MCP server that generates fluid type, spacing and touch-target tokens for web and Flutter
TypeScale MCP is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add typescale-mcp -- npx -y typescale-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"typescale-mcp": {
"command": "npx",
"args": [
"-y",
"typescale-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"typescale-mcp": {
"command": "npx",
"args": [
"-y",
"typescale-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"typescale-mcp": {
"command": "npx",
"args": [
"-y",
"typescale-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add typescale-mcp -- npx -y typescale-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.typescale-mcp]
command = "npx"
args = ["-y", "typescale-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"typescale-mcp": {
"command": "npx",
"args": [
"-y",
"typescale-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Or run: gemini mcp add -s user typescale-mcp npx -- -y typescale-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About TypeScale MCP
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.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
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
What it does
- 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
Pricing
Open source
MIT licensed, free to use.
TypeScale MCP 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.