How to integrate Nango MCP with Pi

Connect Pi to Nango MCP. List all connected crm accounts, trigger manual sync with salesforce provider, and more using natural language, with authentication handled for you.

Nango logoNango
Api Key

Nango is a unified API platform that connects to 250+ SaaS apps across CRM, HR, and accounting. Streamline integrations with one API and simplify data sync across your business tools.

24 Tools

Introduction

Pi is a minimal, self-extensible coding agent that lives in your terminal — one agent loop over Claude, GPT-5, Gemini, Grok, DeepSeek, and 20+ other providers, with maximum extension surface and minimum product opinion. Its core ships four tools (read, write, edit, bash) and self-extends at runtime through skills, extensions, and packages.

This guide explains the easiest and most robust way to connect your Nango account to Pi. You can do this through either Composio Connect CLI or Composio Connect MCP. Because Pi already runs shell commands as first-class tools and ships no built-in MCP, the CLI is the recommended path — it's faster to set up, needs no server config, and chains multi-step tasks more reliably. The MCP path is also fully supported through Pi's official pi-mcp-adapter extension.

Also integrate Nango with

What is Composio Connect?

Composio Connect is a consumer offering that lets anyone plug 1,000+ applications directly into their agent harness — including Pi. It can:

  • Search and load tools from relevant toolkits on-demand, reducing context usage.
  • Chain multiple tools to accomplish complex workflows via a remote workbench, without excessive back-and-forth with the LLM.
  • Manage app authentication end-to-end with zero manual overhead.

Connect Nango to Pi with Composio

Prerequisites: Install Pi

Pi needs Node.js 18+ (Node 22 recommended). Install the agent globally with npm:

bash
npm install -g --ignore-scripts @earendil-works/pi-coding-agent

On Linux or macOS you can use the installer script instead:

bash
curl -fsSL https://pi.dev/install.sh | sh

Then run pi in any project directory and authenticate your model provider — use /login inside Pi for subscription providers (Claude Pro/Max, ChatGPT, GitHub Copilot), or set an API key such as ANTHROPIC_API_KEY before starting. Confirm it's working:

bash
pi --version

Full first-run details are in the Pi Quickstart.

Option 1: Composio CLI (recommended)

Pi runs shell commands as first-class tools, so the Composio Universal CLI is the most natural fit — no MCP server to configure and reliable multi-step tool chaining. Install and authenticate:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Log in to Composio
composio login

Connect to Nango

Ask Pi to connect to Nango, or simply request any Nango-related task. Under the hood Pi calls Composio commands like any other shell tool:

bash
composio search "what can I do with Nango?"
composio link nango

On the first Nango call, composio link nango opens an OAuth prompt so you can authorize access. After that, every Nango command works with your stored credentials automatically — just talk to Pi and it will search, execute, and chain Nango tools as needed.

Option 2: Composio MCP

Pi's core intentionally ships no built-in MCP, but the official pi-mcp-adapter extension adds full MCP support — exposing every server through a single lightweight proxy tool (~200 tokens) instead of loading hundreds of tool definitions into context.

1. Install the MCP adapter extension

bash
pi install npm:pi-mcp-adapter

Restart Pi after installation.

2. Add the Composio MCP server

Create (or edit) a .mcp.json file in your project root, or ~/.config/mcp/mcp.json for a user-global setup:

bash
{
  "mcpServers": {
    "composio": {
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

The adapter connects lazily by default — the server won't start until Pi actually calls one of its tools, and cached metadata keeps search and describe working without a live connection.

3. Authenticate

Run /mcp-auth inside Pi to open the authentication modal and select composio from the list. Complete the sign-in in your browser, then on the consent screen click Allow access to authorize Composio. Once approved, the server shows as connected inside Pi:

Pi /mcp-auth modal listing the composio MCP server
Composio OAuth consent screen with the Allow access button
Composio MCP server connected inside Pi

4. Done!

Confirm the server is live with /mcp to open the interactive panel, then ask Pi to connect to Nango or request any Nango-related task — it will prompt you to authorize Nango on first use.

What is the Nango MCP server, and what's possible with it?

The Nango MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Nango account. It provides structured and secure access to your integrations, so your agent can perform actions like triggering syncs, managing connections, listing providers, and executing workflow actions across 250+ external APIs on your behalf.

  • Connection management and discovery: Effortlessly list all your existing Nango connections, view metadata, or retrieve connection information without exposing sensitive credentials.
  • Provider information and browsing: Ask your agent to list all available providers or fetch detailed configuration info for a specific provider, making it easy to discover and set up new integrations.
  • Triggering workflow actions: Direct your agent to execute custom workflow actions by specifying the connection, provider, and action identifiers—unlocking advanced automation across connected platforms.
  • Manual sync initiation: Have your agent trigger sync processes for any established connection, ensuring your data stays up-to-date across all integrated services.
  • Script configuration retrieval: Let your agent fetch Nango scripts configuration and triggers, enabling more tailored and automated integration flows.

Way Forward

With Nango connected, Pi can now act on your behalf whenever you ask it to.

From here, you can extend Pi further:

  • Connect more apps: Calendar, Slack, Notion, Linear, and hundreds of others are available through the same Composio Connect setup. Each new integration compounds what Pi can do for you.
  • Build workflows across tools: Once multiple apps are connected, Pi can chain actions together — turn an email into a calendar invite, a Slack message into a Linear ticket, or a meeting note into a follow-up draft.
  • Lean into Pi's extension surface: Wrap common Nango flows as Pi skills or prompt templates so recurring tasks become one-line commands, and use directTools in the MCP adapter to promote your most-used Nango tools into Pi's tool list directly.

If you run into trouble or want to share what you've built, join the community or check out the Docs for deeper configuration options.

TOOLS

Supported Tools

Every Nango action and event your agent gets out of the box.

Trigger Nango Action

Trigger a Nango action to execute a workflow or operation.

Add Connection

Tool to add a connection with existing credentials to Nango.

List Connections

List all Nango connections without credentials.

Create Connect Session

Tool to create a new connect session with a 30-minute lifespan for enabling connection creation via Connect UI.

Create Integration

Tool to create a new integration in Nango.

Delete Connection

Tool to delete a specific Nango connection.

Delete Integration

Tool to delete a specific integration by its unique key.

Edit Connection

Tool to edit a connection's tags and metadata.

Get Connection with Credentials

Retrieve a specific connection with its credentials.

Get Environment Variables

Tool to retrieve environment variables from the Nango dashboard.

Get Integration

Retrieve detailed configuration for a specific Nango integration by its unique key.

Proxy GET Request

Tool to make a GET request with Nango's Proxy to forward requests to external APIs while managing authentication.

Get Sync Status

Tool to get the status of specified sync(s) for a connection or all connections.

List Connections

Tool to list all connections without credentials.

List Integrations

Tool to retrieve a list of all configured integrations.

Get Provider Details

Retrieve detailed configuration for a specific Nango provider by its unique key.

List Providers

Tool to retrieve a list of all available providers.

Proxy PUT Request

Tool to make a PUT request with the Nango Proxy to forward requests to external APIs while managing authentication.

Reconnect Session

Create a new connect session to reconnect to a specific integration.

Get Integration Functions Configuration

Retrieve all integration functions configuration from Nango.

Set Connection Metadata

Tool to set custom metadata for one or more Nango connections.

Trigger Sync

Tool to trigger sync process(es) manually.

Update Connection Metadata

Tool to edit custom metadata for one or multiple connections.

Update Integration

Tool to update an existing integration's configuration.

FAQ

Frequently asked questions

With a standalone Nango MCP server, the agents and LLMs can only access a fixed set of Nango tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Nango and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Pi fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Nango tools.

Yes, absolutely. You can configure which Nango scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Nango data and credentials are handled as safely as possible.

Start with Nango.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Nango tool your agent needs.Free to start.

Start building