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.
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.
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 okQuick Start
- Install PraisonAI with MCP support
bash pip install "praisonai[mcp]" - Browse the official connector catalog
bash praisonai connectors catalog # Machine-readable JSON output: praisonai connectors catalog --json - Add and authenticate a connector
bash # 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.
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 |
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 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 |
linear | Linear | https://mcp.linear.app/mcp | Yes | Linear Connector |
notion | Notion | https://mcp.notion.com/mcp | Yes | Notion Connector |
atlassian | Atlassian | https://mcp.atlassian.com/v2/mcp | Yes | Atlassian Connector |
sentry | Sentry | https://mcp.sentry.dev/mcp | Yes | Sentry Connector |
stripe | Stripe | https://mcp.stripe.com | Yes | Stripe Connector |
cloudflare | Cloudflare | https://mcp.cloudflare.com/mcp | Yes | Cloudflare Connector |
vercel | Vercel | https://mcp.vercel.com | Yes | Vercel Connector |
deepwiki | DeepWiki | https://mcp.deepwiki.com/mcp | No | DeepWiki Connector |
openai-docs | OpenAI Docs | https://developers.openai.com/mcp | No | OpenAI Docs Connector |
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:
# 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:
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:
# 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/callbackPraisonAI 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.
| 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
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.
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.
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.
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
Browse step-by-step setup guides for GitHub, Google Drive, Linear, Notion, Slack, Stripe, and more
MCP OAuth AuthenticationTwo-phase OAuth 2.1 SDK API (begin_auth, finish_auth, CIMD, and token storage)
Reverse direction: register PraisonAI’s MCP server inside 22 editors and coding agents
Plugins & Extensions OverviewCompare Tools, Skills, Connectors, and Plugins side by side