reference-patterns
Provides access to self-contained, runnable implementation patterns across multiple programming languages via MCP tools for searching and retrieving documentation and code examples.
README
reference-patterns
Personal reference of implementation and testing patterns across languages
(TypeScript, Go, Protobuf — Rust and more as they come). Each pattern is a
self-contained, runnable example documented in its PATTERN.md, meant to be
consumed from other projects through MCP.
Layout
<language>/<category>/<pattern-slug>/
├── PATTERN.md # frontmatter (name, tags, description, test command) + Problem/Solution/Key points
└── ... # runnable code with its own manifest (package.json, go.mod, buf.yaml, ...)
- llms.txt is the generated index of every pattern — this is what MCP clients read first.
- Patterns never depend on each other.
- Each language directory is a workspace managed by its native tool:
pnpm-workspace.yaml(with acatalog:as the single place to bump TypeScript dependency versions),go.work, and per-crate Cargo for Rust. One rootpnpm installcovers every TypeScript pattern; bumping a catalog version + running./scripts/test-all.shre-verifies the whole reference at once. Toolchains needed locally: node + pnpm, go, buf, rust + cargo.
Consume via MCP (GitMCP)
This repo is served as an MCP server by GitMCP — no hosting, it reads the public repo directly. From any project:
claude mcp add --transport http patterns https://gitmcp.io/Skayfa/reference-patterns
or in mcpServers:
"patterns": {
"type": "http",
"url": "https://gitmcp.io/Skayfa/reference-patterns"
}
Exposed tools: fetch_reference_docs (returns llms.txt),
search_reference_docs, search_reference_code, fetch_generic_url_content.
Add a pattern
- Copy
templates/pattern/PATTERN.mdinto<language>/<category>/<slug>/. - Fill the frontmatter —
descriptionis what MCP search matches against;testis the commandscripts/test-all.shruns from the pattern directory (nonefor docs-only patterns). - Add the runnable code with its own manifest. TypeScript patterns are picked
up by the workspace glob automatically — use
"catalog:"versions (add new entries topnpm-workspace.yaml) andtest: pnpm test. ./scripts/generate-llms.shto refresh the index../scripts/test-all.sh— everything must pass before pushing.
Test everything
./scripts/test-all.sh
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.