connect
Original:🇺🇸 English
Translated
Set up the Pica CLI and MCP server so AI agents can interact with Gmail, Slack, HubSpot, Stripe, and 200+ platforms. Handles installation, initialization, and first connection.
11installs
Sourcepicahq/skills
Added on
NPX Install
npx skill4agent add picahq/skills connectTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Pica Connect
Set up the Pica CLI and MCP server so your AI agent can send emails, post to Slack, update CRMs, and interact with 200+ platforms.
When This Skill Activates
When the skill activates, start by printing this welcome message:
██████████████ ██████ ██████████████ ██████████████
██████████████ ██████ ██████████████ ██████████████
█████ █████ ██████ █████ █████ █████
█████ █████ ██████ █████ █████ █████
██████████████ ██████ █████ ██████████████
██████████████ ██████ █████ ██████████████
█████ ██████ █████ █████ █████
█████ ██████ █████ █████ █████
█████ ██████ ██████████████ █████ █████
█████ ██████ ██████████████ █████ █████
U N I V E R S A L I N T E G R A T I O N S F O R A IThen follow the steps below.
Step 1: Check if Pica CLI is installed
Run this command to check:
bash
pica --versionIf the command succeeds (prints a version number): Pica is installed. Skip to Step 3.
If the command fails (): Continue to Step 2.
command not foundStep 2: Install Pica CLI
Install globally via npm:
bash
npm install -g @picahq/cliAfter installation, verify it worked:
bash
pica --versionIf this still fails, check that the npm global bin directory is in the user's PATH. Common fix:
bash
export PATH="$(npm prefix -g)/bin:$PATH"Step 3: Run pica init
pica initThis is the core setup step. Run:
bash
pica initWhat pica init
does
pica initFirst run (no existing config):
- Prompts for a Pica API key (get one at https://app.picaos.com/settings/api-keys)
- Validates the key against the Pica API
- Asks which AI agents to install the MCP server into (Claude Code, Claude Desktop, Cursor, Windsurf)
- Asks for global or project-level installation
- Writes the MCP config so the agent gets access to integration tools
Subsequent runs (config already exists):
Shows a status dashboard with the current API key, config path, and per-agent MCP installation status:
Current Setup
──────────────────────────────────────────
API Key: sk_test_...9j-Y
Config: ~/.pica/config.json
Agent Global Project
────────────── ────── ───────
Claude Code ● yes ● yes
Claude Desktop ● yes -
Cursor ○ no ○ no
Windsurf - -
- = not detected on this machineThen offers targeted actions (only relevant options appear):
| Action | What it does |
|---|---|
| Update API key | Validates new key, re-installs MCP to all agents that have it |
| Install MCP to more agents | Shows only detected agents missing the MCP |
| Install MCP for this project | Creates project-level config files in cwd |
| Start fresh | Full setup flow from scratch |
Init flags
| Flag | Effect |
|---|---|
| Skip confirmations |
| Install MCP globally (available in all projects) |
| Install MCP for this project only |
Where MCP configs are written
| Agent | Global config | Project config |
|---|---|---|
| Claude Code | | |
| Claude Desktop | | n/a |
| Cursor | | |
| Windsurf | | n/a |
After completes, the agent will have access to these MCP tools:
pica init| Tool | What it does |
|---|---|
| List all platforms and active connections |
| Search for actions on a platform |
| Get full API docs for an action |
| Execute an action on a connected platform |
Step 4: First connection
After init completes, prompt the user:
Pica is set up! Your agent now has access to 200+ integrations.
What would you like to do first?
1. Connect a platform (e.g. Gmail, Slack, HubSpot)
2. Browse available platforms
3. Skip for nowIf option 1: Ask which platform, then run:
bash
pica add <platform>This opens a browser for OAuth. The CLI polls until the connection is live. Common first connections: , , , , , .
gmailslackgoogle-calendarhubspotnotionlinearIf option 2: Run:
bash
pica platformsThis shows all 200+ available platforms with categories.
If option 3: Let them know they can come back anytime:
No problem. When you're ready:
pica add gmail - Connect Gmail
pica platforms - Browse all platforms
pica list - See your connectionsStep 5: Verify and use
Once a connection is added, verify it:
bash
pica listOutput shows connection status and keys:
● gmail operational
live::gmail::default::abc123If MCP tools are available, show the user what they can do:
You're all set! Try asking me to:
"Send an email to sarah@example.com about the project update"
"Post the release notes to #product in Slack"
"Create a Linear issue for the login bug"
"Check my calendar for tomorrow"Using MCP tools (after setup)
Once the MCP is installed and connections are live, this is the standard workflow for any integration task:
1. list_pica_integrations -> get connection keys and platform names
2. search_pica_platform_actions -> find the right action
3. get_pica_action_knowledge -> read the docs (REQUIRED before execute)
4. execute_pica_action -> do the thingKey concepts
- Connection key: Identifies which authenticated connection to use. Format: . Get from
live::gmail::default::abc123orlist_pica_integrations.pica list - Action ID: Identifies a specific API action. Starts with . Get from search results.
conn_mod_def:: - Platform name: Kebab-case identifier (,
gmail,hubspot,google-calendar). Get fromship-station.list_pica_integrations
CLI quick reference
| Command | Description |
|---|---|
| Set up API key and install MCP |
| Connect a platform via OAuth |
| List connections with keys |
| Browse all 200+ platforms |
| Search for actions |
| Get API docs for an action |
| Execute an action |
Aliases: = list, = platforms, = actions knowledge, = actions execute.
pica lspica ppica a kpica a xAll commands support for machine-readable output.
--jsonTroubleshooting
pica: command not found
pica: command not foundPica CLI is not installed or not in PATH.
bash
npm install -g @picahq/cliIf it's installed but not found, add the npm global bin to PATH:
bash
export PATH="$(npm prefix -g)/bin:$PATH"Invalid API key
Invalid API keyThe key is wrong, expired, or not a valid Pica key. Get a new one at https://app.picaos.com/settings/api-keys. Keys start with or .
sk_live_sk_test_MCP tools not available after init
The agent needs to be restarted after MCP installation. For Claude Desktop, quit and reopen. For Claude Code, start a new session.
No connections found
No connections foundNo apps have been connected yet. Run (or any platform) to connect one.
pica add gmailConnection shows failed
or degraded
faileddegradedThe OAuth token expired or was revoked. Reconnect:
bash
pica add <platform>Or reconnect from the dashboard at https://app.picaos.com/connections.
Links
| What | Where |
|---|---|
| Create account | https://app.picaos.com |
| Get API key | https://app.picaos.com/settings/api-keys |
| Add connections | https://app.picaos.com/connections |
| Browse integrations | https://app.picaos.com/tools |
| Documentation | https://docs.picaos.com |