Skip to content
Skill

MCP server patterns

Guides building MCP servers in Node/TypeScript with tools, resources and prompts

MCP server patterns is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
7
Last commit
License
MIT
Listing updated

Similar skills

About MCP server patterns

This skill gives an agent a reference for building Model Context Protocol servers with the Node/TypeScript SDK. It covers the three core concepts: tools the model can invoke, read-only resources it can fetch, and reusable prompt templates a client can surface. It also explains how to choose between stdio for local clients and Streamable HTTP for remote ones, and keep server logic separate from the transport.

The skill is mostly guidance rather than scripts. It shows how to install the SDK with Zod, create an McpServer instance, and validate tool inputs with schemas. It also lists practices such as structured errors, idempotent tools, rate and cost awareness, and pinning SDK versions. Because the SDK API has changed across releases, it tells the agent to check current signatures through Context7 or the official MCP documentation before writing registration code.

The content expects a Node.js project using the @modelcontextprotocol/sdk package and Zod. It also points to official Go and C# SDKs for other languages.

When your agent uses it

Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the ecc plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add AbdullayevTemurmalik/ECC
/plugin install ecc@ecc

Or copy only this skill to ~/.claude/skills/mcp-server-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mcp-server-patterns &&
cp -R "$tmp/.cursor/skills/mcp-server-patterns" ~/.claude/skills/mcp-server-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mcp-server-patterns inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mcp-server-patterns to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mcp-server-patterns &&
cp -R "$tmp/.cursor/skills/mcp-server-patterns" ~/.agents/skills/mcp-server-patterns &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mcp-server-patterns inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mcp-server-patterns to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mcp-server-patterns &&
cp -R "$tmp/.cursor/skills/mcp-server-patterns" ~/.cursor/skills/mcp-server-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mcp-server-patterns inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/AbdullayevTemurmalik/ECC.git --path .cursor/skills/mcp-server-patterns

Or copy the folder to ~/.gemini/skills/mcp-server-patterns yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mcp-server-patterns:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mcp-server-patterns &&
cp -R "$tmp/.cursor/skills/mcp-server-patterns" ~/.copilot/skills/mcp-server-patterns &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mcp-server-patterns inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git

Then copy ECC/.cursor/skills/mcp-server-patterns into your agent's skills folder as mcp-server-patterns. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Core MCP concepts
Explains tools, resources and prompts and when each fits a server.
Transport selection
Compares stdio for local clients with Streamable HTTP for remote ones.
Input validation with Zod
Shows defining tool input schemas using Zod alongside the SDK.
Server setup example
Provides install commands and a basic McpServer initialization snippet.
Version-aware API guidance
Directs the agent to verify current SDK signatures via Context7 or official docs.
Server design best practices
Covers structured errors, idempotency, rate limits and SDK version pinning.

Good for

  • Scaffold a new MCP server with a Node/TypeScript project
  • Add a tool with a Zod-validated input schema to an existing server
  • Expose read-only file or API data as an MCP resource
  • Decide whether a server should use stdio or Streamable HTTP
  • Debug MCP tool registration or transport issues

MCP server patterns FAQ

When does MCP server patterns trigger?

It is meant for building or maintaining MCP servers, including implementing new servers, adding tools or resources, choosing a transport, upgrading the SDK, or debugging registration and transport problems.

Does MCP server patterns include scripts or executable code?

No scripts are included. It provides reference guidance and short code examples for installing the SDK and setting up a server.

Which SDK does MCP server patterns cover?

It covers the JavaScript/TypeScript SDK (@modelcontextprotocol/sdk) in detail and names the official Go and C# SDKs as alternatives.

Does MCP server patterns give exact current API method names?

No. It notes that the SDK API changes over time and directs the agent to check Context7 or the official MCP documentation for current signatures.

How do I install MCP server patterns in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mcp-server-patterns to use it in all your projects, or to .claude/skills/mcp-server-patterns in one project. Or install the ecc plugin, which includes it: /plugin marketplace add AbdullayevTemurmalik/ECC, then /plugin install ecc@ecc.

Does MCP server patterns run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use MCP server patterns?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to MCP server patterns?

The closest alternatives to MCP server patterns are MCP builder, TypeScript MCP server generator, Dotnet MCP builder, MCP builder and Go MCP server generator.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from AbdullayevTemurmalik/ECC

  1. Write long-form articles and guides in a voice matched to your examples

    • Open source
    • 7 GitHub stars
    • Writing style
  2. Guides an agent on using Bun for runtime, installs, bundling, testing and migrations from

    • Open source
    • 7 GitHub stars
    • Developer tools
  3. Plans and drafts platform-native social posts, scripts and content calendars

    • Open source
    • 7 GitHub stars
    • Marketing and SEO
  4. Lets your agent pull current library and framework docs from Context7 instead of memory

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Builds animation-rich HTML slide decks that run in the browser, from scratch or converted

    • Open source
    • 7 GitHub stars
    • Design and media
  6. Drafts pitch decks, memos and financial models that stay consistent across fundraising

    • Open source
    • 7 GitHub stars
    • Finance and payments