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

# Vercel Connector

> Connect PraisonAI agents to Vercel for projects, deployments, build logs, and runtime errors with OAuth 2.1

Connect your PraisonAI agents to Vercel to inspect projects, check preview and production deployments, read build logs, and diagnose runtime errors using Vercel's official remote MCP server.

| Setting | Value |
| - | - |
| **Catalog ID** | `vercel` |
| **Endpoint** | `https://mcp.vercel.com` |
| **Transport** | Streamable HTTP (Remote) |
| **Authentication** | OAuth 2.1 (browser or `--manual`) |

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

agent = Agent(
    name="Deployment Assistant",
    instructions="Inspect Vercel deployments and diagnose build or runtime failures clearly.",
    tools=MCP(
        "https://mcp.vercel.com",
        oauth=True,
        server_name="vercel",
    ),
)

agent.start("Check the latest 5 deployments on my main Vercel project and report any failed builds")
```

The user asks about a failing deploy; PraisonAI signs into Vercel over OAuth 2.1, pulls build logs, and explains the exact error.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    User["👤 User"] --> Agent["🤖 PraisonAI Agent"]
    Agent --> Auth["🔐 Vercel OAuth 2.1"]
    Auth --> Vercel["▲ Vercel Remote MCP<br/>mcp.vercel.com"]
    Vercel --> Result["✅ Deployments & Logs"]

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

    class User input
    class Agent agent
    class Auth auth
    class Vercel,Result ok
```

***

## How It Works

PraisonAI connects to Vercel's hosted MCP server (`https://mcp.vercel.com`) with OAuth 2.1 PKCE, saves your token locally at `0600` in `~/.praisonai/mcp-auth.json`, and reuses it across Python, CLI, and Dashboard.

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

    User->>CLI: praisonai connectors add vercel --auth
    CLI->>VAuth: Run OAuth 2.1 PKCE consent
    VAuth-->>User: Approve Vercel team access in browser
    VAuth-->>Store: Save OAuth token (0600)
    User->>Agent: Check failed deployment logs
    Agent->>Store: Load cached token
    Agent->>VMCP: Fetch deployments and build logs
    VMCP-->>Agent: Deployment status and error trace
    Agent-->>User: Root-cause summary
```

***

## Step-by-Step Setup

**1. Prerequisites**

* A Vercel account with access to the team and projects you want to inspect

**2. Install PraisonAI with MCP support**

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

**3. Add and authenticate Vercel**

> [tab] CLI (Interactive OAuth)
>
> ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> praisonai connectors add vercel --auth
> ```

> [tab] Headless / SSH (--manual)
>
> ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> praisonai connectors add vercel --auth --manual
> ```

> [tab] PraisonAI Dashboard
>
> Enable catalog connectors in your PraisonAIUI `config.yaml`:
>
> ```yaml theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
> mcp:
>   enabled: true
>   allow:
>     catalog: true
> ```
>
> Run `praisonai dashboard`, open **Connectors / MCP**, and click **Connect** on **Vercel**.

**4. Verify and inspect tools**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai mcp sync vercel
```

**5. Run your deployment agent**

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

agent = Agent(
    name="Vercel Helper",
    instructions="Check deployment status and summarize build errors concisely.",
    tools=MCP("https://mcp.vercel.com", oauth=True, server_name="vercel"),
)

agent.start("List my Vercel projects and show the latest production deployment URL for each")
```

***

## Scope Tools for Safety

Keep monitoring agents read-only with `--allow` (inspect tool names first via `praisonai mcp sync vercel`), or set `approval="always"` on `MCP(...)` before allowing rollbacks or environment variable changes.

***

## Common Workflows

* **Build Failure Diagnosis:** `"Fetch build logs for the most recent errored deployment on web-app and pinpoint the failing step."`
* **Preview URL Lookup:** `"Find the preview deployment URL for branch feat/new-pricing."`

***

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| `401 Unauthorized` on `praisonai connectors test vercel` | `connectors test` does not attach stored OAuth tokens | Verify with `praisonai mcp sync vercel` |
| Team projects not visible | Authorized personal scope instead of team scope | Run `praisonai connectors logout vercel --yes` then `praisonai connectors auth vercel` and grant team access |
| Remote SSH timeout during sign-in | Loopback redirect unreachable | Use `praisonai connectors auth vercel --manual` |

***

## Best Practices

> [accordion] Pair Vercel with GitHub and Sentry for release debugging
>
> Combine Vercel build/runtime logs with GitHub commits and Sentry traces in a single multi-connector agent (`tools=[vercel_mcp, github_mcp, sentry_mcp]`).

> [accordion] Require approval before production promotions or env changes
>
> Pass `approval="always"` to `MCP(...)` if an agent can promote deployments, trigger rollbacks, or edit environment variables.

> [accordion] Specify team slug and project name in prompts
>
> Naming your team and project explicitly avoids extra discovery calls on large Vercel accounts.

***

## Related

> [card] [List of Connectors](https://praison.ai/docs/features/connectors-list.md)
>
> Browse all popular connectors and step-by-step guides

> [card] [GitHub Connector](https://praison.ai/docs/mcp/github.md)
>
> Inspect pull requests and commits alongside Vercel deploys

> [card] [Cloudflare Connector](https://praison.ai/docs/mcp/cloudflare.md)
>
> Monitor Cloudflare Workers, DNS, and edge logs

> [card] [Remote MCP Connectors](https://praison.ai/docs/features/connectors.md)
>
> CLI commands, --manual sign-in, and Dashboard setup


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