mcp-server-patterns

Build MCP servers with the Node/TypeScript SDK.

Updated May 28, 2026
One-click install
npx skills add https://github.com/SensLiao/Claude-code-setting --skill mcp-server-patterns-sensliao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-patterns
Source: https://github.com/SensLiao/Claude-code-setting/tree/main/.cursor/skills/mcp-server-patterns
Command: npx skills add https://github.com/SensLiao/Claude-code-setting --skill mcp-server-patterns-sensliao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @modelcontextprotocol/sdk, zod, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of building and maintaining Model Context Protocol (MCP) servers by providing tools, resources, and guidelines for effective server construction.

Core Features & Use Cases

  • SDK Tools: Offers a Node/TypeScript SDK for building MCP servers.
  • Resources: Provides prompts, Zod validation, and guidance on stdio vs Streamable HTTP.
  • Use Case: Ideal for developers looking to implement a new MCP server, add tools or resources, or debug transport issues.

Quick Start

Use the mcp-server-patterns skill to set up a basic MCP server with Node/TypeScript SDK.

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.js and TypeScript?

Building an MCP server with Node.js and TypeScript involves using the @modelcontextprotocol/sdk to invoke tools, fetch resources, and implement prompts. This Skill provides the necessary patterns and guidelines to set up your server, define tool schemas with Zod validation, and handle client interactions efficiently.

What is the difference between stdio and Streamable HTTP for MCP server transport?

The difference between stdio and Streamable HTTP for MCP server transport lies in their communication mechanism. This Skill provides guidance on choosing between stdio for local process communication and Streamable HTTP for network-accessible servers.

How do I add Zod validation to MCP server tools?

You add Zod validation to MCP server tools by defining schemas with the zod dependency. This ensures that parameters passed to your MCP tools are type-safe and correctly validated before execution.

Do I need prior MCP protocol knowledge to use this SDK?

Yes, you need an understanding of the MCP protocol and a Node/TypeScript environment. This Skill facilitates server construction but requires baseline knowledge of MCP concepts to implement tools and resources effectively.

Why is my MCP server transport not working?

Your MCP server transport might not be working due to misconfigured stdio or Streamable HTTP setups. This Skill helps troubleshoot transport issues by providing correct SDK implementation patterns and protocol guidelines.