agentleFS
spwepsspweps/claude-skills/mcp-builder/SKILL.md

mcp-builder

Skill0 starsChanged 4 months agoMITView on GitHub

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

186 other projects use a version of this, 88 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • ComposioHQSkill

    codebase-migrate

    Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.

    Also in 5 projects that use this

  • truongtv22Skill

    Problem-Solving Techniques

    Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.

    Also in 5 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 26 projects that use this

  • AnthropicSkill

    academy-guide

    Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

    Also in 8 projects that use this

  • +2 more from Leodorareluctant259

The file

We split this skill into the rules it gives an agent

7 rules. 1 is common, 3 are distinctive, and 3 are very specific to this project.

  • 1

    Common

    Most of the 170 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create MCP servers that enable LLMs to interact with external services through well-designed tools.

    line 9
  2. Very specific:

    Tool naming: Use service prefix + action verb.

    line 21
  3. Very specific:

    Start with https://modelcontextprotocol.io/sitemap.xml, then fetch specific pages with .md suffix.

    line 29
  4. Very specific:

    Best practices: Read reference/mcp_best_practices.md

    line 39
  5. Distinctive:

    Input schema: Use Zod (TypeScript) or Pydantic (Python).

    line 68
  6. Distinctive:

    Create 10 evaluation questions.

    line 105
  7. Common:

    Read-only (non-destructive operations only)

    line 107

“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Server Development Guide

Create MCP servers that enable LLMs to interact with external services through well-designed tools. Quality is measured by how well the server enables LLMs to accomplish real-world tasks.

Recommended stack: TypeScript + Streamable HTTP (remote) or stdio (local).


Phase 1: Deep Research and Planning

1.1 Understand Modern MCP Design

API Coverage vs. Workflow Tools: Balance comprehensive coverage with specialized workflow tools. When uncertain, prioritize comprehensive API coverage.

Tool naming: Use service prefix + action verb. github_create_issue not create_issue. Clear, descriptive, action-oriented.

Context management: Design tools that return focused, relevant data. Support filtering and pagination.

Error messages: Guide agents toward solutions with specific suggestions and next steps.

1.2 Study MCP Protocol Documentation

Start with https://modelcontextprotocol.io/sitemap.xml, then fetch specific pages with .md suffix.

Key areas: specification overview, transport mechanisms (streamable HTTP, stdio), tool/resource/prompt definitions.

1.3 Load Framework Documentation

TypeScript SDK: WebFetch https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md

Python SDK: WebFetch https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md

Best practices: Read reference/mcp_best_practices.md

Language guides:

  • TypeScript: reference/node_mcp_server.md
  • Python: reference/python_mcp_server.md

1.4 Plan Implementation

Review the target API's documentation. List endpoints to implement, starting with most common operations.


Phase 2: Implementation

2.1 Project Structure

See language-specific guides (reference/node_mcp_server.md or reference/python_mcp_server.md).

2.2 Core Infrastructure

  • API client with authentication
  • Error handling helpers with actionable messages
  • Response formatting (JSON/Markdown)
  • Pagination support

2.3 Tool Implementation

For each tool:

Input schema: Use Zod (TypeScript) or Pydantic (Python). Include constraints and clear descriptions. Add examples in field descriptions.

Output schema: Define outputSchema where possible. Use structuredContent in responses (TypeScript SDK).

Tool description: Concise summary + parameter descriptions + return type.

Annotations:

  • readOnlyHint: true/false
  • destructiveHint: true/false
  • idempotentHint: true/false
  • openWorldHint: true/false

Note: annotations are hints, not security guarantees.


Phase 3: Review and Test

3.1 Code Quality

  • No duplicated code
  • Consistent error handling
  • Full type coverage
  • Clear tool descriptions

3.2 Build and Test

TypeScript: npm run build → npx @modelcontextprotocol/inspector

Python: python -m py_compile your_server.py → MCP Inspector


Phase 4: Evaluations

Load reference/evaluation.md for complete guidelines.

Create 10 evaluation questions. Each must be:

  • Independent (not dependent on other questions)
  • Read-only (non-destructive operations only)
  • Complex (requires multiple tool calls)
  • Realistic (based on real use cases)
  • Verifiable (single, clear, stable answer)

Output format:

<evaluation>
  <qa_pair>
    <question>Complex realistic question requiring multiple tool calls</question>
    <answer>Specific verifiable answer</answer>
  </qa_pair>
</evaluation>

Reference Files

Load as needed:

  • reference/mcp_best_practices.md — naming conventions, response formats, pagination, security
  • reference/node_mcp_server.md — TypeScript project structure, Zod schemas, tool registration, examples
  • reference/python_mcp_server.md — Python/FastMCP patterns, Pydantic models, tool registration, examples
  • reference/evaluation.md — eval creation guide, XML format, running scripts

Security Audit

Source: https://github.com/anthropics/skills — Anthropic first-party. Audit: PASS.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.