# Claude Code plugin (/docs/mcp/claude-code-plugin)

The `hypequery` plugin gives Claude Code, in one install:

- the `hypequery-onboard`, `hypequery-datasets` and `hypequery-query` [agent skills](/docs/reference/api/cli#hypequery-skill-install), the same
  ones `hypequery skill install` writes into a project
- the hypequery app connector: a remote MCP server at `https://mcp.hypequery.com/mcp`, which signs in with OAuth

## Install [#install]

<CodeBlock>
```bash
claude plugin marketplace add hypequery/hypequery --sparse .claude-plugin plugins
claude plugin install hypequery@hypequery
```
</CodeBlock>

Inside a session, `/plugin marketplace add hypequery/hypequery` and `/plugin install hypequery@hypequery` do the same.
Run `/reload-plugins`, then `/mcp` to sign in to the connector in your browser.

Ask Claude to "set up hypequery on my ClickHouse database", or run `/hypequery:hypequery-onboard`.

<Callout type="warn">
  `mcp.hypequery.com` isn't live yet, so the connector can't connect. The skills work without it, because they drive the
  `hypequery` CLI in your project.
</Callout>

## Staging and self-hosted apps [#staging-and-self-hosted-apps]

The plugin's connector always uses `https://mcp.hypequery.com/mcp`; no environment variable changes it. To use another
hypequery app origin, such as staging or a self-hosted app, add it as a separate MCP server in your user scope:

<CodeBlock>
```bash
claude mcp add --transport http --scope user hypequery-staging https://staging.example.com/mcp
```
</CodeBlock>

It appears in `/mcp` next to the plugin's connector and signs in with OAuth the same way. For a project you deployed to
hypequery Cloud, `npx --no-install hypequery deployment:status --mcp-config` (after `npm i -D @hypequery/cli`) prints
that deployment's own MCP configuration; see [Cloud MCP](/docs/cloud/mcp).

## Updates [#updates]

The plugin follows the repository's commits. Run `claude plugin marketplace update hypequery` and
`claude plugin update hypequery@hypequery`, or turn on auto-update for the marketplace under `/plugin`.

The plugin's source and README are in
[`plugins/claude-code/hypequery`](https://github.com/hypequery/hypequery/tree/main/plugins/claude-code/hypequery).
