Agent skill

MCP Builder Skill: Build an MCP Server

The mcp-builder skill in Anthropic's anthropics/skills repo walks an AI coding agent through planning, building and testing a Model Context Protocol server in Python or TypeScript.

Install
/plugin marketplace add anthropics/skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the mcp-builder skill?

MCP Builder is a skill in Anthropic's anthropics/skills repository that gives an AI coding agent a four-phase process for writing Model Context Protocol servers: research the API and the MCP specification, implement tools in Python or TypeScript, review code quality, then write evaluation questions that verify the server works for real tasks.

The mcp-builder skill is part of Anthropic's public anthropics/skills repository, defined in SKILL.md with reference guides for Python and TypeScript implementation. Its stated job is a repeatable process for creating Model Context Protocol servers that let an agent call an external API through well designed tools.

It does not write a server from a one-line request. It is a four-phase guide: research the target API and the MCP specification, implement the tools, review the code, then write evaluation questions that check the server on real tasks.

What changes in the agent's output

  • The agent studies the MCP specification and the target API before writing any tool, instead of guessing at a schema.
  • Tool names get a consistent prefix and an action-oriented verb, such as github_create_issue or github_list_repos, so an agent calling the server can find the right one fast.
  • Input schemas use Zod in TypeScript or Pydantic in Python, with constraints and examples in the field descriptions.
  • Error messages name what went wrong and suggest a next step, rather than returning a bare status code.
  • Each tool gets annotations such as readOnlyHint and destructiveHint so a calling agent knows what a tool is allowed to do before it runs it.

The four-phase process

Phase 1 is research and planning: read the MCP specification, pick TypeScript with streamable HTTP for a remote server or stdio for a local one, and list the API endpoints to cover. Phase 2 is implementation of the client, the tools and their schemas.

Phase 3 is review and test: a code-quality pass for duplication and error handling, then a build check and a run through the MCP Inspector. Phase 4 is ten evaluation questions, each independent, read-only and verifiable, written as an XML document of question and answer pairs.

Who the mcp-builder skill is for

Best for

  • Turning an existing REST or GraphQL API into a set of tools an agent can call.
  • Choosing between wide endpoint coverage and a few higher-level workflow tools for a given API.
  • A first MCP server in Python or TypeScript, where the project layout and schema rules are not yet decided.
  • Writing evaluation questions that prove a finished server holds up on realistic, multi-step requests.

Not for

  • Editing an existing Penpot project directly is covered by Penpot MCP Server, which renames layers and drafts CSS from your canvas.
  • Planning the visual design of a landing page from a brief is the job Frontend Design Skill handles before any server code exists.
  • Reading design context straight out of an existing Figma project is the task Figma MCP Server handles, separate from writing new server tools.
  • Running a WCAG accessibility audit on a finished page is handled by Web Accessibility Audit Skill, a separate four-phase process from building a server.
  • Fetching shadcn/ui component source for a frontend build is covered by shadcn MCP Server, a different kind of tool server than this skill builds.

Use it with UiChemy

The skill builds the server that gives an agent new abilities, such as reading a design system or a CMS. Once that data is reachable, UiChemy Composer can use it while building or editing a WordPress page. Click Get Started on uichemy.com.