MathNj

mcp-builder

0
0
# Install this skill:
npx skills add MathNj/Learn-Flow --skill "mcp-builder"

Install specific skill from multi-skill repository

# Description

Generate MCP (Model Context Protocol) server scaffolding. Use when creating new MCP servers for extending Claude capabilities with custom tools, database queries, file operations, or API integrations.

# SKILL.md


name: mcp-builder
description: Generate MCP (Model Context Protocol) server scaffolding. Use when creating new MCP servers for extending Claude capabilities with custom tools, database queries, file operations, or API integrations.


MCP Builder

Generate MCP (Model Context Protocol) servers and clients.

Overview

Creates MCP server scaffolding with TypeScript, supporting stdio and SSE transports, with tool templates for common operations.

Quick Start

/mcp-builder "Create MCP server for LearnFlow progress tracking"

Generated Structure

mcp-server/
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts
β”‚   β”œβ”€β”€ server.ts
β”‚   └── tools/
β”‚       β”œβ”€β”€ tool1.ts
β”‚       └── tool2.ts
β”œβ”€β”€ test/
β”‚   └── server.test.ts
└── README.md

Tool Templates

Tool Type Purpose Example
Database Query Execute read-only queries Get student progress
File System Safe file operations Read spec files
API Proxy External API integration GitHub API
State Application state inspection Service health

MCP Code Execution Pattern

Built-in token efficiency by default:

// ❌ Inefficient
async function getAllProgress() {
  return await db.progress.findMany();
}

// βœ… Efficient
async function getProgressSummary(studentId: string) {
  const data = await db.progress.findMany({ where: { studentId } });
  return {
    totalTopics: data.length,
    mastered: data.filter(p => p.mastery >= 90).length
  };
}

Scripts

Run scripts/init.py <server-name> to generate MCP server template.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.