TypeScale MCP Server
Fluid typography and spacing tokens for accessible interfaces.
TypeScale MCP scores 66 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
82/100 for listing completeness. Lost points: 2 of 5 tools barely described, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ahmedsaeed1-eng-typescale-mcp": { "command": "npx", "args": [ "-y", "typescale-mcp@0.1.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools5Tool docs quality grade D
All capabilitiesGenerate fluid typography, spacing, radii, target sizes and layout tokens
spacingUnittool2–8 px, integer
Return typography and direction guidance for an English or Arabic interface
viewportMaxtool320–2560 px, integer, > min
viewportMintool280–1440 px, integer
About
TypeScale MCP
A reference system for type and space that adapts to the interface.
SPECIMEN 01 — The responsive scale
Type should carry the structure of a page. TypeScale calculates fluid font sizes, spacing, corner radii and target sizes, with support for English and Arabic typography. The output is intended for design systems, web CSS, and Flutter interfaces.
The default specimen
| Role | At 360px | At 1440px |
|---|---|---|
| Caption | 12.098 | 12.098 |
| Small | 13.913 | 14.4 |
| Body | 16 | 18 |
| H6 | 18.4 | 22.5 |
| H5 | 21.16 | 28.125 |
| H4 | 24.334 | 35.156 |
| H3 | 27.984 | 43.945 |
| H2 | 32.182 | 54.932 |
| H1 | 37.009 | 68.665 |
Values shown in CSS pixels using the default viewport range and 16px rem baseline. These are computed values, not measurements of drawn text in the specimen illustration.
| System | Text | Space |
|---|---|---|
| English & Arabic, LTR/RTL | Nine type roles; fluid CSS | Spacing, radii, control padding, touch targets |
| Node.js 20+; MCP stdio | Font and line-height guidance | CSS, JSON, Flutter-friendly tokens |
Local by design. The two read-only tools perform deterministic numerical computation. They do not read project files, make network calls or execute commands. Setup requires installing dependencies.
Package installation
Once this version is published to npm by the repository maintainer, register the pinned local stdio server directly with Codex:
codex mcp add typescale -- npx --yes typescale-mcp@0.1.1
Or install the exact release and use the installed command:
npm install -g typescale-mcp@0.1.1
codex mcp add typescale -- typescale-mcp
The package metadata declares the MCP Registry identity
io.github.ahmedsaeed1-eng/typescale-mcp. The official registry entry is a separate
publication step after npm release; local stdio use does not require it.
01 / Installation
Runtime requires Node.js 20 or newer; development checks require Node 20.19+, 22.13+ or 24+ for ESLint 10.
git clone https://github.com/ahmedsaeed1-eng/typescale-mcp.git
cd typescale-mcp
npm ci
npm run lint
npm run format_check
npm test
The npm install step obtains dependencies from the package registry; server requests themselves never use a network interface.
02 / Connect to Codex
From the repository directory run:
codex mcp add typescale -- node /absolute/path/to/typescale-mcp/src/server.js
Use the actual absolute path to your checkout. On Windows use the absolute Windows path in quotes if it contains spaces. Run codex mcp list to confirm registration.
Equivalent configuration in Codex's MCP settings:
[mcp_servers.typescale]
command = "node"
args = ["/absolute/path/to/typescale-mcp/src/server.js"]
The command starts an MCP service communicating on stdin/stdout. It is not an interactive terminal prompt.
03 / Tool reference
| Name | Purpose |
|---|---|
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 |
Example prompt for Codex:
Use TypeScale to generate Arabic RTL design tokens at 360–1440px viewport widths. Keep body text readable and controls comfortable. Show CSS variables and the Flutter mapping.
Example arguments for generate_design_tokens:
{"locale":"ar","baseMin":16,"baseMax":18,"ratioMin":1.15,"ratioMax":1.25,"viewportMin":360,"viewportMax":1440,"spacingUnit":4,"density":"comfortable","format":"all"}
| Parameter | Accepted range or value | Default |
|---|---|---|
| baseMin / baseMax | 14–24 px; max >= min | 16 / 18 |
| ratioMin / ratioMax | 1.01–1.333; max >= min | 1.15 / 1.25 |
| viewportMin | 280–1440 px, integer | 360 |
| viewportMax | 320–2560 px, integer, > min | 1440 |
| spacingUnit | 2–8 px, integer | 4 |
| density | compact, comfortable | comfortable |
| locale | en, ar | en |
| format | json, css, flutter, all | all |
All inputs are optional. The recommendation tool accepts locale only.
04 / Apply the scale
Use the returned CSS custom property definitions, then reference them in project styles:
body {
font-family: var(--font-family);
font-size: var(--type-body);
line-height: var(--line-height-body);
}
h1 {
font-size: var(--type-h1);
line-height: var(--line-height-heading);
}
button {
min-block-size: var(--touch-recommended);
padding-block: var(--control-padding-block);
padding-inline: var(--control-padding-inline);
}
Set lang="ar" and dir="rtl" on the relevant Arabic document or subtree. The tool provides tokens only; this CSS does not apply itself.
05 / Design notes and limitations
Font sizes scale geometrically at both viewport bounds, then interpolate using CSS clamp(). The smallest caption is bounded at a 12px design size; scale roles may intentionally coincide in low-ratio designs. A user-configurable browser root font size changes the interpretation of rem units; do not override it to force the example baseline.
The Flutter mapping is JSON with min/max logical-pixel font sizes and line-height multipliers. Applications must apply responsive interpolation themselves and respect platform text scaling. No actual Flutter source is generated.
Targets of 44px and 48px are recommended design defaults, not guarantees of accessibility. Test the rendered interface for contrast, text zoom, hit areas, wrapping and multilingual glyphs. Font stacks are suggestions, not distributed font files. No browser, font or rendered layout measurement is performed.
06 / Development
npm run lint
npm run format_check
npm test
The suite tests deterministic calculations, range validation, Arabic guidance, format outputs, target sizes, and both tools via the official MCP client and a real stdio connection. Version 0.1.1 additionally rejects invalid direct numeric inputs and verifies 48 combinations of role ordering, finite values and bounded settings. Local Node 24: 9/9 tests, ESLint and Prettier passed. CI is configured for Node 20 and 22 across Linux, macOS and Windows.
Colophon
MIT. See LICENSE and THIRD_PARTY.md.
Frequently asked questions
What is TypeScale MCP Server?
Fluid typography and spacing tokens for accessible interfaces.
How do I install TypeScale MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. TypeScale MCP Server runs locally from the npm package typescale-mcp with the command npx -y typescale-mcp@0.1.1.
Is TypeScale MCP Server free and open source?
Yes. TypeScale MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does TypeScale MCP Server support remote (HTTP) connections?
No remote endpoint is listed for TypeScale MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does TypeScale MCP Server provide?
TypeScale MCP Server provides 5 tools, including generate_design_tokens, spacingUnit, typography_recommendations, and viewportMax. See the full tool list for descriptions and parameters.
How is TypeScale MCP Server's trust score calculated?
TypeScale MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.