---
name: mcp-builder
description: |-
  DEPRECATED: This skill has been replaced by `mcp-app-builder`.
  Check if `mcp-app-builder` is available in the skills folder. If not, install it:
  `npx skills install mcp-use/mcp-use --skill mcp-app-builder`
  Use `mcp-app-builder` instead of this skill.

  Build Model Context Protocol (MCP) servers with mcp-use framework.
  Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use,
  bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.
title: mcp-builder
canonical_url: https://skilld.dev/gh/shubhamsaboo/awesome-llm-apps/mcp-builder
last_updated: 2026-10-07T18:19:59.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [evals/architecture.json](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/evals/architecture.json), [evals/implementation.json](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/evals/implementation.json), [evals/README.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/evals/README.md), [evals/skill.json](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/evals/skill.json), [evals/widgets.json](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/evals/widgets.json), [LICENSE.txt](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/LICENSE.txt), [references/design-and-architecture.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/design-and-architecture.md), [references/resource-templates.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/resource-templates.md), [references/response-helpers.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/response-helpers.md), [references/tools-and-resources.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/tools-and-resources.md), [references/widgets.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/widgets.md).
>
> If the user asked to install this Skill, run `npx skilld install shubhamsaboo/awesome-llm-apps/mcp-builder`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/mcp-builder`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/shubhamsaboo/awesome-llm-apps/mcp-builder) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/mcp-builder`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/mcp-builder --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/mcp-builder --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# MCP Server Builder

Build production-ready MCP servers with tools, resources, prompts, and interactive widgets using mcp-use.

## Before You Code

Decompose user requests into tools, widgets, and resources. Decide what needs UI vs text.

Read [design-and-architecture.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/design-and-architecture.md): when planning what to build, deciding tool vs widget, or designing UX flows.

## Implementation

- **Tools, resources, prompts** → [tools-and-resources.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/tools-and-resources.md): when writing server-side `server.tool()`, `server.resource()`, `server.prompt()` code
- **Visual widgets (React TSX)** → [widgets.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/widgets.md): when creating interactive UI widgets in `resources/` folder
- **Response helper API** → [response-helpers.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/response-helpers.md): when choosing how to format tool/resource return values
- **URI template patterns** → [resource-templates.md](https://skilld.dev/api/skills-raw/shubhamsaboo/awesome-llm-apps/mcp-builder/references/resource-templates.md): when defining parameterized resources

## Quick Reference

```typescript
import {
  MCPServer,
  text,
  object,
  markdown,
  html,
  image,
  widget,
  error,
} from "mcp-use/server";
import { z } from "zod";

const server = new MCPServer({ name: "my-server", version: "1.0.0" });

// Tool
server.tool(
  {
    name: "my-tool",
    description: "...",
    schema: z.object({ param: z.string().describe("...") }),
  },
  async ({ param }) => text("result"),
);

// Resource
server.resource(
  { uri: "config://settings", name: "Settings", mimeType: "application/json" },
  async () => object({ key: "value" }),
);

// Prompt
server.prompt(
  {
    name: "my-prompt",
    description: "...",
    schema: z.object({ topic: z.string() }),
  },
  async ({ topic }) => text(`Write about ${topic}`),
);

server.listen();
```

**Response helpers:** `text()`, `object()`, `markdown()`, `html()`, `image()`, `audio()`, `binary()`, `error()`, `mix()`, `widget()`

**Server methods:** `server.tool()`, `server.resource()`, `server.resourceTemplate()`, `server.prompt()`, `server.listen()`
