> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-hosted/working-with-your-hosted-patchworks-mcp-server-deployment/undeploying-your-patchworks-mcp-server.md).

# Undeploying your Patchworks MCP server

## Introduction

There may be times when you want to undeploy your current Patchworks MCP server - for example, to revert it to `draft` for editing, or to take it offline while you make changes in a separate `draft`.

## Need to know

* Undeploying a `deployed` MCP server will cause any existing connections with AI assistants to be disconnected. This remains the case until another [deployment](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-hosted/working-with-your-hosted-patchworks-mcp-server-deployment/deploying-updated-mcp-tools-for-an-existing-draft.md) is made.
* When a `deployed` version is undeployed, its status changes to `draft`. If there were an existing `draft` version, it would be overwritten.

## The steps

{% stepper %}
{% step %}
**Access your MCP server deployments**

Select the `settings` option (at the bottom of the navigation menu):

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FVhsc79Cf0gPqMJ15gwr9%2Fgenerate%20mcp%20key%200.png?alt=media&amp;token=2dc59e47-7de8-478c-a8f1-b6bdd541dda2" alt=""><figcaption></figcaption></figure></div>

Then select the `MCP servers` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FlKy4enDtgZeiUA1v8fCP%2Fdeploy%20server%201.png?alt=media&amp;token=feb0d273-53b5-4c02-ac57-d5ef39de766a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Deploy the draft**

Click the ellipsis icon for the `deployed` entry:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FkKDPLbYJhYWXIk16Xvhg%2Fundeploy%20a.png?alt=media&amp;token=2119573a-2129-4cfa-aade-69754897bf21" alt=""><figcaption></figcaption></figure>

Then select the `undeploy` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FUIH1TMyWdNWe4k6AdS1w%2Fundeploy%20b.png?alt=media&amp;token=a844f658-4bb0-41d2-a778-ddea88501b7a" alt=""><figcaption></figcaption></figure>

The `deployed` status changes to `draft`. If there were an existing `draft` version, it would be overwritten.
{% endstep %}
{% endstepper %}
