# MCP server patterns

> MCP server patterns is an open-source agent skill for developer tools. Guides building MCP servers in Node/TypeScript with tools, resources and prompts. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/AbdullayevTemurmalik/ECC/tree/master/.cursor/skills/mcp-server-patterns
- **Repository:** https://github.com/abdullayevtemurmalik/ecc
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** mcp-server-patterns
- **Collection:** https://github.com/AbdullayevTemurmalik/ECC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/AbdullayevTemurmalik/ECC/tree/HEAD/.cursor/skills/mcp-server-patterns)
- [License: MIT](https://github.com/AbdullayevTemurmalik/ECC/tree/HEAD/.cursor/skills/mcp-server-patterns)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [MCP builder](https://ai-powered.com/skills/mcp-builder): MCP builder is a free agent skill for ai models and llm tooling.
- [TypeScript MCP server generator](https://ai-powered.com/skills/typescript-mcp-server-generator): TypeScript MCP server generator is an open-source agent skill for developer tools.
- [Dotnet MCP builder](https://ai-powered.com/skills/dotnet-mcp-builder): Dotnet MCP builder is an open-source agent skill for ai models and llm tooling.
- [MCP builder](https://ai-powered.com/skills/mcp-builder-microsoft): MCP builder is an open-source agent skill for ai models and llm tooling.
- [Go MCP server generator](https://ai-powered.com/skills/go-mcp-server-generator): Go MCP server generator is an open-source agent skill for developer tools.
- [Python MCP server generator](https://ai-powered.com/skills/python-mcp-server-generator): Python MCP server generator is an open-source agent skill for developer tools.
- [Swift MCP server generator](https://ai-powered.com/skills/swift-mcp-server-generator): Swift MCP server generator is an open-source agent skill for developer tools.
- [MCP testing](https://ai-powered.com/skills/mcp-testing): MCP testing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/mcp-server-patterns-abdullayevtemurmalik
