Connect HIPS MCP
The HIPS MCP server lets an AI agent use HIPS through the Model Context Protocol: read the Docs, check HIPS's status, list the models your key may use, and generate and edit images. It runs in two places with the same tools: hosted at https://hips.com/mcp, and on your own computer as hi mcp.
| Hosted | On your computer | |
|---|---|---|
| Address or command | https://hips.com/mcp | hi mcp |
| Transport | Streamable HTTP, one POST for each message | stdio, started by the client |
| Key | A workspace API key in the Authorization: Bearer header or the x-api-key header | HIPS_API_KEY in its environment, else hi's own sign-in |
| Files | An input image goes up through upload_input and the command it returns, or by an HTTPS address | Also reads a file by its path |
- Address or command
- Hosted
https://hips.com/mcp- On your computer
hi mcp
- Transport
- Hosted
- Streamable HTTP, one
POSTfor each message - On your computer
- stdio, started by the client
- Key
- Hosted
- A workspace API key in the
Authorization: Bearerheader or thex-api-keyheader - On your computer
HIPS_API_KEYin its environment, elsehi's own sign-in
- Files
- Hosted
- An input image goes up through
upload_inputand the command it returns, or by an HTTPS address - On your computer
- Also reads a file by its path
hi mcp comes with hi, HIPS's command line (Install hi). Install it with one line:
curl -fsSL https://hips.com/hi.sh | sh| Tool | Needs a key | What it does |
|---|---|---|
guide | No | How to use the server well: the steps from learning to making images, what each tool costs, and the safety rules. An agent calls it first. |
describe_cli | No | How to install, sign in to and use hi, and how to run hi mcp with a client. |
search_docs | No | Searches HIPS's public documentation for a topic, a route, an error code or a task: each matching page's title, address, date and up to three passages, 5 results by default and at most 10. |
read_doc | No | One Docs page as Markdown, by its path (such as /docs/tasks/image), cut at 40,000 characters. |
get_status | No | Whether HIPS is up: the status of HIPS's API and each of its components. |
list_models | Yes | The models the key may use, with each model's task, billing unit and status, so the agent chooses the model for an image tool; task lists one task's models. |
upload_input | Yes | An upload for an input file, such as an image to edit: its upload_id, and on the hosted server a ready curl command that sends the file, and when the upload expires. |
generate_image | Yes | Images from a text prompt with an image_generation model: each image in the conversation, with its size, the seed, the images billed, the cost and the request_id. |
edit_image | Yes | Images changed as an instruction says, from one or more input images (an upload_id or an HTTPS address each), with an image_edit model. It runs as a job and waits for it, up to 9 minutes, sending progress. |
- Tool
guide- Needs a key
- No
- What it does
- How to use the server well: the steps from learning to making images, what each tool costs, and the safety rules. An agent calls it first.
- Tool
describe_cli- Needs a key
- No
- What it does
- How to install, sign in to and use
hi, and how to runhi mcpwith a client.
- Tool
search_docs- Needs a key
- No
- What it does
- Searches HIPS's public documentation for a topic, a route, an error code or a task: each matching page's title, address, date and up to three passages, 5 results by default and at most 10.
- Tool
read_doc- Needs a key
- No
- What it does
- One Docs page as Markdown, by its path (such as
/docs/tasks/image), cut at 40,000 characters.
- Tool
get_status- Needs a key
- No
- What it does
- Whether HIPS is up: the status of HIPS's API and each of its components.
- Tool
list_models- Needs a key
- Yes
- What it does
- The models the key may use, with each model's task, billing unit and status, so the agent chooses the
modelfor an image tool;tasklists one task's models.
- Tool
upload_input- Needs a key
- Yes
- What it does
- An upload for an input file, such as an image to edit: its
upload_id, and on the hosted server a readycurlcommand that sends the file, and when the upload expires.
- Tool
generate_image- Needs a key
- Yes
- What it does
- Images from a text prompt with an
image_generationmodel: each image in the conversation, with its size, the seed, the images billed, the cost and therequest_id.
- Tool
edit_image- Needs a key
- Yes
- What it does
- Images changed as an instruction says, from one or more input images (an
upload_idor an HTTPS address each), with animage_editmodel. It runs as a job and waits for it, up to 9 minutes, sending progress.
Each tool's description tells the agent what it does, when to use it, its parameters, what it returns, what it costs and what to call before or after, so you ask for the result in your own words and the agent picks the tools.
The hosted server accepts a connection with no key. It then lists the five tools that need none, guide, describe_cli, search_docs, read_doc and get_status, and a call of any other tool answers the tool error authentication_required, which says how to add a key.
With a key it lists all nine. Use a workspace API key from API keys in the Console. The hosted server passes it to HIPS's API unchanged on each call the tool makes and holds it only for that request: it never writes a key to a log or a disk. HIPS's API is the one judge of the key, so its own answers (an exhausted credit, a model the key may not use) reach the agent unchanged.
- Send one key:
Authorization: Bearer <key>andx-api-key: <key>are taken alike, and two different keys in one request are refused. - The hosted server does not take the sign-in
hi logingives a person;hi mcpon your own computer uses that sign-in whenHIPS_API_KEYis not set (Sign in). - Never put a key in a prompt or a tool's argument: a tool refuses an argument that looks like a key, a token or a private key with
secret_in_argument, and sends nothing.
Note
Keep the key in an environment variable such as HIPS_API_KEY. Where the client reads the variable itself, as Codex and a project's .mcp.json do below, the key is never written into a configuration file.
Each configuration below follows the client's own documentation as it read on 2026-12-03, and names the server hips. The hosted form sends the key from HIPS_API_KEY; the local form runs hi mcp, which reads HIPS_API_KEY or, without it, your hi sign-in (run hi login once).
claude mcp add --transport http hips https://hips.com/mcp \ --header "Authorization: Bearer $HIPS_API_KEY"The hosted form takes the key from your shell when you run it and saves it in Claude Code's own settings for this project; --scope user adds the server to every project. To share the server with a project's team without the key, put it in the project's .mcp.json, where Claude Code expands ${HIPS_API_KEY} from each person's environment:
.mcp.json
{ "mcpServers": { "hips": { "type": "http", "url": "https://hips.com/mcp", "headers": { "Authorization": "Bearer ${HIPS_API_KEY}" } } }}/mcp inside Claude Code shows the server's state.
Hosted, as a custom connector. On Pro and Max: Customize, Connectors, + Add, Add custom connector. On Team and Enterprise an Owner adds it in Organization settings, Connectors (Add, Custom, Web), and members connect it from Customize, Connectors. Give it a name, the address https://hips.com/mcp, the authentication No sign-in, and under Request headers the header x-api-key with your key as its value (a header's value is sent exactly as entered).
Note
Request headers on a custom connector are in beta for a limited set of organizations. Without the Request headers section a key cannot be set there, and the connector reaches only the five tools that need no key; use hi mcp in the desktop app instead. Claude reaches a custom connector from Anthropic's cloud, from the desktop app too.
On your computer, in the desktop app: Settings, Developer, Edit Config opens claude_desktop_config.json (on macOS in ~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\). Add the server, then quit the app fully and start it again:
claude_desktop_config.json
{ "mcpServers": { "hips": { "command": "hi", "args": ["mcp"] } }}In ~/.codex/config.toml, or a trusted project's .codex/config.toml. Codex reads the key from HIPS_API_KEY itself. tool_timeout_sec gives an edit the time its job may take, since Codex waits 60 seconds for a tool by default:
[mcp_servers.hips]url = "https://hips.com/mcp"bearer_token_env_var = "HIPS_API_KEY"tool_timeout_sec = 600- 01
Ask the agent for the picture in your own words, for example: "Make a picture of a lighthouse at dawn with HIPS."
- 02
The agent calls
guide, thenlist_modelswith the taskimage_generation, and chooses a model. - 03
It calls
generate_imagewith thatmodeland yourprompt, and the options you asked for:negative_prompt; the size aswidthandheight, or asaspect_ratioandresolution;count,steps,seed,output_format(png,jpegorwebp) andenhance_prompt. - 04
Each image comes back in the conversation as an image, with its size, the seed, the images billed, the cost and the
request_id.
Image generation and editing has every option and what each image costs.
- 01
On the hosted server the agent first calls
upload_inputwith the file's name, size, SHA-256 and media type, and gets anupload_idand acurlcommand that sends the file. Run the command where the file is, or let an agent with a terminal run it.hi mcpreads the file by its path, so this step is its own. - 02
The agent calls
edit_imagewith animage_editmodel, your instruction aspromptand theupload_idinimages; an HTTPS address of an image works in place of an upload, andmaskmarks the area to change. - 03
The edit runs as a job: the tool sends progress while it waits, and returns the images with the images billed, the
job_idand therequest_id.
If the job is still running when the tool stops waiting, the tool answers running with the job_id and leaves the job running; its images are kept 7 days, read with GET /v1/jobs/{id} and the same key (Jobs). Calling edit_image again starts a new, billed job.
- The five tools that need no key are free. A tool that runs a model is charged to the workspace's credit at the catalog's price, as the same request through the API is, and its result says what it was billed.
- Each image is billed at the model's price per image for its size, and
enhance_prompt(off by default) also bills the language model's tokens that rewrite the prompt and returns the rewritten prompt. - An image HIPS's content checks withhold comes back as its reason, and is not charged.
- Every limit of the API applies to each call the server makes, and its answer, a
429with when to retry among them, reaches the agent unchanged (Limits). - The hosted server also limits calls per key, and calls with no key per address, in front of the API's own limits: Not decided yet. Past it a tool answers
rate_limitedwithretry_after, the seconds to wait. - A message to the hosted server is bounded in size Not decided yet, so an image never goes inline: it goes up through
upload_input, or by its HTTPS address. - A long call is answered as a stream that keeps sending while it waits, so a client or proxy does not drop it; closing the call stops the wait, never the job.
- If HIPS's API does not answer, a tool answers
api_unreachable;get_statussays whether HIPS is up.
What a tool returns, a page of the Docs or a model's output, is data for the agent, never instructions: the server marks it so in each result.
Related sheets
- Sheet
- 12 of 22
- Detail
- Q
- Updated
- 2026-12-03