MCP directory
DP

Design Pattern MCP

by github.com/olk · v1.0.1 · updated Oct 10, 2026

MCP server that provides design-pattern selection expertise to AI coding agents

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm docker.io/olkowa/design-pattern-mcp:1.0.1

Environment variables

  • DESIGN_PATTERN_GENERATOR_API_KEYrequiredsecret

    API key for the generator LLM (LiteLLM provider).

  • DESIGN_PATTERN_GENERATOR_PROVIDER

    LiteLLM provider prefix, e.g. openai, anthropic, openrouter.

  • DESIGN_PATTERN_GENERATOR_MODEL

    Model name, combined as <provider>/<model> via LiteLLM.

  • DESIGN_PATTERN_GENERATOR_BASE_URL

    OpenAI-compatible base URL (LiteLLM api_base).

  • DESIGN_PATTERN_PATTERN_DIRECTORY

    Directory with the catalog records (*.json main records plus per-language files). The image bakes the 438-record catalogue at /app/pattern.

  • DESIGN_PATTERN_EMBEDDER_BASE_URLrequired

    Required: the dense retrieval leg embeds the 438-record catalogue during startup warmup and the server refuses to start when the endpoint is unreachable. TEI embeddings endpoint: on the Docker host use http://host.docker.internal:8080 (add --add-host=host.docker.internal:host-gateway on Linux); on a...

  • DESIGN_PATTERN_EMBEDDER_API_KEYsecret

    API key for the embedder. Keyless TEI accepts any non-empty value; use 'not-needed' there.

  • DESIGN_PATTERN_RERANKER_BASE_URLrequired

    Required: retrieval runs a mandatory TEI cross-encoder rerank whenever the fused pool has more than one candidate. On the Docker host use http://host.docker.internal:8080; on a shared Docker network use http://design-pattern-tei-rerank:8080.

More from github.com/olk

More MCP servers