MCP server that exposes Pipefy's GraphQL API.
Project description
pipefy-mcp-server
MCP server for Pipefy — 152 tools for AI agents (Cursor, Claude Desktop, Claude Code, Codex, and any MCP-compatible client). Depends on pipefy for all GraphQL and API logic.
Install (pre-launch, v0.1 → v0.5)
uvx \
--with "pipefy @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/sdk" \
--with "pipefy-auth @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/auth" \
--from "git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/mcp" \
--refresh pipefy-mcp-server
The --with pipefy / pipefy-auth flags are required pre-1.0 because the workspace members are not yet on PyPI. At v1.0 this collapses to uvx pipefy-mcp-server.
For per-client wiring (Claude Code / Cursor / Claude Desktop / Codex), see root README.md#installation.
Configuration
Set the following environment variables (or add them to a .env file in the working directory, or pin them in ~/.config/pipefy/config.toml):
PIPEFY_SERVICE_ACCOUNT_CLIENT_ID=your_client_id
PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET=your_client_secret
# Non-prod environments only:
# PIPEFY_BASE_URL=https://<your-api-host>
# PIPEFY_AUTH_URL=https://<your-signin-host>/realms/<realm>
PIPEFY_BASE_URL defaults to https://app.pipefy.com (drives the four API endpoints) and PIPEFY_AUTH_URL defaults to https://signin.pipefy.com/realms/pipefy (the OIDC issuer). Set them only for non-prod environments.
Full reference (every PIPEFY_* variable, validation rules, TOML schema, precedence chain): docs/config.md.
Edge cases and alternative wiring
macOS keychain errSecParam (-25244)
pipefy auth login may exit with errSecParam (-25244) at the final keychain-write step even though OAuth itself succeeded. The cause is not yet reliably diagnosed — direct keyring.set_password calls from the same uv-tool-installed Python succeed under repro testing, so this is likely a transient Security.framework condition rather than a deterministic per-binary ACL problem. If it occurs, retry the slash command (Claude Code) or pipefy auth login (terminal) first; as a fallback, run pipefy auth login once from a regular Terminal.app session and approve any macOS keychain dialog that appears. Issue #235 tracks platform-aware error messaging.
Claude Code: claude mcp add (per-project terminal flow)
Useful when you want to wire the server without editing ~/.claude.json by hand:
claude mcp add --scope project pipefy \
-- uvx \
--with "pipefy @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/sdk" \
--with "pipefy-auth @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/auth" \
--from "git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/mcp" \
pipefy-mcp-server
Then (repeat for each key you need):
claude mcp add-env pipefy PIPEFY_SERVICE_ACCOUNT_CLIENT_ID <YOUR_CLIENT_ID>
claude mcp add-env pipefy PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET <YOUR_CLIENT_SECRET>
# Non-prod environments only:
# claude mcp add-env pipefy PIPEFY_BASE_URL https://<your-api-host>
# claude mcp add-env pipefy PIPEFY_AUTH_URL https://<your-signin-host>/realms/<realm>
Claude Code: settings edit (post-plugin install)
The plugin's .mcp.json ships command + args only. To set the env block, edit the pipefy server entry in ~/.claude.json (or the Claude Code settings UI):
{
"mcpServers": {
"pipefy": {
"env": {
"PIPEFY_SERVICE_ACCOUNT_CLIENT_ID": "<CLIENT_ID>",
"PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET": "<CLIENT_SECRET>"
}
}
}
}
A live MCP server picks up rotated credentials on its next tool call; if the server failed to start because credentials were missing, restart it (or restart Claude Code) after login completes.
Local-clone alternative (contributors)
If you have a clone of this repo and want the MCP server to use it directly (without uvx fetching from git), launch via uv run from the clone:
{
"mcpServers": {
"pipefy": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/pipefy-mcp-server",
"pipefy-mcp-server"
],
"env": {
"PIPEFY_SERVICE_ACCOUNT_CLIENT_ID": "<CLIENT_ID>",
"PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET": "<CLIENT_SECRET>"
}
}
}
}
This form also works as a per-project .mcp.json if your team shares a clone. Committing .mcp.json without secrets (placeholders or env injection) keeps team setups consistent.
Legacy environment variables
PIPEFY_OAUTH_CLIENT and PIPEFY_OAUTH_SECRET still resolve to the new PIPEFY_SERVICE_ACCOUNT_* names with a one-shot stderr deprecation warning. The aliases will be removed in a later 0.2.0-beta.x release. The PIPEFY_OAUTH_URL alias was dropped — set PIPEFY_BASE_URL instead. Migration notes: docs/MIGRATION.md#service-account-env-var-rename.
Tools
152 tools across ten domains (including Portals) — see the root README.md for the full table with per-area links. Deep reference: docs/mcp/tools/ (start with cross-cutting.md); portals: portal.md.
Development
From the repository root:
uv sync
uv run pytest packages/mcp/tests # MCP tests in isolation
uv run ruff check packages/mcp/src # lint
See the root README.md and AGENTS.md for contributor guidance.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipefy_mcp_server-0.3.0a1.tar.gz.
File metadata
- Download URL: pipefy_mcp_server-0.3.0a1.tar.gz
- Upload date:
- Size: 246.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b9e922100c4aa40de20be338edecc4dac6c4233daac170bbb3b2c0665781f0f
|
|
| MD5 |
3ee54bb9586abbec842ab2cc207fefee
|
|
| BLAKE2b-256 |
d9c6ce35ce53c1cbd8091b6c27f5e9e92add6268255d27e9b2039e2533ec2089
|
File details
Details for the file pipefy_mcp_server-0.3.0a1-py3-none-any.whl.
File metadata
- Download URL: pipefy_mcp_server-0.3.0a1-py3-none-any.whl
- Upload date:
- Size: 152.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1efc64462cdcb7a05537641f4e2c1354928cac88e40e312773044b3998184eb
|
|
| MD5 |
55fd1cfb9695a36e557f045738405518
|
|
| BLAKE2b-256 |
859640957a4f186c9bb62ce1cb3b6a2643a7d3c3b11b73d11ee3413b6e72313a
|