/amplify:mcp-builderfrom amplify
Builds MCP servers that expose external API tools to LLMs, using Python (FastMCP) or Node/TypeScript. Also adds tools to existing servers and creates evaluations.
Ships in amplify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill produces high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services. An MCP server provides tools that allow LLMs to access external services and APIs. Quality is measured by how well those tools enable LLMs to accomplish real-world tasks.
Creating an MCP server involves four phases. Phases 1-3 apply when building or extending a server. Phase 4 applies when creating evaluations for an existing server.
Ask the user which language to use via AskUserQuestion (single-select) if not already specified:
All steps below branch by language where relevant.
Design tools for AI agents, not human developers. Apply these principles:
Build for Workflows, Not Just API Endpoints:
schedule_event checks availability and creates the event in one call)Optimize for Limited Context:
concise vs detailed response format optionsDesign Actionable Error Messages:
Follow Natural Task Subdivisions:
service_ prefixesUse Evaluation-Driven Development:
Fetch the latest MCP protocol specification using WebFetch: https://modelcontextprotocol.io/llms-full.txt
If the URL is unreachable, continue using reference/mcp_best_practices.md as the primary reference.
Read reference/mcp_best_practices.md for universal MCP guidelines. Skip if already loaded this session.
For Python: also fetch https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md and read reference/python_mcp_server.md. If the URL is unreachable, use the local guide only.
For Node/TypeScript: also fetch https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md and read reference/node_mcp_server.md. If the URL is unreachable, use the local guide only.
Read through all available documentation for the API to integrate:
Use WebSearch and WebFetch as needed.
Write a plan covering:
Tool Selection: List the most valuable endpoints to implement. Prioritize tools that enable complete workflows. Identify which tools work together.
Shared Utilities: Common API request patterns, pagination helpers, filtering and formatting utilities, error handling strategy, authentication management.
Input/Output Design: Pydantic models (Python) or Zod schemas (TypeScript) for input validation. Consistent response formats (JSON and Markdown). Character limits and truncation (25,000 characters).
Error Handling: Graceful failure modes. Clear, actionable, LLM-friendly error messages. Rate limiting and timeout handling. Authentication/authorization error handling.
For Python: create a single .py file, or organize into modules if complex. See reference/python_mcp_server.md for patterns.
For Node/TypeScript: create package.json, tsconfig.json, and source directory. See reference/node_mcp_server.md for project structure.
Create shared utilities before implementing tools:
For each tool in the plan:
Define Input Schema:
Write Comprehensive Docstrings/Descriptions:
Implement Tool Logic:
Add Tool Annotations:
readOnlyHint: true for read-only operationsdestructiveHint: false for non-destructive operationsidempotentHint: true if repeated calls have the same effectopenWorldHint: true if interacting with external systemsRead reference/python_mcp_server.md when implementing in Python. Skip if already loaded.
Confirm the implementation follows:
@mcp.tool registrationmodel_configCHARACTER_LIMIT, API_BASE_URL)Read reference/node_mcp_server.md when implementing in Node/TypeScript. Skip if already loaded.
Confirm the implementation follows:
server.registerTool for tool registration.strict()any typesPromise<T> return typesnpm run build)Review the code for:
MCP servers are long-running processes. Running them directly in the main process will hang indefinitely. Use safe testing approaches:
python -m py_compile your_server.pynpm run build and verify dist/index.js is createdAvoid running python server.py or node dist/index.js directly without a timeout or separate shell.
For Python: see "Quality Checklist" in reference/python_mcp_server.md.
For Node/TypeScript: see "Quality Checklist" in reference/node_mcp_server.md.
Apply this phase after implementing a server, or when the user asks to write evaluations for an existing MCP server. Skip Phases 1-3 if the server already exists.
Read reference/evaluation.md for complete evaluation guidelines. The summary below covers the key requirements.
Evaluations test whether LLMs can effectively use the MCP server to answer realistic, complex questions using only the tools provided.
Follow the process in reference/evaluation.md:
Each question must be:
Create an XML file:
<evaluation>
<qa_pair>
<question>Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat?</question>
<answer>3</answer>
</qa_pair>
</evaluation>
LICENSE.txt (opens in a new tab)reference/evaluation.md (opens in a new tab)reference/mcp_best_practices.md (opens in a new tab)reference/node_mcp_server.md (opens in a new tab)reference/python_mcp_server.md (opens in a new tab)scripts/connections.py (opens in a new tab)scripts/evaluation.py (opens in a new tab)scripts/example_evaluation.xml (opens in a new tab)scripts/requirements.txt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (wunki/amplify) — no native marketplace selected
npx claudepluginhub p/wunki-amplify28 skills in this plugin
/ask-questions-if-underspecifiedPauses to ask focused clarifying questions when a request lacks enough information to execute correctly. Use when the task is vague, has multiple plausible interpretations, is missing acceptance criteria, or when wrong assumptions would produce significant wasted work. Don't use when the request is already well-specified, when requirements were clarified earlier in the same conversation, when the task is trivially unambiguous (e.g., fix a specific typo), or when general clarification techniques are being discussed rather than applied to a specific task./browse-siteNavigates and interacts with websites using the agent-browser CLI, including clicking elements, filling forms, taking screenshots, extracting page content, and automating multi-step browser workflows. Use when the user asks to open a URL, click something on a page, fill out a web form, take a page screenshot, scrape or extract data from a website, or automate a browser task. Don't use for Playwright, Puppeteer, or Selenium scripts; don't use for browser extension development; don't use for questions about browser APIs, JavaScript, or frontend code that don't require live browser interaction.
/code-simplifierRefines existing code for clarity, readability, and maintainability without changing behavior, interfaces, or outputs. Use when asked to "simplify", "clean up", "refactor for readability", "reduce complexity", or polish code without adding features. Don't use when the request involves changing behavior, adding functionality, migrating to a new pattern or library, renaming public APIs, or any structural change that alters interfaces or outputs.Other plugins' skills for the same job