# Connect your client

> Connect Piqline from Claude, ChatGPT, Codex, Cursor, VS Code, Gemini CLI, Zed, Mistral Le Chat, Copilot Studio, n8n, LangChain, the Vercel SDK and any other MCP client: one block to copy per client.

Source: https://piqline.com/docs/api/clients

Piqline has two MCP servers, both over Streamable HTTP:

| Server | URL | Authentication |
| --- | --- | --- |
| Full | `https://piqline.com/api/mcp` | API key in the `Authorization: Bearer …` header |
| Open door | `https://piqline.com/api/open/mcp` | none: what Piqline can do, and its public data |

Create the key in a free account, Settings → API and MCP. Keep it in a `PIQLINE_API_KEY` environment variable rather than in a shared file.

| Client | Vendor | Key in a header |
| --- | --- | --- |
| [Claude (claude.ai, Claude Desktop)](#claude-claude-ai-claude-desktop) | Anthropic | yes |
| [ChatGPT](#chatgpt) | OpenAI | no, open door only |
| [Mistral Le Chat](#mistral-le-chat) | Mistral AI | yes |
| [Microsoft Copilot Studio](#microsoft-copilot-studio) | Microsoft | yes |
| [Claude Code](#claude-code) | Anthropic | yes |
| [Codex CLI](#codex-cli) | OpenAI | yes |
| [Gemini CLI](#gemini-cli) | Google | yes |
| [Cursor](#cursor) | Anysphere | yes |
| [VS Code (GitHub Copilot)](#vs-code-github-copilot) | Microsoft | yes |
| [Zed](#zed) | Zed Industries | yes |
| [Cline](#cline) | Cline | yes |
| [Roo Code](#roo-code) | Roo Code | yes |
| [Continue](#continue) | Continue | yes |
| [Windsurf](#windsurf) | Cognition | through the relay |
| [JetBrains AI Assistant](#jetbrains-ai-assistant) | JetBrains | through the relay |
| [Goose](#goose) | Block | through the relay |
| [Claude API (Messages)](#claude-api-messages) | Anthropic | yes |
| [OpenAI Responses API](#openai-responses-api) | OpenAI | yes |
| [OpenAI Agents SDK](#openai-agents-sdk) | OpenAI | yes |
| [Vercel AI SDK](#vercel-ai-sdk) | Vercel | yes |
| [LangChain / LangGraph](#langchain-langgraph) | LangChain | yes |
| [Google ADK](#google-adk) | Google | yes |
| [n8n](#n8n) | n8n | yes |
| [CrewAI](#crewai) | CrewAI | through the relay |
| [LlamaIndex](#llamaindex) | LlamaIndex | through the relay |
| [mcp-remote (any local client)](#mcp-remote-any-local-client) | Open source | yes |

## Assistants and apps

### Claude (claude.ai, Claude Desktop)

**Where:** Settings › Connectors › Add custom connector

Paste the server URL, then under “Request headers” add `Authorization` with the value `Bearer` followed by your key. Without a key, the open-door URL works with “No sign in”.

```text tab="URL"
https://piqline.com/api/mcp
```
```text tab="Header"
Authorization: Bearer piq_live_…
```

On Team and Enterprise plans, a header set on the connector is shared by every member: create a dedicated, capped key.

Source: [support.claude.com](https://support.claude.com/en/articles/11175166), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### ChatGPT

**Where:** Settings › Apps › Developer mode › Create

ChatGPT does not accept a key in a header: only OAuth or no authentication. Connect the open door today, with no key; the full server comes with sign-in through a Piqline account.

```text
https://piqline.com/api/open/mcp
```

Source: [developers.openai.com](https://developers.openai.com/apps-sdk/build/auth), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### Mistral Le Chat

**Where:** Connectors › Add MCP connector (admin)

Paste the server URL, choose Bearer token authentication, then paste your key.

```text
https://piqline.com/api/mcp
```

Source: [docs.mistral.ai](https://docs.mistral.ai/le-chat/knowledge-integrations/connectors/mcp-connectors), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

### Microsoft Copilot Studio

**Where:** Agent › Tools › Add a tool › New tool › Model Context Protocol

Paste the server URL, choose “API key”, location “Header”, name `Authorization`. When connecting, enter `Bearer` followed by your key.

```text
https://piqline.com/api/mcp
```

Source: [learn.microsoft.com](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

## Coding agents and editors

### Claude Code

**Where:** Terminal

One command. Add `--scope project` to write it to `.mcp.json` and share it with the team.

```bash tab="CLI"
claude mcp add --transport http piqline https://piqline.com/api/mcp \
  --header "Authorization: Bearer $PIQLINE_API_KEY"
```
```json tab=".mcp.json"
{
  "mcpServers": {
    "piqline": {
      "type": "http",
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer ${PIQLINE_API_KEY}" }
    }
  }
}
```

Source: [code.claude.com](https://code.claude.com/docs/en/mcp), read on 20 Nov 2026 (block from the official documentation). Tested with a real key on 2026-11-20.

### Codex CLI

**Where:** ~/.codex/config.toml

Codex reads the key from an environment variable: export `PIQLINE_API_KEY`, then add the server to the config.

```toml
[mcp_servers.piqline]
url = "https://piqline.com/api/mcp"
bearer_token_env_var = "PIQLINE_API_KEY"
```

Source: [learn.chatgpt.com](https://learn.chatgpt.com/docs/extend/mcp?surface=cli), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### Gemini CLI

**Where:** Terminal or ~/.gemini/settings.json

One command, or the block in `settings.json`. The `httpUrl` key selects the HTTP transport (`url` would mean legacy SSE).

```bash tab="CLI"
gemini mcp add --transport http \
  --header "Authorization: Bearer $PIQLINE_API_KEY" piqline https://piqline.com/api/mcp
```
```json tab="settings.json"
{
  "mcpServers": {
    "piqline": {
      "httpUrl": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer piq_live_…" }
    }
  }
}
```

Source: [geminicli.com](https://geminicli.com/docs/tools/mcp-server/), read on 20 Nov 2026 (block from the official documentation). Tested with a real key on 2026-11-20.

### Cursor

**Where:** ~/.cursor/mcp.json or .cursor/mcp.json

The block reads the key from an environment variable.

```json
{
  "mcpServers": {
    "piqline": {
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer ${env:PIQLINE_API_KEY}" }
    }
  }
}
```

Source: [cursor.com](https://cursor.com/docs/context/mcp), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### VS Code (GitHub Copilot)

**Where:** .vscode/mcp.json

VS Code asks for the key on first connection and keeps it in its secret store. The `.vscode/mcp.json` format is announced as replaced in February 2027 by a root `.mcp.json`, in the Claude Code format.

```json
{
  "inputs": [
    { "type": "promptString", "id": "piqline-key", "description": "Piqline API key", "password": true }
  ],
  "servers": {
    "piqline": {
      "type": "http",
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer ${input:piqline-key}" }
    }
  }
}
```

Source: [code.visualstudio.com](https://code.visualstudio.com/docs/agents/reference/mcp-configuration), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

### Zed

**Where:** Zed settings.json

Add the server under `context_servers`.

```json
{
  "context_servers": {
    "piqline": {
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer piq_live_…" }
    }
  }
}
```

Source: [zed.dev](https://zed.dev/docs/ai/mcp), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### Cline

**Where:** cline_mcp_settings.json

The `type` field is required: without it, Cline falls back to legacy SSE.

```json
{
  "mcpServers": {
    "piqline": {
      "type": "streamableHttp",
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer piq_live_…" }
    }
  }
}
```

Source: [docs.cline.bot](https://docs.cline.bot/mcp/configuring-mcp-servers), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### Roo Code

**Where:** .roo/mcp.json

Add the server to the project file.

```json
{
  "mcpServers": {
    "piqline": {
      "type": "streamable-http",
      "url": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer piq_live_…" }
    }
  }
}
```

Source: [roocodeinc.github.io](https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### Continue

**Where:** Continue config.yaml

The key stays in Continue secrets.

```yaml
mcpServers:
  - name: piqline
    type: streamable-http
    url: https://piqline.com/api/mcp
    requestOptions:
      headers:
        Authorization: "Bearer ${{ secrets.PIQLINE_API_KEY }}"
```

Source: [docs.continue.dev](https://docs.continue.dev/reference), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

### Windsurf

**Where:** ~/.codeium/windsurf/mcp_config.json

Windsurf accepts the HTTP transport and headers. If your version rejects this block, use the mcp-remote relay below.

```json
{
  "mcpServers": {
    "piqline": {
      "serverUrl": "https://piqline.com/api/mcp",
      "headers": { "Authorization": "Bearer piq_live_…" }
    }
  }
}
```

Source: [docs.devin.ai](https://docs.devin.ai/desktop/cascade/mcp), read on 20 Nov 2026 (headers undocumented, relay advised). Not yet tested here with a real key.

### JetBrains AI Assistant

**Where:** Settings › Tools › AI Assistant › Model Context Protocol

The documentation shows no header for a remote server: use the mcp-remote relay below.

See the [mcp-remote](#mcp-remote-any-local-client) relay.

Source: [www.jetbrains.com](https://www.jetbrains.com/help/ai-assistant/mcp.html), read on 20 Nov 2026 (headers undocumented, relay advised). Not yet tested here with a real key.

### Goose

**Where:** goose configure › Add extension › Remote

Add a remote HTTP extension with the server URL and the `Authorization` header. Otherwise, use the mcp-remote relay below.

```text
https://piqline.com/api/mcp
```

Source: [goose-docs.ai](https://goose-docs.ai/docs/getting-started/using-extensions), read on 20 Nov 2026 (headers undocumented, relay advised). Not yet tested here with a real key.

## APIs and agent frameworks

### Claude API (Messages)

**Where:** Messages API request

The API's MCP connector calls Piqline for the model. The key goes in `authorization_token`. See the source page for the current beta header.

```json
{
  "mcp_servers": [
    { "type": "url", "url": "https://piqline.com/api/mcp", "name": "piqline", "authorization_token": "piq_live_…" }
  ]
}
```

Source: [platform.claude.com](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### OpenAI Responses API

**Where:** `mcp` tool of a Responses request

The key goes in `headers`.

```json
{
  "type": "mcp",
  "server_label": "piqline",
  "server_url": "https://piqline.com/api/mcp",
  "headers": { "Authorization": "Bearer piq_live_…" },
  "require_approval": "never"
}
```

Source: [developers.openai.com](https://developers.openai.com/api/reference/resources/responses/methods/create), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

### OpenAI Agents SDK

**Where:** Python

A Streamable HTTP server with the header.

```python
import os
from agents.mcp import MCPServerStreamableHttp

piqline = MCPServerStreamableHttp(params={
    "url": "https://piqline.com/api/mcp",
    "headers": {"Authorization": f"Bearer {os.environ['PIQLINE_API_KEY']}"},
})
```

Source: [openai.github.io](https://openai.github.io/openai-agents-python/mcp/), read on 20 Nov 2026 (block from the official documentation). Tested with a real key on 2026-11-20.

### Vercel AI SDK

**Where:** TypeScript

The MCP client hands the tools to `generateText` or `streamText`.

```typescript
import { createMCPClient } from "@ai-sdk/mcp";

const piqline = await createMCPClient({
  transport: {
    type: "http",
    url: "https://piqline.com/api/mcp",
    headers: { Authorization: `Bearer ${process.env.PIQLINE_API_KEY}` },
  },
});
const tools = await piqline.tools();
```

Source: [ai-sdk.dev](https://ai-sdk.dev/docs/ai-sdk-core/mcp-tools), read on 20 Nov 2026 (block from the official documentation). Tested with a real key on 2026-11-20.

### LangChain / LangGraph

**Where:** Python

Piqline tools become LangChain tools.

```python
import os
from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
    "piqline": {
        "transport": "http",
        "url": "https://piqline.com/api/mcp",
        "headers": {"Authorization": f"Bearer {os.environ['PIQLINE_API_KEY']}"},
    }
})
tools = await client.get_tools()
```

Source: [github.com](https://github.com/langchain-ai/langchain-mcp-adapters), read on 20 Nov 2026 (block from the official documentation). Tested with a real key on 2026-11-20.

### Google ADK

**Where:** Python

An MCP toolset for an ADK agent.

```python
import os
from google.adk.tools.mcp_tool import McpToolset, StreamableHTTPConnectionParams

piqline = McpToolset(connection_params=StreamableHTTPConnectionParams(
    url="https://piqline.com/api/mcp",
    headers={"Authorization": f"Bearer {os.environ['PIQLINE_API_KEY']}"},
))
```

Source: [adk.dev](https://adk.dev/tools-custom/mcp-tools/), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

### n8n

**Where:** “MCP Client Tool” node of an AI agent

Paste the server URL, pick the HTTP transport and “Bearer” authentication, then paste your key.

```text
https://piqline.com/api/mcp
```

Source: [docs.n8n.io](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/), read on 20 Nov 2026 (assembled from the official documentation). Not yet tested here with a real key.

### CrewAI

**Where:** Python

CrewAI connects over Streamable HTTP; its documentation shows no header. Use the mcp-remote relay, or LangChain.

See the [mcp-remote](#mcp-remote-any-local-client) relay.

Source: [docs.crewai.com](https://docs.crewai.com/en/mcp/streamable-http), read on 20 Nov 2026 (headers undocumented, relay advised). Not yet tested here with a real key.

### LlamaIndex

**Where:** Python

LlamaIndex connects to an HTTP server; its documentation shows no header. Use the mcp-remote relay.

See the [mcp-remote](#mcp-remote-any-local-client) relay.

Source: [developers.llamaindex.ai](https://developers.llamaindex.ai/python/framework/module_guides/mcp/llamaindex_mcp/), read on 20 Nov 2026 (headers undocumented, relay advised). Not yet tested here with a real key.

## Any other client

### mcp-remote (any local client)

**Where:** Your client's MCP config file

For a client that only talks to a local process (stdio): `mcp-remote` relays the HTTP server. The header value lives in `env`, with no space in the arguments (some clients split on spaces).

```json
{
  "mcpServers": {
    "piqline": {
      "command": "npx",
      "args": ["mcp-remote", "https://piqline.com/api/mcp", "--transport", "http-only", "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer piq_live_…" }
    }
  }
}
```

Source: [github.com](https://github.com/geelen/mcp-remote), read on 20 Nov 2026 (assembled from the official documentation). Tested with a real key on 2026-11-20.
