> ## 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.

# Claude Code

> Set up pflow with Claude Code

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

Claude Code has full terminal access, so pflow works out of the box — either through CLI commands or as an MCP server.

## Option 1: CLI access (recommended)

Since Claude Code has terminal access, the simplest approach is to tell it to use pflow directly.

Add to your project's `CLAUDE.md` or system instructions:

```markdown theme={null}
Use pflow for workflow automation. Run `pflow guide` to learn the commands.
```

Claude Code will then run pflow commands directly when it needs to build or run workflows.

## Option 2: MCP server

You can also add pflow as an MCP server for structured tool access.

**1. Add pflow as MCP server**

Run this command in Claude Code:

```bash theme={null}
claude mcp add pflow -- pflow mcp serve
```

Or add manually to your MCP config:

```bash theme={null}
claude mcp add pflow --command pflow --args "mcp,serve"
```

**2. Verify installation**

Check that pflow is configured:

```bash theme={null}
claude mcp list
```

You should see `pflow` in the list of configured servers.

## Which to choose

**CLI access** is simpler and recommended for most users. Claude Code can run any pflow command directly.

**MCP server** is useful if you want Claude Code to have structured tools for workflow operations, or if you're using pflow with other MCP servers.

Both approaches give Claude Code the same capabilities - discovering workflows, running them, and building new ones.

## Publishing workflows as skills

You can publish saved workflows as Claude Code skills, making them discoverable without explicit instructions:

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

This creates a symlink in `.claude/skills/my-workflow/SKILL.md` pointing to your workflow. Claude Code automatically discovers skills in this directory.

For personal skills available across all projects:

```bash theme={null}
pflow skill save my-workflow --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.