leanmcp/superview.sh/mcp-builder
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install leanmcp/superview.sh/mcp-builderSKILL.md
MCP Builder Skill
This skill guides you in building MCP (Model Context Protocol) servers using the official @modelcontextprotocol/sdk package with TypeScript.
When to Use This Skill
- User asks to "create an MCP server"
- User wants to "expose an API to AI agents"
- User needs "tools for Claude/LLM"
- User mentions "Model Context Protocol"
- User wants to build "AI agent integrations"
MCP Core Concepts
What is MCP?
Model 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:
- Access external data sources safely
- Execute tools and functions
- Maintain consistent communication protocols
- Integrate with APIs and databases
Key Components
Tools - Interactive functions that perform actions or computations:
- Execute operations and computations
- Accept parameters from the LLM
- Return structured responses
- Can change system state (side effects allowed)
- Examples: calculations, database operations, API calls, sending emails
Resources - Read-only data endpoints:
- Passive data sources (no side effects)
- Loaded into AI context for reasoning
- URI-based identification
- Examples: documentation, config files, status data, user profiles
Prompts - Reusable prompt templates:
- Pre-defined conversation starters
- Can accept arguments for customization
- Return structured messages for the LLM
Transport Options
| Transport | Best For | Pros | Cons | |
|---|---|---|---|---|
| Streamable HTTP | Production, cloud, multiple clients | Scalable, remote access | Requires session management | |
| SSE | Real-time apps, live updates | Streaming, auto-reconnect | Connection limits | |
| STDIO | Local desktop, development | Simple, low latency | Single session, local only |
Recommendation: Use Streamable HTTP for most production servers.
Project Structure
Required Dependencies
TypeScript Configuration
Implementation Pattern
1. MCP Server Setup (mcp-server.ts)
2. HTTP Server with Session Management (server.ts)
Tool Implementation Examples
Simple Tool
Tool with Multiple Parameters
External API Tool
Resource Implementation Examples
Editing Guidelines
Core Principles
- Edit existing files, don't recreate - Template files are provided; modify them
- Preserve existing structure - Don't change fundamental architecture
- Minimal necessary changes - Make smallest changes to achieve requirements
- Maintain backward compatibility - Don't break existing functionality
DO
- Add new tools/resources/prompts to existing service files
- Extend existing functionality
- Follow existing code patterns
- Use TypeScript for type safety
DON'T
- Completely rewrite template files
- Remove essential boilerplate code
- Create unnecessary new files
- Add terminal/command instructions (user will run commands themselves)
Running the Server
The user will handle running commands. Your job is to provide the code files only.
Standard commands the user might run:
npm install- Install dependenciesnpm run devornpx tsx src/server.ts- Development modenpm run build- Build for productionnpm start- Run production build
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mcp-builder/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leanmcp/superview.sh/mcp-builder)