mcp-server-patterns

Automate MCP server development with Node/TypeScript SDKs and transport patterns.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill mcp-server-patterns-derekhu0002
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-patterns
Source: https://github.com/derekhu0002/ai4pb-orchestrator/tree/main/.cursor/skills/mcp-server-patterns
Command: npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill mcp-server-patterns-derekhu0002

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides reusable MCP server patterns and guidance to streamline building and maintaining MCP servers with Node/TypeScript SDKs, including tool, resource, and prompt management and transport choices.

Core Features & Use Cases

  • Tools: Register and manage actions the model can invoke (e.g. search, run commands) using the appropriate API variant for the MCP SDK.
  • Resources: Read-only data the model can fetch (e.g. file contents, API responses) to support tooling and prompts.
  • Prompts: Reusable, parameterised templates the client can surface for consistent interactions with MCP servers.
  • Transport: Choose between stdio for local clients or Streamable HTTP for remote usage, with guidance on upgrading to current transport patterns.

Quick Start

Create a new MCP server project and register a sample tool to validate stdio transport.

Frequently Asked Questions about mcp-server-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server with Node and TypeScript?

Build MCP servers with Node/TypeScript SDKs by registering modular tools, resources, and prompt templates. Choose between local stdio or Streamable HTTP transport depending on client requirements, then validate setup with a sample tool registration.

What is the difference between tools and resources in an MCP server?

In an MCP server, tools are actions the model can invoke like running commands, while resources are read-only data the model fetches like file contents or API responses. Both support prompt templates and modular registration.

Should I use stdio or HTTP transport for my MCP server?

Use stdio transport for local MCP clients and Streamable HTTP for remote usage. The choice depends on your deployment context, with guidance available on upgrading to current transport patterns per MCP documentation.

How do I create reusable prompt templates for MCP servers?

Create reusable, parameterised prompt templates in MCP servers that the client can surface for consistent interactions. These templates integrate with registered tools and resources to support modular server functionality.

Can I use this Skill to upgrade or debug an existing MCP server?

Yes, this Skill applies reusable patterns to building, upgrading, or debugging MCP servers. It covers modular registration of tools and resources, prompt templates, and transport handling per current MCP documentation.