Skip to main content
Glama
meltdots-mcp

meltdots-mcp

by boh5
README.md
# MeltDots Craft Calculator (`meltdots-mcp`)

[![Website: meltdots.com](https://img.shields.io/badge/web-meltdots.com-black.svg)](https://meltdots.com/) [![MCP: stdio](https://img.shields.io/badge/MCP-stdio-blue.svg)](server.json) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![Node >=18](https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg)](package.json)

**English** · [简体中文](i18n/README.zh-CN.md) · [日本語](i18n/README.ja.md) · [한국어](i18n/README.ko.md) · [Deutsch](i18n/README.de.md)

Zero-dependency fuse bead pegboard calculator and cross stitch fabric calculator—available both as a lightweight ESM JavaScript library and as a local `stdio` [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server, maintained by [MeltDots](https://meltdots.com/).

LLMs routinely miscalculate 29×29 pegboard layouts across 2.5 mm / 2.6 mm / 5 mm / 10 mm beads, double-sided framing margins on Aida cloth, and over-2 linen/evenweave thread counts. `meltdots-mcp` gives AI assistants and scripts deterministic, offline math with zero runtime dependencies.

## Interactive Tools & Reference Pages on MeltDots

Looking for a visual editor, color chart lookup, or free 1:1 printable PDF export (no sign-in required)? Use the matching web tools on [MeltDots](https://meltdots.com/):

| Capability / Reference | Coverage | Interactive Web Tool on MeltDots |
| --- | --- | --- |
| Fuse bead size & pegboard planner | 20 bead series (2.5 / 2.6 / 5 / 10 mm), grid ↔ space | [Free Bead Size & Pegboard Calculator](https://meltdots.com/tools/bead-size-calculator) |
| Cross stitch fabric & skein calculator | Aida 11–22 ct, 28/32/36 ct over-2 linen & margins | [Cross Stitch Fabric Size & Aida Calculator](https://meltdots.com/tools/cross-stitch-size-calculator) |
| Multi-brand bead specifications | 20 palettes across 10 brands, 29×29 board sizing | [20 Fuse Bead Palettes Comparison](https://meltdots.com/tools/bead-palette-comparison) |
| Cross-brand bead color matching | Perler, Hama, Artkal, MARD (CIEDE2000 ΔE00) | [Free Bead Color Converter](https://meltdots.com/tools/bead-color-converter) |
| Brand bead color charts | Search codes, names & HEX references | [Perler Bead Color Chart](https://meltdots.com/tools/perler-bead-color-chart) · [Hama Bead Color Chart](https://meltdots.com/tools/hama-bead-color-chart) · [Artkal Bead Color Chart](https://meltdots.com/tools/artkal-bead-color-chart) · [MARD Bead Color Chart](https://meltdots.com/tools/mard-bead-color-chart) |
| DMC embroidery floss reference | 481 active DMC stranded cotton shades + HEX lookup | [DMC Floss Color Chart](https://meltdots.com/tools/dmc-color-chart) |
| Photo-to-pattern editors | Browser conversion, grid editor, PNG & 1:1 PDF | [Photo to Fuse Bead Pattern](https://meltdots.com/photo-to-fuse-bead-pattern) · [Photo to Cross Stitch Pattern](https://meltdots.com/photo-to-cross-stitch-pattern) |
| Free printable pattern libraries | Downloadable bead & cross stitch designs with legends | [Free Fuse Bead Patterns](https://meltdots.com/patterns/beads) · [Free Cross Stitch Patterns](https://meltdots.com/patterns/cross-stitch) |
| All browser utilities | Charts, converters, calculators & pixel resizer | [All Free Craft Tools](https://meltdots.com/tools) |

## MCP Server Setup

Runs 100% locally over `stdio`—no API key, no account, and no network calls.

### Claude Code

```bash
claude mcp add meltdots-mcp -- npx -y meltdots-mcp
```

### Claude Desktop / Cursor / VS Code

Add to your MCP configuration (`claude_desktop_config.json`, `.cursor/mcp.json`, or VS Code MCP settings):

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

### Exposed MCP Tools

| Tool | What it calculates | Interactive companion |
| --- | --- | --- |
| `calculate_bead_size` | Converts bead grid (`columns × rows`) to physical `mm` / `cm` / `in` and pegboard counts (`boardsAcross`, `boardsDown`, `boardCount`, `cellCapacity`), or derives the max whole-bead grid fitting inside a given `cm` / `in` space. Auto-resolves nominal pitches for 20 bead brands/series. | [Bead Size Calculator](https://meltdots.com/tools/bead-size-calculator) |
| `calculate_cross_stitch_size` | Converts stitch counts to stitched design size and fabric cut size (with 4-side framing margins) in `cm` and `in`, or fits max whole stitches into available fabric space, plus estimated stitch count and approximate 8 m / 6-strand DMC skein total (2 strands, 15% buffer). | [Cross Stitch Size Calculator](https://meltdots.com/tools/cross-stitch-size-calculator) |

## JavaScript / TypeScript API

```bash
npm install meltdots-mcp
```

```js
import { estimateBeadSize, estimateCrossStitchSize } from 'meltdots-mcp'

// 52×52 MARD 2.6 mm mini bead design on standard 29×29 pegboards
const bead = estimateBeadSize({
  width: 52,
  height: 52,
  brand: 'MARD',
})
// -> { widthCm: 13.52, heightCm: 13.52, boardsAcross: 2, boardsDown: 2, boardCount: 4, ... }

// 140×140 stitch design on 28-count evenweave stitched over 2 (14 stitches/in), 5 cm margin per side
const stitch = estimateCrossStitchSize({
  width: 140,
  height: 140,
  preset: 'evenweave-28-over-2',
  marginPerSide: 5,
  unit: 'cm',
})
// -> { designWidthCm: 25.4, cutWidthCm: 35.4, approxSkeinsTotal: 13, ... }
```

## Supported Nominal Specs

### Fuse Bead Series (`BEAD_SIZE_MM`)

| Size Class | Nominal Pitch | 29×29 Pegboard Size | Supported Brand Keys |
| --- | --: | --: | --- |
| Mini (2.5 mm) | `2.5 mm` | `7.3 × 7.3 cm` | `Hama Mini` |
| Mini (2.6 mm) | `2.6 mm` | `7.5 × 7.5 cm` | `MARD`, `Perler Mini`, `Artkal C Mini`, `Artkal M Mini`, `Artkal A Mini`, `Top Tier Mini`, `COCO`, `漫漫` (`Manman`), `盼盼` (`Panpan`), `咪小窝` (`Mixiaowo`) |
| Midi / Caps (5 mm) | `5 mm` | `14.5 × 14.5 cm` | `Perler`, `Perler Caps`, `Hama`, `Artkal S`, `Artkal J`, `Artkal R`, `Top Tier`, `Nabbi` |
| Maxi (10 mm) | `10 mm` | `29.0 × 29.0 cm` | `Hama Maxi` |

### Cross Stitch Fabric Presets (`CROSS_STITCH_FABRIC_PRESETS`)

| Preset ID | Fabric | Stitching Method | Effective Count (st/in) | Typical Strands |
| --- | --- | --- | --: | :-: |
| `aida-11` | 11 ct Aida | over 1 | 11 | 3 |
| `aida-14` | 14 ct Aida | over 1 | 14 | 2 |
| `aida-16` | 16 ct Aida | over 1 | 16 | 2 |
| `aida-18` | 18 ct Aida | over 1 | 18 | 2 |
| `aida-22` | 22 ct Aida | over 1 | 22 | 1–2 |
| `evenweave-28-over-2` | 28 ct Evenweave | over 2 | 14 | 2 |
| `evenweave-32-over-2` | 32 ct Evenweave | over 2 | 16 | 2 |
| `linen-36-over-2` | 36 ct Linen | over 2 | 18 | 1–2 |

## Disclaimer & License

- **Independent project:** [MeltDots](https://meltdots.com/) is an independent craft software tool and is not affiliated with or endorsed by Perler, Hama, Artkal, MARD, Nabbi, Top Tier, COCO, or DMC. All dimensions are nominal planning estimates; fused bead size and per-color floss requirements vary by ironing and chart distribution.
- **License:** [MIT](LICENSE)