MCPatterns MCP Server

MCP server for storing and retrieving personalized coding patterns

Local serverstdioTypeScript

What is the MCPatterns MCP server?

MCP server for storing and retrieving personalized coding patterns. The mcpatterns mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 11 defined tools rather than through you.

What it actually does

MCPatterns is a Model Context Protocol (MCP) server that enables users to save and retrieve personalized coding patterns. It helps LLMs learn how an individual codes by storing structured patterns categorized by technology, use case, and style.

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Its toolset

Everything the assistant can do here goes through one of these:

  • create_patterns — The create_patterns tool exposed by this server
  • add_code_examples — The add_code_examples tool exposed by this server
  • delete_patterns — The delete_patterns tool exposed by this server
  • delete_code_examples — The delete_code_examples tool exposed by this server
  • read_patterns — The read_patterns tool exposed by this server
  • search_patterns — The search_patterns tool exposed by this server
  • open_patterns — The open_patterns tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • Development — The Development tool exposed by this server
  • Building — The Building tool exposed by this server
  • Running — The Running tool exposed by this server

Configuration

You will need one environment variable: PATTERNS_FILE_PATH. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 11 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCPatterns.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcpatterns mcp server does with a few real requests.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCPatterns's toolset — create_patterns, add_code_examples, delete_patterns and 8 more — is a fair guide to whether it matches your workflow. It is maintained by nicholasrubright; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCPatterns's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
create_patternsThe create_patterns tool exposed by this server.
add_code_examplesThe add_code_examples tool exposed by this server.
delete_patternsThe delete_patterns tool exposed by this server.
delete_code_examplesThe delete_code_examples tool exposed by this server.
read_patternsThe read_patterns tool exposed by this server.
search_patternsThe search_patterns tool exposed by this server.
open_patternsThe open_patterns tool exposed by this server.
InstallationThe Installation tool exposed by this server.
DevelopmentThe Development tool exposed by this server.
BuildingThe Building tool exposed by this server.
RunningThe Running tool exposed by this server.

How to install the MCPatterns MCP server

{
  "mcpServers": {
    "mcpatterns": {
      "command": "npx",
      "args": ["-y", "@mcpatterns/server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
PATTERNS_FILE_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use MCPatterns to create patterns.
  • Use MCPatterns to add code examples.
  • Use MCPatterns to delete patterns.

Frequently asked questions

It connects MCPatterns to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (create_patterns, add_code_examples, delete_patterns, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCPatterns directly.