> 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-local.md).

# Patchworks MCP (local)

## Introduction

This guide shows how to set up Patchworks MCP locally, on your own machine.

## Pre-loaded tools

Having [installed Patchworks MCP locally](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-local.md), you can utilise ten pre-loaded tools:

* Track data through the platform
* Automate *“Where is my order?*” customer queries
* Generate reports from logs in seconds
* Identify errors that require intervention
* Instantly access all logs and payloads
* Run advanced root cause analysis
* Trigger flows directly
* Other system-level tools include *“List all flows*”, *“Summarise failed run*”, and *“Download payloads”.*

## Prerequisites

* Patchworks API key. Please refer to our [API keys](https://doc.wearepatchworks.com/product-documentation/developer-hub/patchworks-api/core-api-authentication/api-keys) product documentation for information about obtaining API keys.
* An MCP client account. You will need an account for a client that connects to local servers. Our examples are designed for Claude, as Claude Desktop is a straightforward starting point. However, other clients (e.g. Gemini and ChatGPT with MCP support) work in the same way.

## Pages in this section

* [Stage 1: Retrieve Patchworks setup files](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-local/installation-and-setup-patchworks-mcp-local/stage-1-retrieve-patchworks-setup-files.md)
* [Stage 2: Install dependencies](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-local/installation-and-setup-patchworks-mcp-local/stage-2-install-dependencies.md)
* [Stage 3: Configure your environment & run the server](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-local/installation-and-setup-patchworks-mcp-local/stage-3-configure-your-environment-and-run-the-server.md)
* [Stage 4: Configure your MCP client](/product-documentation/developer-hub/patchworks-mcp/patchworks-mcp-local/installation-and-setup-patchworks-mcp-local/stage-4-configure-your-mcp-client.md)
