Skip to main content
Glama
README.md
# Biomimicry MCP

Comprehensive, zero-bloat local stdio MCP server providing **38 biomimetic engineering archetypes across 7 biological domains** on demand.

Instead of stuffing dozens of models into always-loaded `SKILL.md` files, agents call `biomimicry_match` with the prompt's problem shape, pull only the top 1 to 3 fitting models (~200 tokens), apply their concrete operating rules, and declare the active model visibly on the first line of output (`> **Biomimetic model:** <Model>: <how it shapes this step>`).

## 7 Biological Domains (38 Archetypes)

1. **Swarm and Collective Intelligence:** Stigmergy, Slime-mold foraging, Quorum sensing, Ant colony optimization, Flocking (local rules), Bee waggle-dance consensus
2. **Evolutionary and Adaptive:** Natural selection (tournament), Niche construction, Speciation, Horizontal gene transfer, Punctuated equilibrium, Red Queen co-evolution
3. **Cellular and Structural:** Semi-permeable membranes (seams), Compartmentalization (organelles), Apoptosis (programmed deprecation), Autophagy (debt recycling), Chaperone recovery, Tensegrity
4. **Physiological and Homeostatic:** Homeostasis, Immune response (memory cells), Allostasis (predictive load), Wolff's law (load-driven hardening), Clotting (fast containment)
5. **Ecological and Systems:** Mycelial networks, Ecological succession, Symbiogenesis (mutualism), Keystone species (critical seams), Trophic cascades (blast radius), Biodiversity (resilience)
6. **Neural and Cognitive:** Synaptic pruning, Hebbian reinforcement, Predictive coding, Lateral inhibition (signal sharpening), Sleep consolidation (retrospective)
7. **Developmental and Morphogenetic:** Fractal holons, Morphogenesis (local-to-global), Scaffolding, Metamorphosis (expand-contract)

## MCP Tools

- `biomimicry_match(problem, scale?, domain?, limit?)`: Ranks archetypes against a problem description using deterministic BM25, returning the top matches with concrete operating rules (or recommending `none` for mechanical tasks).
- `biomimicry_list(domain?)`: Lightweight index of domains and archetype slugs/names.
- `biomimicry_get(slug)`: Returns the full operating playbook for one archetype.

## Quick start

```bash
npm install
npm run build
npm test
```

Register globally or in `.mcp.json`:

```json
{
  "mcpServers": {
    "biomimicry": {
      "command": "node",
      "args": ["/path/to/biomimicry-mcp/dist/cli.js"]
    }
  }
}
```

CLI helpers:

```bash
node dist/cli.js match "hard to reverse database migration with high blast radius"
node dist/cli.js list
```

## License

MIT

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

The three tools map cleanly to distinct verbs: match (semantic search against a problem prompt), list (enumerate domains and archetype slugs), and get (retrieve one archetype by slug). There is no overlap in inputs or purpose, so an agent can pick correctly without hesitation.

Naming Consistency5/5

All tools use the same namespace-prefixed verb_noun pattern (biomimicry_match, biomimicry_list, biomimicry_get). The shared prefix makes them group obviously as one server's operations.

Tool Count5/5

Three tools exactly cover the read-only lifecycle for a fixed archetype corpus: discover, match, and fetch detail. Nothing is redundant and nothing feels bloaty for a reference-lookup server.

Completeness5/5

The surface supports the full workflow: list to browse slugs, match to find fitting models (with an explicit mechanicalTask fallback when nothing fits), and get to load the full playbook. Since the underlying data is static, no create/update/delete operations are needed, leaving no dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues