MCPatterns

MCPatterns is an MCP server that stores and retrieves personalized coding patterns from a local JSONL file. It connects Large Language Model clients directly to a developer's structured coding preferences, conventions, and reusable code examples. Designed for software developers and AI coding agents, it serves as a persistent memory layer across coding sessions. By saving patterns categorized by name, technology, description, and use cases, MCPatterns enables AI models to adopt specific architectural styles and project conventions. Stored data is maintained locally using newline-delimited JSON with atomic file updates to ensure data consistency. Rather than relying on generic LLM coding suggestions, developers can use this server to search across their pattern library, fetch concrete language-specific implementations, and inject personal coding standards directly into active AI generation and refactoring workflows.

Category: Developer Tools & Code Intelligence

Tags: coding, jsonl, knowledge, patterns, snippets

Visit MCPatterns

How to install and configure MCPatterns

  1. Ensure Node.js and an MCP client such as Claude Desktop or VS Code are installed. 2. To install and run from source, clone the repository and build: bash git clone https://github.com/nicholasrubright/mcpatterns.git cd mcpatterns pnpm install pnpm run build 3. Alternatively, run the server using npx. 4. To configure Claude Desktop, add MCPatterns to your claude_desktop_config.json file: json { "mcpServers": { "mcpatterns": { "command": "npx", "args": ["-y", "@mcpatterns/server"] } } } 5. Optionally, set a custom file destination by supplying the PATTERNS_FILE_PATH environment variable in the server configuration.

What you can do with MCPatterns

  • Storing personalized code patterns and snippets categorized by frameworks, programming languages, and architectural concerns. - Prompting AI coding agents to search stored patterns before writing code to match existing project conventions. - Adding multilingual code examples to existing patterns to maintain consistent implementations across different programming stacks. - Performing refactoring tasks aligned with specific team standards and design patterns retrieved directly by the AI model. - Retrieving established patterns by identifier to guide AI assistants through boilerplate generation and API endpoint definitions.

Key facts

  • Open Source
  • https://github.com/nicholasrubright/MCPatterns
  • Developer Tools & Code Intelligence, Notes & Knowledge Management
  • coding, jsonl, knowledge, patterns, snippets

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

What is MCPatterns?

MCPatterns is an open-source Model Context Protocol server that stores and retrieves personalized coding patterns from a local JSONL file. It functions as a persistent memory system that enables AI coding assistants to follow an individual developer's preferred styles, libraries, and coding patterns.

How do I install MCPatterns?

You can run MCPatterns using npx by specifying the package @mcpatterns/server in your MCP client configuration, such as Claude Desktop or VS Code. Alternatively, you can clone the repository from GitHub, install dependencies with pnpm, build the project, and run it locally.

What tools does MCPatterns provide?

MCPatterns exposes tools including create_patterns, add_code_examples, delete_patterns, delete_code_examples, read_patterns, search_patterns, and open_patterns. These tools allow client applications to create, query, inspect, and remove code patterns and language-specific code snippets.

Where are coding patterns stored?

By default, patterns are stored in a patterns.json file in JSONL format inside the server directory. You can specify a custom storage location using the PATTERNS_FILE_PATH environment variable.

Is MCPatterns open source?

Yes, MCPatterns is an open-source project released under the MIT license, available on GitHub.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories