Swatch Ledger MCP
An independent, read-only MCP server for fabric shrinkage calculations. It allows AI agents to measure fabric shrinkage from before-and-after swatch dimensions and plan the initial fabric length to purchase, accounting for shrinkage and shop-increment rounding. Calculations run in the browser and measurements are not stored.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://swatch-ledger.pages.dev/mcpWhat you can do with it
- Measure fabric shrinkage from swatch dimensions
- Plan fabric yardage with shrinkage allowance
- Calculate length to buy before washing
- Round results to shop increments
Source and maintenance
Protocol and capabilities
- Server
- swatch-ledger 1.0.0
- MCP protocol
- 2025-06-18
- Tools
- 2 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": false
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
2 advertised
measure_fabric_shrinkage — Measure fabric shrinkage
Calculates fabric shrinkage (or growth) from a swatch measured before and after washing and drying: length change along the selvedge, width change across the fabric, and the change in area. Use the same marked distances before and after, in one unit (cm or inches). Positive percentages are shrinkage, negative are growth.
{
"type": "object",
"required": [
"length_before",
"length_after",
"width_before",
"width_after"
],
"properties": {
"unit": {
"enum": [
"cm",
"in"
],
"type": "string",
"description": "Unit of the four measurements (only used to label the answer). Default cm."
},
"width_after": {
"type": "number",
"description": "The same marked width after washing and drying.",
"exclusiveMinimum": 0
},
"length_after": {
"type": "number",
"description": "The same marked length after washing and drying.",
"exclusiveMinimum": 0
},
"width_before": {
"type": "number",
"description": "Marked width before washing (across the fabric), greater than 0.",
"exclusiveMinimum": 0
},
"length_before": {
"type": "number",
"description": "Marked length before washing (along the selvedge), greater than 0.",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
}{
"title": "Measure fabric shrinkage",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}plan_fabric_length — Plan fabric length to buy
Works out how much fabric to buy before washing so that the usable length needed remains afterwards: required length = (usable length + extra) ÷ (1 − lengthwise shrinkage), then rounded up to the shop’s selling increment. Works in metres or yards (any one unit). A negative shrinkage rate means growth.
{
"type": "object",
"required": [
"usable_length",
"shrinkage_percent"
],
"properties": {
"unit": {
"enum": [
"m",
"yd"
],
"type": "string",
"description": "Unit of the lengths (only used to label the answer). Default m."
},
"extra_length": {
"type": "number",
"minimum": 0,
"description": "Optional extra usable length after washing (default 0). Do not count an allowance the pattern already includes."
},
"usable_length": {
"type": "number",
"description": "Length needed after washing (check the pattern layout), greater than 0.",
"exclusiveMinimum": 0
},
"shop_increment": {
"type": "number",
"minimum": 0,
"description": "The shop’s selling increment to round up to, e.g. 0.25 for quarter metres or 0.125 for eighth yards. 0 for no rounding (default 0)."
},
"shrinkage_percent": {
"type": "number",
"minimum": -100,
"description": "Measured lengthwise shrinkage in percent, e.g. 5 for 5%. Negative means growth.",
"exclusiveMaximum": 100
}
},
"additionalProperties": false
}{
"title": "Plan fabric length to buy",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 262 ms
- 95th percentile latency
- 262 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 262 ms · metadata changed · 2 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http swatch-ledger-mcp https://swatch-ledger.pages.dev/mcpCodex
codex mcp add swatch-ledger-mcp --url https://swatch-ledger.pages.dev/mcpCursor
{
"mcpServers": {
"swatch-ledger-mcp": {
"url": "https://swatch-ledger.pages.dev/mcp"
}
}
}Cline
{
"mcpServers": {
"swatch-ledger-mcp": {
"type": "streamableHttp",
"url": "https://swatch-ledger.pages.dev/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"swatch-ledger-mcp": {
"type": "http",
"url": "https://swatch-ledger.pages.dev/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http swatch-ledger-mcp https://swatch-ledger.pages.dev/mcpClaude Desktop
{
"mcpServers": {
"swatch-ledger-mcp": {
"url": "https://swatch-ledger.pages.dev/mcp"
}
}
}Windsurf
{
"mcpServers": {
"swatch-ledger-mcp": {
"serverUrl": "https://swatch-ledger.pages.dev/mcp"
}
}
}Let your agent find its tools
Find servers like Swatch Ledger MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.