Get Started
Integrating the Pieces MCP with Cursor is a powerful and efficient way to bring your daily workflow context directly into your IDE.
With this integration, you'll have an in-IDE chatbot that knows more about your project than just the active file or project folder.
You can ask questions about additional workflow information, like whether a coworker fixed a bug in last week's PR, and then use that solution to fix a similar error in your code without having to look through old chat logs or GitHub commits.
Learn how to integrate the Pieces MCP into Cursor by following the steps below.
It is imperative that you download and/or update your version of Cursor to the **latest, most up-to-date version** to ensure compatibility with Pieces MCP.
Prerequisites
There are [2] primary prerequisites for integrating Pieces with Cursor as an MCP—an active instance of PiecesOS and the fully-enabled Long-Term Memory engine.
Make sure that PiecesOS is installed and running. This is *required* for the MCP server to communicate with your personal repository of workflow data and pass context through to the Cursor chat agent.
If you do not have PiecesOS, you can download it alongside the [Pieces Desktop App](/products/desktop/download) or [install it standalone](/products/core-dependencies/pieces-os/manual-installation#manual-download--installation) here.
For the MCP server to interact with your workflow context, you must enable the Long-Term Memory Engine (LTM-2.7) through the Pieces Desktop App or the [PiecesOS Quick Menu](/products/core-dependencies/pieces-os/quick-menu) in your toolbar.
Installing PiecesOS & Configuring Permissions
Follow the instructions below for a detailed guide on setting up and configuring PiecesOS to correctly pass captured workflow context to the Pieces MCP server.
Getting the MCP Endpoint for PiecesOS
To use Pieces MCP with Cursor, you'll need the MCP endpoint from PiecesOS:
http://localhost:39300/model_context_protocol/2025-03-26/mcp
Keep in mind that the **specific port** (i.e., `39300`) PiecesOS is running on **may vary**.
To find the current MCP endpoint with the active instance of PiecesOS (including the current port number), open the PiecesOS Quick Menu and expand the Model Context Protocol (MCP) Servers tab.
There, you can click once to copy the MCP endpoint, which includes the active PiecesOS port number.
You can also do this in the Pieces Desktop App by opening the Settings view and clicking Model Context Protocol (MCP).
Setting Up Cursor
There are three ways to set up Pieces MCP for Cursor: use the one-click setup in Pieces Desktop, use the Pieces CLI, or configure manually.
One-Click Setup via Pieces Desktop (Recommended)
The fastest way to connect Pieces MCP to Cursor is through the MCP Connections feature in Pieces Desktop.
In Pieces Desktop, click your `User Profile` in the top left, then hover over `Settings` and select `MCP`.
Scroll down to the *MCP Connections* section. You'll see a list of supported clients with `Connect` buttons.
Click the `Connect` button next to **Cursor**. Pieces automatically writes the MCP configuration to Cursor's global MCP config file.
If Pieces detects missing dependencies, a dialog appears with installation instructions. Follow the steps shown (e.g., install Node.js), then click `Retry`.
Restart Cursor for the configuration changes to take effect. Once connected, a green checkmark appears next to Cursor in the MCP Connections list.
To disconnect later, click the `⋮` menu next to the connected client and select **Disconnect**, or click the red `✕` next to the connection entry.
One-Click Install Badge
Install Pieces MCP in Cursor with a single click. Ensure PiecesOS is running and Long-Term Memory is enabled before clicking.