Adding a server
From a config file
If you have an MCP config file (JSON format):From JSON directly
For quick setup, pass JSON directly:Multiple servers at once
Add multiple servers from separate files:Tools are auto-discovered
You don’t need to manually sync after adding a server. When your agent runs a workflow, pflow automatically discovers tools from any new or changed servers.Managing servers
List configured servers
View available tools
See all tools from a specific server:Get tool details
See detailed information about a specific tool:Remove a server
Configuration file location
pflow stores MCP server configurations in:pflow mcp add. The file uses the standard MCP configuration format used by Claude Desktop, VS Code, and other MCP clients.
Server configuration format
Local (stdio) servers
Local servers run as subprocesses on your machine. Thetype field is optional and defaults to "stdio":
| Field | Required | Description |
|---|---|---|
command | Yes | The command to run (e.g., npx, python, node) |
args | No | Command arguments |
env | No | Environment variables passed to the server |
Remote (HTTP) servers
Remote servers connect over HTTP/SSE. Thetype field is required for HTTP servers:
| Field | Required | Description |
|---|---|---|
type | Yes | Must be "http" for remote servers |
url | Yes | The server URL (SSE endpoint) |
headers | No | HTTP headers for authentication |
Environment variable expansion
Use${VAR} syntax to reference environment variables in your config:
- System environment -
export GITHUB_TOKEN="your-token" - pflow settings -
pflow settings set-env GITHUB_TOKEN "your-token"
${VAR:-default} for fallback values:
Using MCP tools in workflows
Once added, MCP tools become pflow nodes that your agent can use:Common MCP servers
Here are some popular MCP servers. Save any of these as a.json file and add with pflow mcp add ./filename.json:
GitHub
Filesystem
For basic file operations, pflow includes built-in file nodes - no MCP server needed. The filesystem MCP server is useful for advanced operations or stricter directory sandboxing. If you do use it, consider disabling the built-in file nodes to avoid confusion:
pflow settings deny "pflow.nodes.file.*".Brave Search
Find more MCP servers at the Official MCP Registry or the community-curated awesome-mcp-servers list.
Troubleshooting
Server not appearing in list
Server not appearing in list
- Check your JSON syntax is valid
- Make sure the config file path is correct
- Run
pflow mcp listto see configured servers
Tools not discovered
Tools not discovered
- Check the server is running correctly:
pflow mcp sync <server-name> - Verify credentials/environment variables are set
- Check the server logs for errors
Tool execution fails
Tool execution fails
- Run
pflow mcp info <tool-name>to see required parameters - Check that required environment variables are set in the server config
- Verify the server has access to required resources (network, files, etc.)

