AI image generation and editing MCP server with context-aware prompt optimization, 24 editing techniques, and session undo/redo
Imgx MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Imgx MCP directly instead of describing what you should do. AI image generation and editing MCP server with context-aware prompt optimization, 24 editing techniques, and session undo/redo.
AI image generation and editing MCP server. Works with Claude Code, Gemini CLI, Cursor, Windsurf, and any MCP-compatible tool.
Once Imgx MCP is connected, these are the calls the assistant has available:
generate_image — Generate an image from a text promptedit_image — Edit an existing image with text instructionsedit_last — Edit the last generated/edited image (no input path needed)undo_edit — Undo the last edit, reverting to the previous image in the sessionredo_edit — Redo a previously undone editedit_history — Show all sessions and their edit history with metadataswitch_session — Switch to a different editing sessionclear_history — Clear project history (optionally delete image files)set_output_dir — Change the default output directory (optionally move existing files)list_providers — List available providers and capabilitiesDetected — /.imgx/Usage — The Usage tool exposed by this serverhas on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
You will need 5 environment variables: GEMINI_API_KEY, OPENAI_API_KEY, IMGX_PROJECT_ROOT, YOUR_GEMINI_API_KEY, YOUR_OPENAI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of file and storage access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Imgx MCP's toolset — generate_image, edit_image, edit_last and 11 more — is a fair guide to whether it matches your workflow. It is maintained by somacoffeekyoto; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| generate_image | Generate an image from a text prompt |
| edit_image | Edit an existing image with text instructions |
| edit_last | Edit the last generated/edited image (no input path needed) |
| undo_edit | Undo the last edit, reverting to the previous image in the session |
| redo_edit | Redo a previously undone edit |
| edit_history | Show all sessions and their edit history with metadata |
| switch_session | Switch to a different editing session |
| clear_history | Clear project history (optionally delete image files) |
| set_output_dir | Change the default output directory (optionally move existing files) |
| list_providers | List available providers and capabilities |
| Detected | <project-root>/.imgx/ |
| Usage | The Usage tool exposed by this server. |
| Configuration | The Configuration tool exposed by this server. |
| Skill | Delete the image-generation/ directory from .claude/skills/ or ~/.claude/skills/. |
{
"mcpServers": {
"imgx": {
"command": "npx",
"args": ["--package=imgx-mcp", "-y", "imgx-mcp"],
"env": { "GEMINI_API_KEY": "your-key" }
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| IMGX_PROJECT_ROOT | Configuration value read at startup. | Optional |
| YOUR_GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| YOUR_OPENAI_API_KEY | Credential the server authenticates with. | Yes |
Scoped local file access — read, write, search and reorganise files in directories you explicitly allow.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Chat with your second brain — search, read and write vault notes through the Local REST API.
Connects AI models to an Obsidian knowledge base for direct access and manipulation of notes and folders.