Inliner MCP Server
OfficialIntegrates Inliner.ai image generation and management capabilities into GitHub Copilot, enabling AI agents to generate, edit, and manage images, projects, and credits.
Integrates Inliner.ai image generation and management capabilities into OpenAI Codex CLI, enabling AI agents to generate, edit, and manage images, projects, and credits.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Inliner MCP ServerGenerate a hero image for my landing page"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@inliner/mcp-server
MCP server for Inliner.ai — gives AI coding agents live access to your image projects, credits, and generation.
Works with any Model Context Protocol compatible tool: Claude Code, OpenAI Codex CLI, GitHub Copilot, Gemini CLI, Cursor, Windsurf, and more.
Current release: @inliner/mcp-server@1.3.0, with 12 tools, inexpensive automatic routing, explicit model selection (including Grok Imagine Image 2.0), model-facing initialization instructions, and MCP-safe structured results for array-valued API responses.
For automatic activation guidance as well as tools, install the canonical inliner-ai agent skill/plugin. Codex users can install both layers together:
codex plugin marketplace add inliner-ai/agent-skill --ref v1.3.0
codex plugin add inliner-ai@inliner-aiInstall
Claude Code
claude mcp add --transport stdio inliner -- npx -y @inliner/mcp-server --api-key=YOUR_API_KEY
# Or with environment variable
export INLINER_API_KEY=your-key
claude mcp add --transport stdio inliner -- npx -y @inliner/mcp-serverOpenAI Codex CLI
Use Codex's MCP command:
codex mcp add inliner --env INLINER_API_KEY=your-key -- npx -y @inliner/mcp-serverThen verify the server is configured:
codex mcp listOr add it manually to ~/.codex/config.toml:
[mcp_servers.inliner]
command = "npx"
args = ["-y", "@inliner/mcp-server"]
[mcp_servers.inliner.env]
INLINER_API_KEY = "your-key"
INLINER_DEFAULT_PROJECT = "your-project-namespace"If you prefer to keep secrets in your shell environment, export them first and forward them from Codex:
[mcp_servers.inliner]
command = "npx"
args = ["-y", "@inliner/mcp-server"]
env_vars = ["INLINER_API_KEY", "INLINER_DEFAULT_PROJECT"]Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"inliner": {
"command": "npx",
"args": ["-y", "@inliner/mcp-server"],
"env": { "INLINER_API_KEY": "your-key" }
}
}
}VS Code / Cursor / Windsurf
Project-specific (Recommended):
Create .cursor/mcp.json (or .vscode/mcp.json) in your project root:
{
"mcpServers": {
"inliner": {
"command": "npx",
"args": ["-y", "@inliner/mcp-server"],
"env": {
"INLINER_API_KEY": "your-key",
"INLINER_DEFAULT_PROJECT": "your-project-namespace"
}
}
}
}Global setup: Add to Cursor Settings > Features > MCP, or VS Code MCP settings:
{
"mcpServers": {
"inliner": {
"command": "npx",
"args": ["-y", "@inliner/mcp-server"],
"env": { "INLINER_API_KEY": "your-key" }
}
}
}Note: Using the env field is recommended over --api-key command-line arguments for better compatibility with MCP clients.
Preferred project behavior:
If a tool call omits
project, the server resolves it in this order:INLINER_DEFAULT_PROJECT(if set)account default project
first available project
"default"fallback
This reduces repetitive "which project?" confirmations in day-to-day usage.
Related MCP server: openai-gpt-image-1-mcp
Agent behavior
The server publishes initialization instructions that tell compatible agents how to select tools:
Use
generate_imagefor a new asset that will be inserted, shipped, or verified. It generates the image before returning the account-owned CDN URL.Use
edit_imagewhen an existing source image is identified.Use
recommend_image_urlonly for URL naming or planning. It does not generate an image.Reuse existing generated URLs directly.
Never create a project unless the user requests or approves it.
Generation and editing consume the corresponding account credits. Read-only discovery and URL recommendation do not generate an asset.
Generation cost and model controls
generate_image accepts two independent controls:
mode: "cheap"automatically routes general images to Z-Image Turbo, text/design-heavy images to Qwen Image, and reference-aware requests to Gemini Flash Lite.modelselects an exact image model. An explicit model always takes priority overmode.
Example cheap request:
{
"project": "my-project",
"description": "five professionals collaborating in a modern office",
"width": 1200,
"height": 800,
"format": "jpg",
"mode": "cheap"
}Example explicit model request:
{
"project": "my-project",
"description": "editorial poster with precise typography",
"width": 1200,
"height": 800,
"format": "png",
"model": "IMAGE_GEN_QWEN_IMAGE"
}The inexpensive explicit model codes are IMAGE_GEN_Z_IMAGE_TURBO, IMAGE_GEN_QWEN_IMAGE, and IMAGE_GEN_NANO_BANANA_LITE. For a reference-aware quality/value option, use IMAGE_GEN_GROK_IMAGINE_2 (Grok Imagine Image 2.0 through OpenRouter, using 1K/low by default).
Tools
Tool | Description |
| Generate and host a new image with full prompt context and a concise smart slug; optionally save it locally |
| Edit an existing image by URL or upload a local image, apply edit instructions, optionally resize, and save to a local file |
| Recommend a concise URL and HTML snippet without generating an image |
| Deprecated compatibility alias for |
| Deprecated compatibility alias for |
| List all your Inliner projects with namespaces and settings |
| Create a new project (reserves namespace like 'my-project' for your account) |
| Get detailed project config: namespace, custom prompt, reference images |
| Check remaining credits (base, premium, edit, infill, enhance) |
| View current subscription plan and feature allocations |
| List generated images with optional project filter |
| Get recommended dimensions for common use cases (hero, product, profile, etc.) |
Resources
Resource | URI | Description |
Inliner Guide |
| Quick reference for URL format, dimensions, and style hints |
Example Interaction
Once installed, ask your AI agent naturally:
"Create a project called 'marketing' for my marketing team"
The agent will use create_project to reserve the namespace, then you can use it for generating images.
"Add a hero image to the landing page for my acme-corp project"
The agent will:
Call
get_project_detailsto get your project configCall
generate_imagewith the right namespace and dimensionsOutput the
<img>tag with the correct URL, alt text, and loading attributes
Smart URL behavior:
The server recommends concise slugs using
POST /url/recommendThen generates with full prompt context using
POST /content/generateand the selected slugThis preserves rich prompt quality while producing readable/SEO-friendly URL paths
recommend_image_urlresponses include the selected slug plus alternatives and explicitly reportgenerated: false
"Generate a happy duck image and save it to ./images/duck.png"
The agent will:
Call
generate_imagewith the description, dimensions, and output pathPoll until the image is ready (up to 3 minutes)
Save the image to the specified file path
Return the URL and file path
"Create a hero image for my landing page"
The agent will:
Choose dimensions from the layout and call
generate_imagePoll until the hosted asset is ready
Return the URL and file path
"Edit this local photo to remove the background and resize to 400x400"
The agent will:
Call
edit_imagewithsourcePathpointing to the local fileUpload the file first (if no URL provided)
Apply the edit instruction
Resize to specified dimensions
Save the result
"How many image credits do I have left?"
The agent calls get_usage and reports your remaining credits by type.
API Key
Generate an API key from Account > API Keys in the Inliner dashboard. Only account owners can create and revoke keys.
Pass it via:
Environment variable (recommended):
INLINER_API_KEY— Use theenvfield in MCP configuration filesCommand-line argument:
--api-key=YOUR_KEY— Works for standalone testing, but may have parsing issues with some MCP clients
Links
This server cannot be deployed
Maintenance
Related MCP Connectors
AI image + video generation for agents: --flag prompt DSL, async generate/poll, x402 pay-per-use.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
- MorphedOAuthapp.morphed
Create AI images and videos, manage projects and credits, and use workspace campaign context.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to upload, transform, and serve images using the Spronta Image CDN. It supports real-time image processing, global CDN delivery, and management of projects and transform presets through natural language.1830 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with image generation and editing capabilities using OpenAI's GPT-image-1 model, with support for local or Supabase storage.3MIT
- FlicenseAqualityBmaintenanceEnables AI coding agents to control a local InvokeAI creative engine, supporting text-to-image, image-to-image, masked inpaint, upscaling, and full queue, model, gallery, board, and workflow management.131-
- AlicenseAqualityAmaintenanceEnables coding agents to generate and edit images using Gemini and OpenAI image models, saving files directly into the project with configurable providers, models, and security restrictions.353 npm1MIT