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.

python
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.

Diagram

📋 User

⌨️ praisonai connectors add github –auth

🔐 OAuth 2.1 + PKCE
Browser or –manual

💾 mcp-auth.json (0600)

🤖 PraisonAI Agent

☁️ Remote MCP Server
GitHub · Linear · Notion · Stripe


Quick Start

  1. Install PraisonAI with MCP support
    bash
    pip install "praisonai[mcp]"
  2. Browse the official connector catalog
    bash
    praisonai connectors catalog
    # Machine-readable JSON output:
    praisonai connectors catalog --json
  3. 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.

Diagram
PraisonAI AgentRemote MCP Servermcp-auth.jsonOAuth 2.1 Providerpraisonai CLIUserPraisonAI AgentRemote MCP Servermcp-auth.jsonOAuth 2.1 Providerpraisonai CLIUserpraisonai connectors add linear –authDiscover OAuth metadata and PKCEOpen browser or print URL for –manualApprove accessSave encrypted/0600 tokenspraisonai connectors sync linearInitialize and list tools with Bearer tokenAvailable tool schemasRun prompt with MCP(…, oauth=True, server_name=”linear”)Load cached token and refresh if expiredCall remote toolStructured tool resultFinal answer
StageCommand / ActionWhere It Saves
1. Addpraisonai 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 & Discoverpraisonai connectors sync <id> (or praisonai connectors test <id>)Indexes live tool names (praisonai connectors tools <id>) for --allow scoping
4. Use EverywherePython MCP(url, oauth=True, server_name="<id>"), praisonai chat, or DashboardReuses 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.

IDServiceStreamable HTTP EndpointOAuth 2.1Step-by-Step Guide
githubGitHubhttps://api.githubcopilot.com/mcp/YesGitHub Connector
linearLinearhttps://mcp.linear.app/mcpYesLinear Connector
notionNotionhttps://mcp.notion.com/mcpYesNotion Connector
atlassianAtlassianhttps://mcp.atlassian.com/v2/mcpYesAtlassian Connector
sentrySentryhttps://mcp.sentry.dev/mcpYesSentry Connector
stripeStripehttps://mcp.stripe.comYesStripe Connector
cloudflareCloudflarehttps://mcp.cloudflare.com/mcpYesCloudflare Connector
vercelVercelhttps://mcp.vercel.comYesVercel Connector
deepwikiDeepWikihttps://mcp.deepwiki.com/mcpNoDeepWiki Connector
openai-docsOpenAI Docshttps://developers.openai.com/mcpNoOpenAI Docs Connector

CLI Commands

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

CommandPurposeKey Flags
praisonai connectors catalogList all 10 built-in official connectors--json
praisonai connectors listList 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
# 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
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
# 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.

EndpointMethodRole
/api/mcp/catalogGETLists official connectors with live auth and connection status
/api/mcp/oauth/startPOSTStarts two-phase OAuth 2.1 PKCE in web (popup redirect) or manual (paste-code) mode
/api/mcp/oauth/callbackGETCompletes browser-redirect OAuth and notifies the dashboard window
/api/mcp/oauth/exchangePOSTExchanges 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