MCP server for storing and retrieving personalized coding patterns
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.
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.
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.
Everything the assistant can do here goes through one of these:
create_patterns — The create_patterns tool exposed by this serveradd_code_examples — The add_code_examples tool exposed by this serverdelete_patterns — The delete_patterns tool exposed by this serverdelete_code_examples — The delete_code_examples tool exposed by this serverread_patterns — The read_patterns tool exposed by this serversearch_patterns — The search_patterns tool exposed by this serveropen_patterns — The open_patterns tool exposed by this serverInstallation — The Installation tool exposed by this serverDevelopment — The Development tool exposed by this serverBuilding — The Building tool exposed by this serverRunning — The Running tool exposed by this serverYou 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.
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.
| Tool | What it does |
|---|---|
| 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. |
{
"mcpServers": {
"mcpatterns": {
"command": "npx",
"args": ["-y", "@mcpatterns/server"]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| PATTERNS_FILE_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.