Image generation in Goose: MCP extension setup
Goose calls MCP servers extensions: add the Image MCP Server as a streamable_http extension in ~/.config/goose/config.yaml, or through goose configure → Add Extension → Remote Extension. Goose runs long autonomous sessions, which is exactly where missing images hurt most — it will happily finish a twenty-step build and leave every asset as a TODO. The extension turns those into steps it can actually complete.
Add the server
- Where the config lives
- ~/.config/goose/config.yaml (macOS/Linux) · %APPDATA%\Block\goose\config\config.yaml (Windows)
- The key it nests under
- extensions
- 1
Create an API key. Create a key in the Image MCP Server dashboard.
- 2
Run goose configure. Choose Add Extension, then Remote Extension (Streamable HTTP).
- 3
Enter the URI and header. Give it a name, the endpoint as the URI, and the key as an x-api-key header.
- 4
Or edit config.yaml. The wizard writes ~/.config/goose/config.yaml — the same block can be written by hand.
The server reads the key from an x-api-key header, an Authorization: Bearer header or a ?apikey= query parameter — see authentication. What each tool costs is on the credits page.
# ~/.config/goose/config.yaml
extensions:
imagemcp:
enabled: true
type: streamable_http
name: imagemcp
uri: https://mcp.imagemcpserver.com/mcp
headers:
x-api-key: sk-img-gen-…
timeout: 300extensions:
imagemcp:
enabled: true
type: streamable_http
name: imagemcp
uri: https://mcp.imagemcpserver.com/mcp
headers:
x-api-key: sk-img-gen-…
timeout: 300
# Only listed tools load; the model-priced
# ones cannot be called at all.
available_tools:
- compress_image
- convert_format
- remove_background
- list_models
- get_user_infouri, not url — and an underscore, not a hyphen
Goose disagrees with the rest of this list twice in the same three lines. The endpoint goes in uri where everyone else uses url, and the transport is streamable_http with an underscore where Roo Code wants streamable-http with a hyphen and VS Code just says http. Goose no longer supports SSE extensions at all. It is also YAML rather than JSON, so indentation is load-bearing.
Check it connected in Goose
Start a goose session and ask which image tools it has; it should name the imagemcp ones. If it has none, the extension is disabled or failed to load. Then ask for your image credit balance: get_user_info is free, and it is the first call that actually checks the key, because the server lists its tools without one.
Example workflow in Goose
An optimisation pass over a whole folder
- 1
Load only the cheap tools
Set available_tools to compress_image, convert_format, list_models and get_user_info. Tools left off the list cannot be called at all.
- 2
Write the budget down
Put a credit budget in your goosehints, so a long autonomous session knows when to stop.
- 3
Let it run
compress_image and convert_format cost 1 credit each, so the pass costs one credit per file per operation.
When Goose will not connect
| Symptom | Usual cause | Fix |
|---|---|---|
| The extension never loads | The block says url, or streamable-http with a hyphen. | Goose reads uri and type: streamable_http, spelled exactly that way. |
| An older sse entry stopped working | Goose no longer supports SSE extensions. | Change type to streamable_http; the uri stays the same. |
| Some image tools are missing | available_tools lists only some of them. | Add the names you want, or empty the list to load all 11 MCP tools. |
Once Goose is connected
Goose gets the server’s 8 image tools, plus 3 utility tools for the credit balance, the model list and batching: 11 MCP tools in all. The ones most setups reach for first are the AI image generation API, Background removal API and Image compression API; each page covers what the tool does and what a call costs. If the protocol itself is new to you, what is MCP explains how a client like Goose finds these tools and calls them.
- generate_image · 8–30 creditsAI image generation APIText-to-image and image-to-image, any live model
- remove_background · 8 creditsBackground removal APICut the subject out in one call
- compress_image · 1 creditImage compression APIRe-encode smaller with a quality dial
- Use caseAI featured images for blog postsThe complete workflow, with the calls in order and what each one costs.
Setting up another client too? The Claude Desktop MCP setup and Hermes Agent MCP setup guides use the same endpoint and key in a different config shape.
Goose questions
How do I add a remote MCP server to Goose?
goose configure → Add Extension → Remote Extension (Streamable HTTP), then supply a name, the URI and any headers. Editing ~/.config/goose/config.yaml directly produces exactly the same result.
Why does Goose reject my url field?
Goose uses uri, not url, for remote extensions. It is the single most common transcription error when moving a config in from another client.
Is it streamable_http or streamable-http?
In Goose, streamable_http with an underscore. Roo Code uses a hyphen, and VS Code uses plain http. The transport is identical; only the spelling differs.
Goose runs autonomously — how do I keep costs down?
Two things. Tell it the budget in your goosehints, and lean on the fact that the cheap tools are genuinely cheap: format conversion and compression cost a single credit, so an optimisation pass over a whole folder is not where the money goes. Generation is.
Can I limit which image tools Goose sees?
Yes: add available_tools to the extension, e.g. available_tools: [compress_image, convert_format, remove_background, list_models, get_user_info]. Only listed tools load, so the model-priced ones cannot be called at all.
Sources & references