Guide · Agent skill
How to use the MCP Server Builder agent skill (mcp-builder)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The mcp-builder skill is a written playbook that an AI agent reads when you ask it to build a Model Context Protocol (MCP) server, a small program that lets an AI assistant call outside tools and read outside data. It is for developers making a new MCP server in TypeScript or Python. After this guide you will know how to install the skill, how to ask for help with a build, and what the skill covers, from tool design and error handling to testing and packaging.
Quick start
- 1Download and unzip. Download the skill ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 2Describe your server. Tell the agent what the MCP server should connect to and which language you want, TypeScript or Python.
- 3Design tools, resources and prompts. Ask the agent to decide which parts should be Tools, Resources or Prompts and to name and describe each tool following the guide.
- 4Implement validation and error handling. Have the agent add Zod or Pydantic validation, try/catch blocks, timeouts and isError responses.
- 5Write tests. Ask for unit tests on the core logic and integration tests that use the SDK client.
- 6Check with MCP Inspector. Run the server through npx @modelcontextprotocol/inspector and call each tool manually before connecting a real AI client.
- 7Package for distribution. Choose npm, pip or Docker packaging and have the agent write the configuration, including a client configuration example.
What does the mcp-builder skill make the agent do?
Once installed, the agent follows the skill's guidance when you are building an MCP server or MCP tools. The guide covers three MCP building blocks: Tools (functions the assistant calls, which can have side effects), Resources (read-only data identified by a URI), and Prompts (predefined interaction templates). It also gives rules for naming and describing tools, validating inputs with Zod or Pydantic, handling errors, managing resources and lifecycle, writing unit and integration tests, debugging with the MCP Inspector, and packaging for npm, pip or Docker.
The file itself is written guidance and code templates. It does not run anything on its own.
- Tool names in snake_case that start with a verb, such as search_users or create_issue
- Input validation at the schema level, plus business checks at the start of each handler
- Error responses that set isError: true and explain what went wrong
- Security practices such as environment variables for secrets, parameterised queries and execFile instead of exec
How do you install the mcp-builder skill?
Download the ZIP file from this page and unzip it. You can put the skill in one of two places:
- Personal install: unzip into ~/.claude/skills/ so it is available across your projects.
- Project install: unzip into the .claude/skills/ folder inside a specific project.
- Claude apps: upload the skill under Settings → Capabilities → Skills.
How do you trigger the skill with a natural request?
You do not need a special command. Describe the MCP work you want in plain language while the skill is installed. The skill is meant for building or debugging a server, not for connecting to one that already exists. Requests such as the following should match its purpose:
- "Help me build an MCP server in TypeScript that wraps our internal ticket API."
- "Design the tools for an MCP server that searches and creates support issues."
- "My MCP server doesn't show up in the client. Help me debug it."
- "Set up unit and integration tests for my MCP server and check it with the Inspector."
- "Package this MCP server for npm and write the client configuration example."
What do you need before you start?
The skill assumes a working toolchain for the language you choose. The source lists these requirements:
- Node.js or a Python toolchain, depending on your language
- TypeScript projects: @modelcontextprotocol/sdk and zod
- Python projects: mcp and pydantic
- MCP Inspector, run through npx, for interactive testing
- Docker, only if you use the Docker deployment option
npx @modelcontextprotocol/inspector node dist/index.jsWhat does a typical build look like?
The guide suggests a project layout (src/ with index.ts and folders for tools, resources and lib, plus tests/ and package.json for TypeScript; src/my_mcp_server/ with server.py, pyproject.toml for Python). It recommends writing business logic as plain exported functions and keeping MCP registration separate, so the logic can be tested directly.
For debugging, the guide warns that MCP uses stdio for communication, so console.log can break the protocol stream. Use console.error or the SDK's logging instead. Its troubleshooting table covers common symptoms: no response at startup (check server.connect()), a tool that does not appear (register tools before connect), the assistant not calling a tool (improve the name and description), wrong parameters (add .describe()), and timeouts (add timeouts and caching).
- Debug order from the guide: verify basics in the Inspector, call tools manually to check inputs and outputs, connect a real AI client to observe calls, then adjust the design.
What safety points should you know about?
The skill does not run scripts and does not use the network. It is guidance that the agent applies to the code it writes. The skill itself lists good practices but does not audit any specific code, so you still need your own review before production use.
The guidance covers least privilege, separating read and write tools, requiring explicit confirmation parameters for dangerous actions, restricting file paths, using allow-lists for network requests, reading secrets from environment variables, and avoiding logging sensitive data.
What people use it for
- Building a TypeScript MCP server that exposes an internal API as searchable tools
- Designing a Python MCP server with clear tool names and parameter descriptions
- Debugging a server that starts but whose tools never appear in the AI client
- Adding error handling and timeouts to an MCP server that calls slow external services
- Preparing an MCP server for npm or pip release with a README and config example
Frequently asked questions
Is the mcp-builder skill free?
The source lists the licence as MIT. Check the licence file in the skill's repository for the full terms before you reuse the code.
What do I need to use mcp-builder?
You need a Node.js or Python toolchain for your language, the MCP SDK and validation library for that language (@modelcontextprotocol/sdk and zod, or mcp and pydantic), and MCP Inspector run through npx. Docker is needed only for the Docker option.
Does this skill run scripts or access the internet?
No. The source states that the skill runs no scripts and uses no network. It provides guidance and code templates that the agent uses when writing your code.
Can mcp-builder help me connect to an existing MCP server?
No. The skill is for building an MCP server, not connecting to one. If you only want to use an existing server, you need a different resource.
Why doesn't my MCP server show up or get called correctly?
The guide's troubleshooting table points to a few causes: tools registered after connect, a transport that is not connected, unclear tool names or descriptions, and missing parameter descriptions. It also warns that console.log can break stdio communication.
Does the skill check my code for security problems?
No. It lists security good practices, but it does not audit any specific code. Review your server yourself or with a security specialist before production use.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use mcp-builder if you are a developer building a new MCP server in TypeScript or Python and want consistent tool naming, error handling and testing habits. Skip it if you only want to use an existing MCP server, if you are not comfortable with command-line setup and code, or if you need a formal security audit.
Download the skill