Inliner MCP Server
Enables AI coding agents to manage image projects, generate and edit images, and check usage via Inliner.ai through natural language commands.
README
@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.
Install
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-server
OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp.inliner]
command = "npx"
args = ["-y", "@inliner/mcp-server"]
env = { INLINER_API_KEY = "your-key" }
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.
Tools
| Tool | Description |
|---|---|
generate_image_url |
Build a properly formatted Inliner image URL from description, dimensions, and project (project is optional; smart URL slug recommendation by default) |
generate_image |
Generate an image with full prompt + concise smart slug, and optionally save to a local file (project is optional) |
create_image |
Quick alias for generating images with sensible defaults (800x600 PNG) with smart slug recommendation |
edit_image |
Edit an existing image by URL or upload a local image, apply edit instructions, optionally resize, and save to a local file |
get_projects |
List all your Inliner projects with namespaces and settings |
create_project |
Create a new project (reserves namespace like 'my-project' for your account) |
get_project_details |
Get detailed project config: namespace, custom prompt, reference images |
get_usage |
Check remaining credits (base, premium, edit, infill, enhance) |
get_current_plan |
View current subscription plan and feature allocations |
list_images |
List generated images with optional project filter |
get_image_dimensions |
Get recommended dimensions for common use cases (hero, product, profile, etc.) |
Resources
| Resource | URI | Description |
|---|---|---|
| Inliner Guide | 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 config - Call
generate_image_urlwith the right namespace and dimensions - Output the
<img>tag with the correct URL, alt text, and loading attributes
Smart URL behavior:
- The server recommends concise slugs using
POST /url/recommend - Then generates with full prompt context using
POST /content/generateand the selected slug - This preserves rich prompt quality while producing readable/SEO-friendly URL paths
generate_image_urlresponses include the selected slug plus alternatives to help agents pick cleaner URLs when needed
"Generate a happy duck image and save it to ./images/duck.png"
The agent will:
- Call
generate_imagewith the description, dimensions, and output path - Poll 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" (using
create_imagealias)
The agent will:
- Call
create_imagewith just the description (defaults to 800x600 PNG) - Poll until ready and save to a sensible default location
- 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 file - Upload 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 files - Command-line argument:
--api-key=YOUR_KEY— Works for standalone testing, but may have parsing issues with some MCP clients
Links
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.