> 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/setup-a-hosted-mcp-server.md).

# Set Up a Hosted MCP Server

Enable hosted MCP access for your Umbraco site before connecting an AI client.

A hosted MCP server lets AI clients connect to your Umbraco site remotely over HTTP. Before an AI client can connect, you need to enable hosted MCP access on your site. This is a one-time step per Umbraco instance.

The setup path depends on how your site is hosted. For Umbraco Cloud projects, install the [`Umbraco.Mcp.HostedAuth`](https://www.nuget.org/packages/Umbraco.Mcp.HostedAuth) package and deploy. The shared MCP infrastructure at `mcp.umbraco.ai` is already running. Self-hosted and agency sites also need a Cloudflare Worker deployed to act as the MCP endpoint. Follow the guide that matches your hosting environment:

* [Umbraco Cloud Quick Start](https://docs.umbraco.com/umbraco-in-ai/mcp/setup-a-hosted-mcp-server/cloud-quickstart.md)
* [Self-Hosted Quick Start](https://docs.umbraco.com/umbraco-in-ai/mcp/setup-a-hosted-mcp-server/self-hosted-quickstart.md)


---

# 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/setup-a-hosted-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.
