> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server.md).

# Create Umbraco MCP Server

CLI toolkit and Claude Code plugin for creating, configuring, and building custom MCP servers that expose Umbraco APIs to AI assistants.

The `@umbraco-cms/create-umbraco-mcp-server` package provides a CLI toolkit and Claude Code plugin for building custom MCP servers on top of Umbraco. The toolkit takes you from an empty directory to a tested, production-ready MCP server through a five-phase workflow.

## What it includes

The package has three components:

* [**Project template**](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/project-template.md) — A ready-to-go MCP server project with tool collections, API client generation, testing infrastructure, and optional features like MCP chaining.
* [**CLI toolkit**](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/development-workflow.md) — Creates a new project, configures your Umbraco connection, and discovers API endpoints.
* [**Claude Code plugin**](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/claude-code-plugin.md) — Skills and agents that automate tool creation, test generation, and Agent evaluation inside Claude Code.

## Prerequisites

Before starting, ensure the following are installed:

* **Node.js 22+**
* **.NET SDK** — Required for creating Umbraco instances
* **SQL Server** — Required for the Umbraco instance database, SQLite is not suitable for integration tests
* **Claude Code** — Required for tool building and evaluation (Phases 4-5)

## Getting Started

Create a new project and run the init wizard:

```bash
npx @umbraco-cms/create-umbraco-mcp-server my-mcp-server
cd my-mcp-server
npm install
npx @umbraco-cms/create-umbraco-mcp-server init
```

See the [development workflow](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/development-workflow.md) for the complete walkthrough.

## Five-Phase Workflow

The [development workflow](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/development-workflow.md) guides you through building a custom MCP server:

### CLI Phases

| Phase       | Command                                                | What happens                               |
| ----------- | ------------------------------------------------------ | ------------------------------------------ |
| 1. Create   | `npx @umbraco-cms/create-umbraco-mcp-server my-server` | Creates the project                        |
| 2. Init     | `npx @umbraco-cms/create-umbraco-mcp-server init`      | Configures the instance and trims features |
| 3. Discover | `npx @umbraco-cms/create-umbraco-mcp-server discover`  | Analyzes APIs and plans tool collections   |

### Claude Code Plugin Phases

After Phase 3, install the [Claude Code plugin](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/claude-code-plugin.md) to automate the remaining phases:

```
/plugin marketplace add umbraco/Umbraco-MCP-Base
/plugin install umbraco-mcp-skills@umbraco-mcp-server-sdk-plugins
```

| Phase       | Command                                 | What happens                              |
| ----------- | --------------------------------------- | ----------------------------------------- |
| 4. Build    | `/build-tools` and `/build-tools-tests` | Generates tools and tests via Claude Code |
| 5. Evaluate | `/build-evals` and `npm run test:evals` | Runs LLM eval tests and iterates          |

## Learn more

* [Project Template](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/project-template.md) — Structure, configuration, registries, and conventions of the generated project
* [Development Workflow](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/development-workflow.md) — Detailed five-phase guide from scaffolding to evaluation
* [Testing Your MCP Server](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/testing-your-mcp-server.md) — Run the scaffolded server in Claude Code via `.mcp.json` and iterate on tools
* [Claude Code Plugin](https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server/claude-code-plugin.md) — Skills and agents for automated tool building and testing


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.umbraco.com/umbraco-in-ai/mcp/custom-mcp-server/create-umbraco-mcp-server.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
