# Install Sequel MCP

Step-by-step instructions for installing the Sequel MCP server in Claude Code, Cursor, VS Code, ChatGPT, Codex, Windsurf, Zed, and Gemini.

Sequel exposes a single hosted MCP endpoint. Point any MCP-capable AI tool at it and authenticate with your API key:

<CodeBlock language="bash">https://api.sequel.sh/mcp</CodeBlock>

There are two ways to install it into your agent: the **Sequel CLI** (one command — it creates the API key and writes the config for you) or **manual setup** (copy-paste the config into each tool yourself).

## Fastest: the Sequel CLI

The CLI installs Sequel into a coding agent in a single step. It signs you in, provisions a scoped API key for that agent, and writes the right config to the right place — no keys to copy by hand.

<Steps>
<Step title="Install the CLI">
One line installs the latest CLI (`@sequelsh/cli`) with whatever package manager you have:

<CodeBlock language="bash">curl -fsSL https://sequel.sh/install | sh</CodeBlock>

Prefer npm directly? `npm install -g @sequelsh/cli@latest` works too (or `pnpm add -g`, `bun add -g`, `yarn global add`).
</Step>

<Step title="Sign in">
<CodeBlock language="bash">sequel login</CodeBlock>

This opens your browser to authenticate and pick an organization.
</Step>

<Step title="Install Sequel into your agent">
Run `install` and pick an agent from the list, or pass its slug directly:

<CodeBlock language="bash">sequel install</CodeBlock>

The CLI creates an API key named after the agent, then writes its MCP config. For agents that support it, you'll also be asked for a **scope** — `global` (available everywhere on this machine) or `local` (this project only). Pass `--scope` to skip that prompt:

<CodeBlock language="bash">sequel install claude-code --scope global</CodeBlock>

With the slug and `--scope` given, `install` never prompts, so a coding agent can run it for you. Add `--no-browser` (on `login` or `install`) to print the sign-in URL instead of opening a browser.

When `sequel login` is run without a terminal (piped, as a coding agent runs it), it returns straight away with JSON containing the sign-in `url` and finishes the sign-in in the background; `sequel login --status` reports `logged_in`, `pending`, or `failed`, and `sequel login --wait` blocks until a pending sign-in completes. A piped `sequel install` waits for a pending sign-in rather than starting its own.

For agents with a skills directory, the same command also installs the **Sequel skill**: a short `SKILL.md` that tells the agent Sequel's [playbooks](/skills) exist and how to reach them. Every agent gets the playbooks through MCP regardless; the skill file just makes the agent reach for them without being told.

| Agent | Slug | Scopes | Skill file |
| --- | --- | --- | --- |
| Claude Code | `claude-code` | global, local | `~/.claude/skills/sequel/` or `.claude/skills/sequel/` |
| Claude Desktop | `claude` | global | via MCP only |
| Cursor | `cursor` | global, local | via MCP only |
| VS Code | `vscode` | global, local | via MCP only |
| Windsurf | `windsurf` | global | via MCP only |
| Zed | `zed` | global, local | via MCP only |
| Codex | `codex` | global | via MCP only |
| OpenClaw | `openclaw` | global | via MCP only |
| Hermes | `hermes` | global | via MCP only |
</Step>

<Step title="Verify">
Restart the agent and ask it to **"list my Sequel connections."** If it answers, you're connected.
</Step>
</Steps>

<Callout type="tip">
Already have the CLI? `sequel install claude-code` (or any slug above) re-runs setup for that agent at any time.
</Callout>

## Manual setup

Prefer to wire it up yourself — or using ChatGPT, Claude.ai, or Gemini? Generate a key under **Settings → API Keys** in your Sequel dashboard and drop it into the `Authorization` header shown in each snippet below. Some tools — like ChatGPT and Claude.ai — can also sign in with **OAuth** instead of a static key; see [API keys & authentication](/docs/api-keys-and-auth) for the difference.

Expand a tool for its exact setup. Replace `sql_your_api_key` with a real key from your dashboard.

<McpInstallList />

<Callout type="info" title="Using a tool that isn't listed?">
Any client that supports the [Model Context Protocol](https://modelcontextprotocol.io) over streamable HTTP can connect using the URL and `Authorization` header above.
</Callout>
