Skip to main content
ClaudeWave
MCP ServersRegistry oficial0 estrellas0 forksPythonMITActualizado today
Install in Claude Code / Claude Desktop
Method: pip / Python · crochetpatterngen-engine
Claude Code CLI
claude mcp add crochet-engine -- python -m crochetpatterngen-engine
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "crochet-engine": {
      "command": "python",
      "args": ["-m", "crochetpatterngen-engine"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Install first: pip install crochetpatterngen-engine
Casos de uso

Resumen de MCP Servers

# crochetpatterngen-engine

The deterministic photo-to-crochet-chart engine behind [crochetpatterngen.com](https://crochetpatterngen.com) — packaged as a Python library, CLI, and MCP server so AI agents (Claude Desktop, Cursor, etc.) can turn photos into crochet charts with exact stitch counts.

**Deterministic, not generative.** There is no AI image generation here — just resize, median-cut color quantization, and confetti cleanup. Same input, same chart, same stitch counts, every time. No hallucinated rows.

## Why this engine

- **Real stitch counts** — every chart comes with per-color hex + stitch counts that sum exactly to the grid size. What you see is what you crochet.
- **C2C block aspect correction** — C2C blocks are physically wider than tall (0.7:1 h:w). The engine adjusts grid dimensions so the *worked piece* keeps the photo's proportions instead of coming out squashed.
- **5 technique presets** — `graph`, `c2c`, `tapestry`, `mosaic`, `filet`.
- **Yarn estimation** — per-color yardage for 6 yarn weights (fingering → super bulky).
- **Zero heavy deps** — Pillow + numpy only. Optional `rembg` extra for background removal.

## Install

```bash
pip install crochetpatterngen-engine          # core
pip install crochetpatterngen-engine[mcp]     # + MCP server
pip install crochetpatterngen-engine[rembg]   # + background removal
```

## Python API

```python
from PIL import Image
from crochet_chart_engine import generate_chart, render_design, estimate_yarn

png_bytes, meta = generate_chart(
    Image.open("photo.jpg"),
    technique="c2c",     # graph | c2c | tapestry | mosaic | filet
    grid_w=60,           # 20..120
    n_colors=8,          # 2..16
)
# meta: {"grid_w", "grid_h", "colors": [{"hex", "count"}],
#        "total_stitches", "technique", "warning"}

yarn = estimate_yarn(meta, weight="worsted")
# {"total_yards": ..., "colors": [{"hex", "count", "yards"}], ...}

png_bytes, meta = render_design("designs/frog.txt")  # ASCII design -> chart
```

## CLI

```bash
crochet-chart chart photo.jpg out.png --technique c2c --grid-w 60 --colors 8
crochet-chart design designs/frog.txt frog.png
crochet-chart yarn photo.jpg --technique graph --weight worsted
```

## MCP server (Claude Desktop & friends)

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "crochet": {
      "command": "uvx",
      "args": ["--from", "crochetpatterngen-engine[mcp]", "crochetpatterngen-mcp"]
    }
  }
}
```

Or with a regular pip install:

```json
{
  "mcpServers": {
    "crochet": {
      "command": "python",
      "args": ["-m", "crochet_chart_engine.mcp_server"]
    }
  }
}
```

Tools exposed (stdio transport):

| Tool | What it does |
| --- | --- |
| `photo_to_chart` | Local image path → chart PNG (base64 or saved to `output_path`) + per-color stitch counts JSON |
| `render_ascii_design` | ASCII design file → chart PNG + stitch counts |
| `estimate_yarn_tool` | Stitch counts → per-color yardage for one yarn weight or `all` |

## ASCII design format

See `designs/frog.txt` and `designs/dragon.txt`:

```
# comment
palette: G=#58A05C, W=#FFFFFF, .=#FAFAF7
title: Frog Face
technique: graph
---
..GGGG..........GGGG....
.GGWWGG........GGWWGG...
```

One character per stitch; `.` is the background/padding color. Rows are padded to the longest row.

## Development

```bash
pip install -e .[dev,mcp]
pytest tests/
```

## License

MIT — see [LICENSE](LICENSE).

---

Free web tool + pattern library at **[crochetpatterngen.com](https://crochetpatterngen.com)**.

<!-- mcp-name: io.github.dengyu123456/crochet-engine -->

Lo que la gente pregunta sobre crochet-engine

¿Qué es dengyu123456/crochet-engine?

+

dengyu123456/crochet-engine es mcp servers para el ecosistema de Claude AI con 0 estrellas en GitHub.

¿Cómo se instala crochet-engine?

+

Puedes instalar crochet-engine clonando el repositorio (https://github.com/dengyu123456/crochet-engine) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar dengyu123456/crochet-engine?

+

dengyu123456/crochet-engine aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene dengyu123456/crochet-engine?

+

dengyu123456/crochet-engine es mantenido por dengyu123456. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a crochet-engine?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega crochet-engine en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: dengyu123456/crochet-engine
[![Featured on ClaudeWave](https://claudewave.com/api/badge/dengyu123456-crochet-engine)](https://claudewave.com/repo/dengyu123456-crochet-engine)
<a href="https://claudewave.com/repo/dengyu123456-crochet-engine"><img src="https://claudewave.com/api/badge/dengyu123456-crochet-engine" alt="Featured on ClaudeWave: dengyu123456/crochet-engine" width="320" height="64" /></a>

Más MCP Servers

Alternativas a crochet-engine