Agent skill

Build MCP Server

by bobmatnyc in bobmatnyc/claude-mpm

Create high-quality MCP servers that enable LLMs to effectively interact with external services.

Apache-2.0Auto-check passedAgent Workflows

Install Build MCP Server

skills CLI
$ npx skills add bobmatnyc/claude-mpm --skill build-mcp-server -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bobmatnyc/claude-mpm build-mcp-server --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bobmatnyc/claude-mpm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/claude_mpm/skills/bundled/main/build-mcp-server .claude/skills/build-mcp-server && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
build-mcp-server
GitHub stars
155
Token cost
~2k tokens
SKILL.md length
795 words
Files
12 (incl. scripts)
Skills in repo
51
Repo updated
First seen
Licence
Apache-2.0

At a glance

Create high-quality MCP servers that enable LLMs to effectively interact with external services.

  • Works in 4 steps: Research and Planning (40% of effort) → Implementation (30% of effort) → Review and Refine (15% of effort) → …
  • Building MCP integrations for APIs
  • SKILL.md covers Overview, When to Use This Skill, The Iron Law and Core Principles, plus 6 more sections
  • Runs Python scripts from its folder; calls python; reaches modelcontextprotocol.io

What it does

Build MCP Server is an agent skill from bobmatnyc/claude-mpm. Create high-quality MCP servers that enable LLMs to effectively interact with external services. Use when building MCP integrations for APIs or services in Python (FastMCP) or Node/TypeScript (MCP SDK).

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts (for example `reference/design_principles.md`, `reference/evaluation.md` and `reference/mcp_best_practices.md`).

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol, Python and TypeScript. The repository describes itself as: Claude Multi-Agent Project Manager — multi-channel orchestration, GitHub-first SDK mode, and plugin system for Claude. The licence is Apache-2.0.

When your agent uses it

  • Building MCP integrations for APIs
  • Services in Python (FastMCP)
  • Node/TypeScript (MCP SDK)

Example prompts

  • “/build-mcp-server”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Research and Planning (40% of effort)
  2. Implementation (30% of effort)
  3. Review and Refine (15% of effort)
  4. Create Evaluations (15% of effort)

What it can do on your machine

Read from SKILL.md and the folder at commit 25203d3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • modelcontextprotocol.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Build MCP Server loads about 2k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 795 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from bobmatnyc/claude-mpm at commit 25203d3, republished under its Apache-2.0 licence (© bobmatnyc). 795 words, ~1,983 tokens.

Download SKILL.mdSave it as .claude/skills/build-mcp-server/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
build-mcp-server
description
Create high-quality MCP servers that enable LLMs to effectively interact with external services. Use when building MCP integrations for APIs or services in Python (FastMCP) or Node/TypeScript (MCP SDK).
license
Complete terms in LICENSE.txt
progressive_disclosure.references
design_principles.md, workflow.md, mcp_best_practices.md, python_mcp_server.md, node_mcp_server.md, evaluation.md
effort
high

MCP Server Development Guide

Overview

Build high-quality MCP (Model Context Protocol) servers that enable LLMs to accomplish real-world tasks through well-designed tools. Quality is measured not by API coverage, but by how effectively agents can use your tools to complete realistic workflows.

Core insight: MCP servers expose tools for AI agents, not human users. Design for agent constraints (limited context, no visual UI, workflow-oriented) rather than human convenience.

When to Use This Skill

Activate when:

  • Building MCP servers for external API integration
  • Adding tools to existing MCP servers
  • Improving MCP server tool design for better agent usability
  • Creating evaluations to test MCP server effectiveness
  • Debugging why agents struggle with your MCP tools

Language Support:

  • Python: FastMCP framework (recommended for rapid development)
  • Node/TypeScript: MCP SDK (recommended for production services)

The Iron Law

DESIGN FOR AGENTS, NOT HUMANS

Every tool must optimize for:
- Context efficiency (agents have limited tokens)
- Workflow completion (not just API calls)
- Actionable errors (guide agents to success)
- Natural task subdivision (how agents think)

If your tools are just thin API wrappers, you're violating the Iron Law.

Core Principles

  1. Agent-Centric Design First: Study design principles before coding. Tools should enable workflows, not mirror APIs.

  2. Research-Driven Planning: Load MCP docs, SDK docs, and exhaustive API documentation before writing code.

  3. Evaluation-Based Iteration: Create realistic evaluations early. Let agent feedback drive improvements.

  4. Context Optimization: Every response token matters. Default to concise, offer detailed when needed.

  5. Actionable Errors: Error messages should teach agents correct usage patterns.

Quick Start

Phase 1: Research and Planning (40% of effort)
  1. Study Design Principles: Load design_principles.md to understand agent-centric design
  2. Load Protocol Docs: Fetch https://modelcontextprotocol.io/llms-full.txt for MCP specification
  3. Study SDK Docs: Load Python or TypeScript SDK documentation from GitHub
  4. Study API Exhaustively: Read ALL API documentation, endpoints, authentication, rate limits
  5. Create Implementation Plan: Define tools, shared utilities, pagination strategy, error handling

See workflow.md for complete Phase 1 steps.

Phase 2: Implementation (30% of effort)
  1. Setup Project: Create structure following language-specific guide
  2. Build Shared Utilities: API helpers, error handlers, formatters BEFORE tools
  3. Implement Tools: Use Pydantic (Python) or Zod (TypeScript) for validation
  4. Follow Best Practices: Load language-specific guide for patterns

See workflow.md for complete Phase 2 steps and language guides.

Phase 3: Review and Refine (15% of effort)
  1. Code Quality Review: Check DRY, composability, consistency, type safety
  2. Test Build: Verify syntax, imports, build process
  3. Quality Checklist: Use language-specific checklist

See workflow.md for complete Phase 3 steps.

Phase 4: Create Evaluations (15% of effort)
  1. Understand Purpose: Evaluations test if agents can answer realistic questions using your tools
  2. Create 10 Questions: Complex, read-only, independent, verifiable questions
  3. Verify Answers: Solve yourself to ensure stability and correctness
  4. Run Evaluation: Use provided scripts to test agent effectiveness

See evaluation.md for complete evaluation guidelines.

Navigation

Core Design and Workflow
  • 🎯 Design Principles - Agent-centric design philosophy: workflows over APIs, context optimization, actionable errors, natural task subdivision. Read FIRST before implementation.

  • 🔄 Complete Workflow - Detailed 4-phase development process with step-by-step instructions, decision trees, and when to load each reference file.

Show full SKILL.md (317 more words)Show less
Universal MCP Guidelines
  • 📋 MCP Best Practices - Naming conventions, response formats, pagination, character limits, security, tool annotations, error handling. Applies to all MCP servers.
Language-Specific Implementation
  • 🐍 Python Implementation - FastMCP patterns, Pydantic validation, async/await, complete examples, quality checklist. Load during Phase 2 for Python servers.

  • ⚡ TypeScript Implementation - MCP SDK patterns, Zod validation, project structure, complete examples, quality checklist. Load during Phase 2 for TypeScript servers.

Evaluation and Testing
  • ✅ Evaluation Guide - Creating realistic questions, answer verification, XML format, running evaluations, interpreting results. Load during Phase 4.

Key Reminders

  • Research First: Spend 40% of time researching before coding
  • Agent-Centric: Design for AI workflows, not API completeness
  • Context Efficient: Every token counts - default concise, offer detailed
  • Actionable Errors: Guide agents to correct usage
  • Shared Utilities: Extract common code - avoid duplication
  • Evaluation-Driven: Create evals early, iterate based on feedback
  • MCP Servers Block: Never run servers directly - use evaluation harness or tmux

Red Flags - STOP

If you catch yourself:

  • "Just wrapping these API endpoints directly"
  • "Returning all available data fields"
  • "Error message just says what failed" (not how to fix)
  • Starting implementation without reading design principles
  • Coding before loading MCP protocol documentation
  • Creating tools without knowing agent use cases
  • Skipping evaluation creation
  • Running python server.py directly (will hang forever)

ALL of these mean: STOP. Return to design principles and workflow.

Integration with Other Skills

  • systematic-debugging: Debug MCP server issues methodically
  • test-driven-development: Create failing tests before implementation
  • verification-before-completion: Verify build succeeds before claiming completion
  • defense-in-depth: Add input validation at multiple layers

Real-World Impact

From MCP server development experience:

  • Well-designed servers: 80-90% task completion rate by agents
  • API wrapper approach: 30-40% task completion rate
  • Context-optimized responses: 3x more information in same token budget
  • Actionable errors: 60% reduction in agent retry attempts
  • Evaluation-driven iteration: 2-3x improvement in agent success rate

Remember: The quality of an MCP server is measured by how well it enables LLMs to accomplish realistic tasks, not by how comprehensively it wraps an API.

© bobmatnyc, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts) in src/claude_mpm/skills/bundled/main/build-mcp-server of bobmatnyc/claude-mpm.

  • SKILL.md
  • LICENSE.txt
  • reference/design_principles.md
  • reference/evaluation.md
  • reference/mcp_best_practices.md
  • reference/node_mcp_server.md
  • reference/python_mcp_server.md
  • reference/workflow.md
  • scripts/connections.py
  • scripts/evaluation.py
  • scripts/example_evaluation.xml
  • scripts/requirements.txt

Open the folder on GitHubat commit 25203d3

Compare with similar skills

Build MCP Server next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Build MCP Server compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build MCP Server this skillbobmatnyc/claude-mpm155—~2kAutomated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
Create MCP Serversglittercowboy/taches-cc-resources2k—~1.5kAutomated safety check: PassMIT
MCP BuilderLeastBit/Claude_skills_zh-CN588—~1.2kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/Kode-CLI5.2k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Create MCP Servers

    glittercowboy/taches-cc-resources

    Create Model Context Protocol (MCP) servers that expose tools, resources, and prompts to Claude.

    2k GitHub stars~1.5k tokensUpdated 6 mo ago
    Agent WorkflowsAuto-check passed
  • MCP Builder

    LeastBit/Claude_skills_zh-CN

    构建高质量 MCP(模型上下文协议)服务器的指南,使 LLM 能够通过精心设计的工具与外部服务交互。在使用 Python (FastMCP) 或 Node/TypeScript (MCP SDK) 构建 MCP 服务器以集成外部 API 或服务时使用。

    588 GitHub stars~1.2k tokensUpdated 8 mo ago
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/Kode-CLI

    Guide to designing and building MCP servers: tool, resource and prompt design for agent usability, with TypeScript or Python implementation workflows.

    5.2k GitHub stars~1.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • MCP Developer

    Jeffallan/claude-skills

    Builds and debugs MCP servers and clients in TypeScript or Python, from tool and resource definitions to transport setup and inspector-based protocol checks.

    12k GitHub stars~1.5k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed

More from bobmatnyc/claude-mpm

All 51 skills in this repo
  • Env Manager

    bobmatnyc/claude-mpm

    Environment variable validation, synchronization, and management across local development, CI/CD, and deployment platforms

    155 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check: notes
  • Session Analyzer

    bobmatnyc/claude-mpm

    Debug and teach agentic coding: a deterministic-first session timeline + cost report, with optional narrative polish and a standalone JSX visualiser.

    155 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Software Patterns

    bobmatnyc/claude-mpm

    Decision framework for architectural patterns including DI, SOA, Repository, Domain Events, Circuit Breaker, and Anti-Corruption Layer.

    155 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Verification Before Completion

    bobmatnyc/claude-mpm

    Run verification commands and confirm output before claiming success

    155 GitHub starsUsed in 2 repos~1k tokens
    Auto-check passed
  • Dependency Audit

    bobmatnyc/claude-mpm

    Dependency audit and cleanup workflow for maintaining healthy project dependencies.

    155 GitHub stars~3.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Migration Wizard

    bobmatnyc/claude-mpm

    General protocol for executing migration skill wizards - service installation and configuration guides

    155 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Build MCP Server

What does Build MCP Server do?

Create high-quality MCP servers that enable LLMs to effectively interact with external services. Build MCP Server is an agent skill from bobmatnyc/claude-mpm. Create high-quality MCP servers that enable LLMs to effectively interact with external services.

When should I use Build MCP Server?

Build MCP Server fits situations like: building MCP integrations for APIs; services in Python (FastMCP); Node/TypeScript (MCP SDK).

How do I install Build MCP Server in Claude Code?

Run `npx skills add bobmatnyc/claude-mpm --skill build-mcp-server -a claude-code`. Or copy the skill folder (src/claude_mpm/skills/bundled/main/build-mcp-server in bobmatnyc/claude-mpm) into .claude/skills/build-mcp-server in your project. Claude Code loads it when a task matches its description.

How do I install Build MCP Server in Codex?

Run `npx skills add bobmatnyc/claude-mpm --skill build-mcp-server -a codex`. Or copy the skill folder (src/claude_mpm/skills/bundled/main/build-mcp-server in bobmatnyc/claude-mpm) into .agents/skills/build-mcp-server in your project. Codex loads it when a task matches its description.

Can I use Build MCP Server in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bobmatnyc/claude-mpm --skill build-mcp-server -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-mcp-server, .gemini/skills/build-mcp-server, .github/skills/build-mcp-server and .opencode/skills/build-mcp-server in your project.

What does Build MCP Server need to run?

Going by SKILL.md and its folder, Build MCP Server needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Build MCP Server access the network?

SKILL.md names 1 domain. In commands or code: modelcontextprotocol.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Build MCP Server safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Build MCP Server use?

Build MCP Server is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Build MCP Server use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Build MCP Server?

Skills that share tags, products or a category with Build MCP Server: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), Create MCP Servers (glittercowboy/taches-cc-resources, 2k stars) and MCP Builder (LeastBit/Claude_skills_zh-CN, 588 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build MCP Server?

bobmatnyc (a GitHub user) maintains it in bobmatnyc/claude-mpm, which has 155 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on August 31, 2026.

Source: bobmatnyc/claude-mpm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.