MCPatterns

Provides a persistent memory layer for LLMs by storing coding patterns and usage contexts with multi-language examples.
  • typescript

1

GitHub Stars

typescript

Language

5 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "nicholasrubright-mcpatterns": {
      "command": "npx",
      "args": [
        "-y",
        "@mcpatterns/server"
      ],
      "env": {
        "PATTERNS_FILE_PATH": "patterns.json"
      }
    }
  }
}

MCPatterns is an MCP server that lets you save and retrieve personalized coding patterns. It acts as a persistent memory layer for your LLM agents, helping them adopt your coding style, patterns, and conventions across sessions and projects.

How to use

You interact with MCPatterns through an MCP client to create, read, update, and search for patterns. Organize patterns by category and technology, then reference these patterns during code generation, refactoring, or style suggestions. Use the provided tools to add new patterns, attach code examples in multiple languages, and retrieve patterns that match your current tech stack and use case.

How to install

Prerequisites: Node.js and a modern package manager (npm or pnpm) installed on your system.

# Clone the project
git clone https://github.com/nicholasrubright/mcpatterns.git
cd mcpatterns

# Install dependencies
pnpm install

# Development server (hot reloading)
pnpm run dev

# Build for production
pnpm run build

# Run the server
pnpm start

Additional setup for MCP client integration

There are ready-to-use MCP client integrations that let you connect MCPatterns to your tooling. The following configurations show how to run the MCP server locally with a standard MCP command and how to inject a custom storage path for the patterns database.

Configuration and integration details

Environment variables let you customize where the patterns data is stored and how the server is invoked by MCP clients.

Notes on usage

  • Use descriptive names and categorize patterns consistently to improve searchability. - Store focused, single-purpose patterns with rich metadata and multiple language examples when applicable. - Keep code examples up-to-date with current practices and make them easy to reuse in future sessions.

Available tools

create_patterns

Create multiple new coding patterns in the database.

add_code_examples

Add new code examples to existing patterns.

delete_patterns

Delete multiple patterns by name.

delete_code_examples

Remove specific code examples from patterns.

read_patterns

Retrieve all stored patterns.

search_patterns

Search patterns by query across all fields.

open_patterns

Retrieve specific patterns by name.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
MCPatterns MCP Server - nicholasrubright/mcpatterns | VeilStrat