
Description
mcp-server-patterns is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out how to build Model Context Protocol servers with the Node and TypeScript SDK. It explains the three core concepts: tools, which are actions the model can invoke, resources, which are read-only data the model can fetch, and prompts, which are reusable templates the client can surface. It covers Zod validation for inputs, and the choice of transport: stdio for local clients, and Streamable HTTP for remote ones, with legacy HTTP and SSE kept for backward compatibility. The skill applies when implementing a new MCP server, adding tools or resources, choosing between stdio and HTTP, upgrading the SDK, or debugging registration and transport problems. Because the SDK API changes, the listing tells the agent to check current method names through Context7 or the official MCP documentation. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Tools, resources and prompts explained
- Zod validation
- stdio and Streamable HTTP transports
- Checks current SDK docs before coding
Ratings & Reviews
No ratings yet
Be the first to rate mcp-server-patterns.
People also visit

migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn
mcp-server-patterns FAQ
What does the mcp-server-patterns skill do?
It guides an agent in building MCP servers in Node and TypeScript, covering tools, resources, prompts, validation and transport.
Stdio or HTTP?
Stdio for local clients such as Claude Desktop, and Streamable HTTP for remote clients, which the listing prefers.
Will the code match the current SDK?
The skill tells the agent to check current method names with Context7 or the official MCP docs, since the SDK changes.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill mcp-server-patterns
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best mcp-server-patterns alternatives?
Popular alternatives to mcp-server-patterns include mcp-apps-builder, mcporter and nestjs-patterns. See all mcp-server-patterns alternatives






