> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remote MCP Connectors

> Connect PraisonAI agents to remote SaaS MCP servers (GitHub, Linear, Notion, Stripe, and more) with OAuth 2.1, CLI catalog, and PraisonAIUI

Connect your PraisonAI agents to remote third-party SaaS services — GitHub, Linear, Notion, Atlassian, Sentry, Stripe, Cloudflare, Vercel, DeepWiki, OpenAI Docs, or any custom Streamable HTTP MCP endpoint — with built-in OAuth 2.1 + PKCE sign-in.

> [!NOTE]
>
> **Opposite directions — don't mix these up:**
>
> * **`praisonai connectors`** *(this page)* is **inbound**: it connects *external SaaS MCP servers* into your PraisonAI agents.
> * **`praisonai connect`** is **outbound**: it registers *PraisonAI's own MCP server* inside 22 editors and coding agents (Cursor, Claude Code, Codex, VS Code). See [praisonai connect](https://praison.ai/docs/features/praisonai-connect.md).

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, MCP

agent = Agent(
    name="Engineering Assistant",
    instructions="Help triage issues and inspect pull requests.",
    tools=MCP(
        "https://mcp.linear.app/mcp",
        oauth=True,
        server_name="linear",
    ),
)

agent.start("List my highest-priority Linear issues for this sprint")
```

The user adds a remote connector once; PraisonAI discovers OAuth 2.1 metadata, stores tokens securely, and exposes the remote service's tools directly to the agent.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    User[📋 User] --> CLI["⌨️ praisonai connectors add github --auth"]
    CLI --> Auth["🔐 OAuth 2.1 + PKCE<br/>Browser or --manual"]
    Auth --> Store["💾 mcp-auth.json (0600)"]
    Store --> Agent[🤖 PraisonAI Agent]
    Agent <--> Remote["☁️ Remote MCP Server<br/>GitHub · Linear · Notion · Stripe"]

    classDef input fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef process fill:#189AB4,stroke:#7C90A0,color:#fff
    classDef warn fill:#F59E0B,stroke:#7C90A0,color:#fff
    classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
    classDef ok fill:#10B981,stroke:#7C90A0,color:#fff

    class User input
    class CLI,Store process
    class Auth warn
    class Agent agent
    class Remote ok
```

***

## Quick Start

**1. Install PraisonAI with MCP support**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
pip install "praisonai[mcp]"
```

> [!NOTE]
>
> `praisonai connectors add/list/auth/remove/test` requires the shared configuration layer from `praisonai-code`, which is included automatically in `pip install "praisonai[mcp]"`.

**2. Browse the official connector catalog**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai connectors catalog
# Machine-readable JSON output:
praisonai connectors catalog --json
```

**3. Add and authenticate a connector**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Add from the official catalog and sign in immediately with OAuth 2.1
praisonai connectors add github --auth

# Add a no-auth documentation connector
praisonai connectors add deepwiki

# Verify a no-auth or header-auth connector with a quick handshake
praisonai connectors test deepwiki

# Verify an OAuth 2.1 connector and index all discovered tools
praisonai connectors sync github
praisonai connectors tools github
```

***

## How Connectors Work (Step by Step)

Every remote connector moves through four predictable stages — add once, authenticate once, verify tools, and reuse everywhere.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
sequenceDiagram
    participant User
    participant CLI as praisonai CLI
    participant Auth as OAuth 2.1 Provider
    participant Store as mcp-auth.json
    participant Remote as Remote MCP Server
    participant Agent as PraisonAI Agent

    User->>CLI: praisonai connectors add linear --auth
    CLI->>Auth: Discover OAuth metadata and PKCE
    Auth-->>User: Open browser or print URL for --manual
    User->>Auth: Approve access
    Auth-->>Store: Save encrypted/0600 tokens
    User->>CLI: praisonai connectors sync linear
    CLI->>Remote: Initialize and list tools with Bearer token
    Remote-->>CLI: Available tool schemas
    User->>Agent: Run prompt with MCP(..., oauth=True, server_name="linear")
    Agent->>Store: Load cached token and refresh if expired
    Agent->>Remote: Call remote tool
    Remote-->>Agent: Structured tool result
    Agent-->>User: Final answer
```

| Stage | Command / Action | Where It Saves |
| - | - | - |
| **1. Add** | `praisonai connectors add <id>` or `--url <url>` | `~/.praisonai/config.toml` under `[mcp.servers.<id>]` |
| **2. Sign In** | `--auth` (browser) or `--auth --manual` (SSH/Docker) | `~/.praisonai/mcp-auth.json` (`0600` permissions) |
| **3. Verify & Discover** | `praisonai connectors sync <id>` (or `praisonai connectors test <id>`) | Indexes live tool names (`praisonai connectors tools <id>`) for `--allow` scoping |
| **4. Use Everywhere** | Python `MCP(url, oauth=True, server_name="<id>")`, `praisonai chat`, or Dashboard | Reuses the exact same saved token automatically |

> [!TIP]
>
> **Already connected services in Cursor, Claude Desktop, Claude Code, VS Code, or Codex?** Import them in one command:
> `praisonai mcp import cursor --dry-run` then `praisonai mcp import cursor`.

***

## Official Connectors Catalog (10 Verified Vendors)

`praisonai connectors` ships with 10 verified vendor Streamable HTTP endpoints (`praisonai_mcp.connect.connectors_catalog.CONNECTOR_CATALOG`). Browse the full [List of Connectors](https://praison.ai/docs/features/connectors-list.md) for step-by-step setup guides — including Google Drive, Google Workspace, Slack, PostgreSQL, Filesystem, and Playwright.

| ID | Service | Streamable HTTP Endpoint | OAuth 2.1 | Step-by-Step Guide |
| - | - | - | - | - |
| `github` | GitHub | `https://api.githubcopilot.com/mcp/` | Yes | [GitHub Connector](https://praison.ai/docs/mcp/github.md) |
| `linear` | Linear | `https://mcp.linear.app/mcp` | Yes | [Linear Connector](https://praison.ai/docs/mcp/linear.md) |
| `notion` | Notion | `https://mcp.notion.com/mcp` | Yes | [Notion Connector](https://praison.ai/docs/mcp/notion.md) |
| `atlassian` | Atlassian | `https://mcp.atlassian.com/v2/mcp` | Yes | [Atlassian Connector](https://praison.ai/docs/mcp/atlassian.md) |
| `sentry` | Sentry | `https://mcp.sentry.dev/mcp` | Yes | [Sentry Connector](https://praison.ai/docs/mcp/sentry.md) |
| `stripe` | Stripe | `https://mcp.stripe.com` | Yes | [Stripe Connector](https://praison.ai/docs/mcp/stripe.md) |
| `cloudflare` | Cloudflare | `https://mcp.cloudflare.com/mcp` | Yes | [Cloudflare Connector](https://praison.ai/docs/mcp/cloudflare.md) |
| `vercel` | Vercel | `https://mcp.vercel.com` | Yes | [Vercel Connector](https://praison.ai/docs/mcp/vercel.md) |
| `deepwiki` | DeepWiki | `https://mcp.deepwiki.com/mcp` | No | [DeepWiki Connector](https://praison.ai/docs/mcp/deepwiki.md) |
| `openai-docs` | OpenAI Docs | `https://developers.openai.com/mcp` | No | [OpenAI Docs Connector](https://praison.ai/docs/mcp/openai-docs.md) |

***

## CLI Commands

`praisonai connectors` wraps `praisonai mcp` with the built-in catalog and OAuth 2.1 flags:

| Command | Purpose | Key Flags |
| - | - | - |
| `praisonai connectors catalog` | List all 10 built-in official connectors | `--json` |
| `praisonai connectors list` | List configured connectors and status | `--json` |
| `praisonai connectors add <name>` | Add a catalog connector or custom `--url` | `--url` / `-u`, `--header` / `-H`, `--oauth`, `--allow`, `--auth`, `--manual`, `--redirect-uri` |
| `praisonai connectors auth <name>` | Run OAuth 2.1 sign-in for an existing connector | `--timeout` / `-t` (default `300.0`), `--manual`, `--redirect-uri` |
| `praisonai connectors test <name>` | Verify live MCP handshake and tool count | `--timeout` / `-t` (default `10.0`) |
| `praisonai connectors sync [name]` | Sync remote tool schemas to local index (omit name for all) | `--timeout` / `-t` (default `30.0`) |
| `praisonai connectors tools [name]` | List indexed tools exposed by configured connectors | `--json` |
| `praisonai connectors status [name]` | Show connection and sync status for configured connectors | `--json` |
| `praisonai connectors logout <name>` | Remove stored OAuth credentials | `--yes` / `-y` |
| `praisonai connectors remove <name>` | Remove a configured connector | `--yes` / `-y` |

### Add a Custom Remote MCP Server

Pass `--url` for any Streamable HTTP MCP server not in the built-in catalog, and scope exposed tools with `--allow`:

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Custom OAuth 2.1 server with tool allowlist
praisonai connectors add acme \
  --url https://mcp.acme.example/mcp \
  --oauth \
  --allow list_tickets,get_ticket \
  --auth

# Custom header-authenticated server (repeatable -H)
praisonai connectors add internal-kb \
  --url https://kb.internal.example/mcp \
  -H "Authorization=Bearer $INTERNAL_KB_TOKEN"
```

### Direct Python SDK (HTTP, Headers & WebSocket)

PraisonAI auto-detects **Streamable HTTP** (`https://...`), **WebSocket** (`wss://...`), and legacy **SSE** (`http://.../sse`) directly from the URL:

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import os
from praisonaiagents import Agent, MCP

# Header-authenticated remote Streamable HTTP server
tavily = MCP(
    "https://mcp.tavily.com/mcp",
    headers={"Authorization": f"Bearer {os.environ['TAVILY_API_KEY']}"},
)

# Bidirectional WebSocket MCP server (auto-detected from wss://)
# ws_server = MCP("wss://mcp.example.com/mcp")

agent = Agent(
    name="Research Assistant",
    instructions="Search the web using the connected remote MCP server.",
    tools=tavily,
)
```

***

## Headless, SSH & Container Sign-In (`--manual`)

When running on a remote SSH host, Docker container, or headless server where a local browser cannot reach `127.0.0.1`, use `--manual` paste-code mode:

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Authenticate during add:
praisonai connectors add linear --auth --manual

# Or authenticate an existing connector with a custom redirect URI:
praisonai connectors auth linear --manual --redirect-uri https://auth.example.com/callback
```

PraisonAI prints the authorization URL, lets you sign in on any browser, and accepts either the **bare authorization code** or the **full redirected callback URL** (validated against `state` via `parse_manual_callback`).

***

## PraisonAIUI / Dashboard Connectors Panel

In **PraisonAI Dashboard** (`praisonai dashboard`) and **PraisonAIUI**, the MCP / Connectors view exposes the same 10-vendor catalog and two-phase OAuth 2.1 flow over HTTP.

> [!WARNING]
>
> **Fail-closed by default:** PraisonAIUI blocks UI-initiated connections until you explicitly enable the catalog or declare servers in your `config.yaml`:
>
> ```yaml theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> mcp:
>   enabled: true
>   allow:
>     catalog: true
> ```

| Endpoint | Method | Role |
| - | - | - |
| `/api/mcp/catalog` | `GET` | Lists official connectors with live auth and connection status |
| `/api/mcp/oauth/start` | `POST` | Starts two-phase OAuth 2.1 PKCE in `web` (popup redirect) or `manual` (paste-code) mode |
| `/api/mcp/oauth/callback` | `GET` | Completes browser-redirect OAuth and notifies the dashboard window |
| `/api/mcp/oauth/exchange` | `POST` | Exchanges a pasted authorization code or callback URL for tokens |

***

## Best Practices

> [accordion] Scope remote tools with --allow
>
> Remote SaaS MCP servers can expose dozens of write/admin tools. Pass `--allow` (comma-separated or repeatable) to restrict an agent to the exact read/write operations it needs.

> [accordion] Use --manual for SSH and container sessions
>
> On headless machines, run `praisonai connectors auth <name> --manual` instead of waiting on a loopback browser callback. Tokens are still cached with `0600` permissions in `$PRAISONAI_HOME/mcp-auth.json`.

> [accordion] Verify OAuth connectors with praisonai connectors sync
>
> For OAuth 2.1 or local env-configured connectors, run `praisonai connectors sync <name>` (alias of `praisonai mcp sync <name>`) to verify live auth and index every discovered tool name, then inspect them with `praisonai connectors tools <name>`. Use `praisonai connectors test <name>` for quick handshakes on no-auth or header-authenticated (`-H`) servers.

> [accordion] Rotate or revoke credentials cleanly
>
> Run `praisonai connectors logout <name> --yes` to delete stored OAuth tokens from `$PRAISONAI_HOME/mcp-auth.json`, or `praisonai connectors remove <name> --yes` to delete the server config.

***

## Related

> [card] [List of Connectors](https://praison.ai/docs/features/connectors-list.md)
>
> Browse step-by-step setup guides for GitHub, Google Drive, Linear, Notion, Slack, Stripe, and more

> [card] [MCP OAuth Authentication](https://praison.ai/docs/mcp/mcp-oauth.md)
>
> Two-phase OAuth 2.1 SDK API (`begin_auth`, `finish_auth`, CIMD, and token storage)

> [card] [praisonai connect (Outbound)](https://praison.ai/docs/features/praisonai-connect.md)
>
> Reverse direction: register PraisonAI's MCP server inside 22 editors and coding agents

> [card] [Plugins & Extensions Overview](https://praison.ai/docs/features/plugins-overview.md)
>
> Compare Tools, Skills, Connectors, and Plugins side by side


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.