reference-patterns

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.

Category
Visit Server

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 a catalog: as the single place to bump TypeScript dependency versions), go.work, and per-crate Cargo for Rust. One root pnpm install covers every TypeScript pattern; bumping a catalog version + running ./scripts/test-all.sh re-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

  1. Copy templates/pattern/PATTERN.md into <language>/<category>/<slug>/.
  2. Fill the frontmatter — description is what MCP search matches against; test is the command scripts/test-all.sh runs from the pattern directory (none for docs-only patterns).
  3. Add the runnable code with its own manifest. TypeScript patterns are picked up by the workspace glob automatically — use "catalog:" versions (add new entries to pnpm-workspace.yaml) and test: pnpm test.
  4. ./scripts/generate-llms.sh to refresh the index.
  5. ./scripts/test-all.sh — everything must pass before pushing.

Test everything

./scripts/test-all.sh

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured