Connect your agent

MCP clients (Claude, ChatGPT, Cursor, Grok, OpenClaw…)

Sign in, run one command, or paste a config block — every native MCP client connects to Vlozi.

Vlozi MCP speaks the standard Streamable HTTP transport at https://mcp.vlozi.app/mcp. Every modern MCP client connects with one command, one config block, or — for clients with a native "Sign in" button — no manual setup at all.

TIP

For Claude Code, Claude Desktop, or Cursor, npx @vlozi/cli auth login does all of this for you — see Quick connect. If your client has a built-in "Connect" / "Sign in" flow (Claude.ai, ChatGPT), see the "Claude.ai, ChatGPT (and other OAuth clients)" section below instead — it needs no key at all. Use the manual header-pasting steps for any other client, CI pipelines, or headless agents.

Claude.ai, ChatGPT (and other OAuth clients)

Some MCP clients — Claude.ai's remote-MCP connector, ChatGPT's custom connectors, and any client built against the MCP authorization spec — connect with a real "Sign in with Vlozi" flow instead of a pasted key. There's no config to write: give the client the server URL, click Connect, and approve the request in your browser when it appears.

Server URL: https://mcp.vlozi.app/mcp

That's the only field a client like this asks for. Everything else — registration, the authorization redirect, token exchange — happens automatically:

  1. The client discovers Vlozi's OAuth endpoints on its own (/.well-known/oauth-authorization-server) and registers itself.
  2. It opens your browser to a Vlozi consent screen showing the client's name and exactly what it's asking to access.
  3. You approve (choosing a role or hand-picking permissions, same picker as Settings → API Keys) or deny.
  4. The client receives its own access token — no ls_ key ever touches its config.

The token is short-lived and refreshes itself automatically behind the scenes. To disconnect a client you've approved this way, go to Settings → API Keys → Connected apps and click Disconnect — this stops it from refreshing again (its current access token, valid for up to an hour, simply expires on its own shortly after), rather than making you wait out its full 90-day connection.

TIP

Approving one of these is exactly as consequential as creating an API key — the client can do whatever permissions you grant it. Check the client name and requested permissions before clicking Approve, the same way you'd review before minting a key manually.

ChatGPT specifically (paid plans only): Settings → Connectors → Advanced → enable Developer mode, then Add custom connector and paste the server URL above. ChatGPT walks you through the same sign-in-and-approve flow before the connector goes live in a chat.

Claude Code

IMPORTANT

Every config block below needs your secret key from Settings → API Keys at vlozi.app in place of YOUR_VLOZI_KEY. It starts with ls_.

claude mcp add --transport http vlozi https://mcp.vlozi.app/mcp \
  --header "Authorization: Bearer YOUR_VLOZI_KEY"
claude mcp list    # vlozi    https://mcp.vlozi.app/mcp    ✓ connected

Claude Desktop

Settings → Developer → Edit Config:

{
  "mcpServers": {
    "vlozi": {
      "url": "https://mcp.vlozi.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_VLOZI_KEY" }
    }
  }
}

Restart Claude Desktop.

Cursor

Settings → Cursor Settings → MCP:

{
  "mcpServers": {
    "vlozi": {
      "type": "http",
      "url": "https://mcp.vlozi.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_VLOZI_KEY" }
    }
  }
}

Windsurf

Windsurf Settings → MCP servers → Add server:

{
  "mcpServers": {
    "vlozi": {
      "serverUrl": "https://mcp.vlozi.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_VLOZI_KEY" }
    }
  }
}

Antigravity

Click ⋯ → MCP Servers → Manage MCP Servers → View raw config in the agent panel, or edit the file directly — ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (this workspace only):

{
  "mcpServers": {
    "vlozi": {
      "serverUrl": "https://mcp.vlozi.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_VLOZI_KEY" }
    }
  }
}

IMPORTANT

Antigravity's remote-server field is serverUrl — its docs explicitly say the legacy url/httpUrl fields aren't supported.

Gemini CLI

gemini mcp add --transport http --header "Authorization: Bearer YOUR_VLOZI_KEY" vlozi https://mcp.vlozi.app/mcp

Or edit ~/.gemini/settings.json directly:

{
  "mcpServers": {
    "vlozi": {
      "httpUrl": "https://mcp.vlozi.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_VLOZI_KEY" }
    }
  }
}

Codex CLI

export VLOZI_API_KEY=YOUR_VLOZI_KEY
codex mcp add vlozi --url https://mcp.vlozi.app/mcp --bearer-token-env-var VLOZI_API_KEY

Or edit ~/.codex/config.toml directly:

[mcp_servers.vlozi]
url = "https://mcp.vlozi.app/mcp"
bearer_token_env_var = "VLOZI_API_KEY"

OpenClaw

Edit ~/.openclaw/openclaw.json (JSON5 — comments and trailing commas are fine):

{
  mcp: {
    servers: {
      vlozi: {
        url: "https://mcp.vlozi.app/mcp",
        transport: "streamable-http",
        headers: {
          Authorization: "Bearer ${VLOZI_API_KEY}",
        },
      },
    },
  },
}

Grok

Grok Build (xAI's terminal CLI) reuses Claude Code's MCP config with zero changes — run the same claude mcp add command from the Claude Code section above; Grok Build reads it automatically.

Building against the Grok API directly? Pass Vlozi as a remote MCP tool on the request:

{
  "model": "grok-4.6",
  "tools": [
    {
      "type": "mcp",
      "server_url": "https://mcp.vlozi.app/mcp",
      "server_label": "vlozi",
      "authorization": "Bearer YOUR_VLOZI_KEY"
    }
  ]
}

Hermes Agent

hermes mcp add vlozi --url https://mcp.vlozi.app/mcp --auth oauth

Prefer a static key over OAuth? Edit ~/.hermes/config.yaml directly:

mcp_servers:
  vlozi:
    url: "https://mcp.vlozi.app/mcp"
    headers:
      Authorization: "Bearer YOUR_VLOZI_KEY"

Continue.dev

Edit ~/.continue/config.yaml:

mcpServers:
  - name: vlozi
    url: https://mcp.vlozi.app/mcp
    headers:
      Authorization: Bearer YOUR_VLOZI_KEY

Other MCP clients

Any client that supports MCP Streamable HTTP (spec rev 2024-11-05+):

Field Value
URL https://mcp.vlozi.app/mcp
Method POST (JSON-RPC)
Header Authorization: Bearer YOUR_VLOZI_KEY

First test

In any of the clients above:

Use the vlozi tools to list my blog categories and any drafts I have.

A working setup calls blog.list_categories then blog.list_posts and reports back.

Troubleshooting

Symptom Fix
All calls return -32001 Key missing/wrong — test with curl first (see Quickstart)
Some tools missing Key or OAuth grant missing scopes — see Authentication
-32601 Method not found Client speaks legacy SSE — use mcp-remote as a bridge
Connection timeout Corporate proxy — whitelist mcp.vlozi.app
OAuth client never shows a consent screen Client didn't hit /.well-known/oauth-authorization-server — confirm it supports the MCP authorization spec, not just Streamable HTTP
OAuth-connected client stopped working Its connection may have been disconnected from Settings → API Keys → Connected apps, or its access token simply expired mid-session — it should refresh automatically on the next call
MCP · Connect your agentEdit on GitHub