> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pflow.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Set up pflow with Cursor

> [!NOTE]
>
> **Prerequisites:** [Install pflow](https://docs.pflow.run/quickstart.md) before continuing.

Cursor supports both CLI access and MCP servers. The easiest way to get started is with one-click install.

## One-click install

Click the button below to add pflow to Cursor:

[![Install pflow in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=pflow\&config=eyJjb21tYW5kIjoicGZsb3ciLCJhcmdzIjpbIm1jcCIsInNlcnZlIl19)

This adds pflow as an MCP server to your global Cursor config (`~/.cursor/mcp.json`).

## Manual setup

If you prefer to set up manually, you have two options:

> [tab] MCP server
>
> **1. Add pflow to your config**
>
> **Global config** (all projects): `~/.cursor/mcp.json`
>
> **Project config** (single project): `.cursor/mcp.json`
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "pflow": {
>       "command": "pflow",
>       "args": ["mcp", "serve"]
>     }
>   }
> }
> ```
>
> You can also add via Cursor settings: **File** → **Preferences** → **Cursor Settings** → **MCP**.
>
> **2. Verify installation**
>
> Open Cursor settings (**File** → **Preferences** → **Cursor Settings** → **MCP**) and check that pflow appears in the list of configured servers.
>
> Or ask Cursor to list pflow workflows:
>
> ```
> Use pflow to list available workflows
> ```

> [tab] CLI access
>
> Since Cursor has terminal access, you can also use pflow via CLI. Add to your project's instructions or tell Cursor:
>
> ```
> Use pflow for workflow automation. Run `pflow guide` to learn the commands.
> ```

## Troubleshooting

> [accordion] One-click install didn't work
>
> The deeplink requires Cursor to be installed and registered as a protocol handler. Try manual setup instead.

> [accordion] Cursor doesn't see pflow tools
>
> 1. Make sure pflow is installed and in your PATH: `pflow --version`
> 2. Check your MCP config JSON syntax is valid
> 3. Restart Cursor

## Publishing workflows as skills

You can publish saved workflows as Cursor skills:

```bash theme={null}
pflow skill save my-workflow --cursor
```

This creates a symlink in `.cursor/skills/my-workflow/SKILL.md` pointing to your workflow.

For personal skills available across all projects:

```bash theme={null}
pflow skill save my-workflow --cursor --personal
```

See [pflow skill](https://docs.pflow.run/reference/cli/skill.md) for full documentation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.