Generate images with MCP
Glean's built-in image generation is available from a connected MCP host, so you can ask Claude, Cursor, ChatGPT, or another host to create a visual without leaving your workflow. Glean generates the image under your permissions, saves it to your Library as an image artifact, and returns it to the host as an inline image or a stable link.
How image tools work
The Image generation toolset adds two tools that a connected host can call on your behalf:
create_image— generates a new image from a prompt and saves it as an image artifact in your Libraryedit_image— modifies an existing image artifact from a natural-language instruction
To find an image you already have, use search and read_document. There's no separate image search tool. The host renders the result inline where it supports images, and returns a Library link everywhere else.
Prerequisites
- A host connected to a Glean MCP server — see Configure the Glean MCP server.
- The Image generation toolset on that server, which your admin adds when they create or edit an MCP server.
- Image generation enabled for your account. The tools appear only when you're eligible to generate images in Glean. See Image Generation in Glean for who can use it, and Contextual images setup for admin configuration.
Create an image
Ask the host for an image and to save it to Glean. The host calls create_image, and Glean returns the image and a Library link. For example:
Use Glean to generate a professional hero image of a city skyline at sunrise for our product launch deck, and give me the link.
You can ground the image in your own work when the host also has search and read_document:
Use Glean to search my scope and what I work on, then generate an image that describes it visually.
Edit an image
Give the host the image artifact you want to change, then describe the edit. For a link that ends with /library/{artifact-id}, the artifact ID is the final segment.
Use Glean to edit https://app.glean.com/library/{artifact-id}: make the background dark blue and add a subtle grid.
The host passes the artifact ID and your instruction to edit_image, and Glean saves the result.
Permissions and eligibility
Your MCP connection uses your Glean identity and permissions:
- The image tools appear only when you're eligible to generate images in Glean. A host connected to a server that includes the toolset still can't call them when your account isn't eligible.
create_imageandedit_imagesave images to your Library, with you as the owner.- Generated images follow Glean's standard access controls and image safety policies.
Frequently asked questions
See also
- Image Generation in Glean — use image generation directly in Glean
- Save artifacts to your Library with MCP — save and share other content a host produces
- Contextual images setup — admin configuration for image generation
- Create MCP servers — admin setup for the Image generation toolset