Tooluck logoTooluck
SKILL.md

mcp-builder

Agent skill fromLeanmcp/gateway-skills

Build MCP (Model Context Protocol) servers using the official @modelcontextprotocol/sdk. Use this skill when users ask to create an MCP server, MCP tools, MCP resources, or want to expose APIs/functionality to AI agents. This skill covers vanilla MCP implementation with Streamable HTTP transport, session management, tools, resources, and prompts.

How to install mcp-builder

install mcp-builder
# install the gateway-skills pack with the skills CLI
npx skills add Leanmcp/gateway-skills

# or add only this skill to Claude Code: copy the folder

skills/mcp-builder/

# into

~/.claude/skills/mcp-builder/ (all projects)

.claude/skills/mcp-builder/ (one project)

skills/mcp-builder/SKILL.md

MITFull file
1# MCP Builder Skill
2
3This skill guides you in building MCP (Model Context Protocol) servers using the official `@modelcontextprotocol/sdk` package with TypeScript.
4
5## When to Use This Skill
6
7- User asks to "create an MCP server"
8- User wants to "expose an API to AI agents"
9- User needs "tools for Claude/LLM"
10- User mentions "Model Context Protocol"
11- User wants to build "AI agent integrations"
12
13## MCP Core Concepts
14
15### What is MCP?
16
17Model Context Protocol (MCP) is an open standard that enables structured, secure interactions between Large Language Models (LLMs) and external systems. MCP acts as a bridge allowing AI agents to:
18
19- Access external data sources safely
20- Execute tools and functions
21- Maintain consistent communication protocols
22- Integrate with APIs and databases
23
24### Key Components
25
26**Tools** - Interactive functions that perform actions or computations:
27- Execute operations and computations
28- Accept parameters from the LLM
29- Return structured responses
30- Can change system state (side effects allowed)
31- Examples: calculations, database operations, API calls, sending emails
32
33**Resources** - Read-only data endpoints:
34- Passive data sources (no side effects)
35- Loaded into AI context for reasoning
36- URI-based identification
37- Examples: documentation, config files, status data, user profiles
38
39**Prompts** - Reusable prompt templates:
40- Pre-defined conversation starters
41- Can accept arguments for customization
42- Return structured messages for the LLM
43…

Excerpt shown under the repository's MIT license.

More skills in gateway-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates