Artifex MCP
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., "@Artifex MCPGenerate a surreal landscape with floating islands and waterfalls"
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.
⚠️ UNOFFICIAL TOOL: This is an independent, community-developed MCP server. It is not affiliated with, endorsed by, or supported by Google or OpenAI. Use at your own risk.
MCP (Model Context Protocol) server for AI image generation supporting multiple providers:
Antigravity (default) - Google's Gemini 3 Pro Image model
OpenAI - DALL-E 3
Features
Multi-Provider Support: Switch between Antigravity and OpenAI with a simple parameter
Text-to-Image: Generate images from text descriptions
Image Editing: Modify existing images with text instructions (Antigravity only)
Multiple Outputs: Generate up to 4 image variations per request (Antigravity only)
Character Consistency: Session-based generation for consistent characters (Antigravity only)
Multiple Aspect Ratios: 1:1, 16:9, 9:16, 3:4, 4:3, and more
Related MCP server: Imagen MCP Server
Installation
Run directly with npx (recommended):
npx artifex-mcpOr install globally:
npm install -g artifex-mcpAuthentication
Antigravity (Default)
npx artifex-mcp --loginThis will:
Open your browser for Google OAuth
Store credentials securely in
~/.config/artifex-mcp/auth.json
OpenAI
Set the OPENAI_API_KEY environment variable:
export OPENAI_API_KEY=sk-...Usage
As an MCP Server
Add to your MCP client configuration:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"artifex": {
"command": "npx",
"args": ["artifex-mcp"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}OpenCode:
{
"mcp": {
"artifex": {
"type": "local",
"command": ["npx", "artifex-mcp"],
"enabled": true,
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}Environment Variables
Variable | Description | Default |
| Default provider to use |
|
| Default model for the provider |
|
| API key for OpenAI provider | - |
Provider Selection
Use the model parameter with provider:model format:
# Use Antigravity (default)
generate_image({ prompt: "a cat" })
# Use OpenAI DALL-E 3
generate_image({ prompt: "a cat", model: "openai:dall-e-3" })
# Use a specific Antigravity model
generate_image({ prompt: "a cat", model: "antigravity:gemini-3-pro-image" })Available Tools
generate_image
Generate images from text prompts.
Parameter | Type | Required | Default | Description |
| string | Yes | - | Image description or editing instruction |
| string | No | env default | Provider and model in |
| enum | No | "1:1" | 1:1, 16:9, 9:16, 3:4, 4:3, 2:3, 3:2, 4:5, 5:4, 21:9 |
| string | No | cwd | Directory to save images |
| string | No | auto | Custom filename |
| string | No | - | Path to image for editing (Antigravity only) |
| number | No | 1 | Number of images 1-4 (Antigravity only) |
| string | No | - | For character consistency (Antigravity only) |
Examples:
# Default provider (Antigravity)
Generate a cyberpunk cityscape at night
# Using OpenAI
Generate a cyberpunk cityscape at night, model: openai:dall-e-3
# Multiple images (Antigravity only)
Generate 4 variations of a majestic dragon, aspect ratio 16:9
# Character consistency (Antigravity only)
Create a hero named Luna, session_id: lunaauth_status
Check authentication status for a provider.
Parameter | Type | Required | Description |
| string | No | Provider to check (default: antigravity) |
auth_login
Get instructions for authenticating with a provider.
auth_logout
Delete stored credentials for a provider.
quota_status
Check rate limit and quota status for a provider.
Provider Capabilities
Feature | Antigravity | OpenAI |
Text-to-Image | ✅ | ✅ |
Image Editing | ✅ | ❌ |
Multiple Images | ✅ (1-4) | ❌ (1 only) |
Sessions | ✅ | ❌ |
Aspect Ratios | ✅ | ✅ (limited) |
Auth Type | Google OAuth | API Key |
File Locations
Purpose | Location |
Credentials |
|
Sessions |
|
Generated Images | Current working directory (or custom path) |
Troubleshooting
"Not authenticated" error (Antigravity)
npx artifex-mcp --login"OpenAI API key not found" error
Set the environment variable:
export OPENAI_API_KEY=sk-...Rate limit exceeded
Wait for the time indicated in the error message. Rate limits are enforced per-account.
Unsupported feature error
Some features are only available on specific providers. For example:
session_idonly works with Antigravityinput_image(editing) only works with Antigravitycount > 1only works with Antigravity
License
MIT
Intended Use
Personal / internal development only
Respect quotas and data handling policies
Not for production services or bypassing intended limits
Warning
By using this plugin, you acknowledge:
Terms of Service risk — This approach may violate ToS of AI model providers
Account risk — Providers may suspend or ban accounts
No guarantees — APIs may change without notice
Assumption of risk — You assume all legal, financial, and technical risks
Disclaimer
Not affiliated with Google or OpenAI. This is an independent open-source project.
"Antigravity", "Gemini", "Google Cloud", "Google", "OpenAI", and "DALL-E" are trademarks of their respective owners.
Available Tools
5 toolsauth_loginB
Get instructions for authenticating with an image generation provider
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Provider to authenticate. Options: antigravity, openai. Default: antigravity |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosure. It says 'get instructions' but doesn't explicitly state that this operation is read-only, makes no state changes, or what the response format is. The name 'auth_login' could mislead an agent into expecting an active login action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence, no filler, front-loaded with the core action. Exceptionally concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with a single optional parameter and no output schema, the description is minimal. It lacks context about how instructions are returned (e.g., a URL, steps), how the provider parameter affects the instructions, or the relationship to other auth tools. Adequate but with gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers the lone parameter (provider) with options and default, so the baseline is 3. The tool description adds minimal semantic value beyond the schema, just indicating the provider is for image generation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool provides authentication instructions for an image generation provider, using a specific verb ('get') and resource. It distinguishes from siblings like auth_status (check status) and auth_logout (end session) by focusing on instructions, though it doesn't mention what form the instructions take.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus auth_status or auth_logout. The description doesn't mention prerequisites (e.g., need an account) or alternative scenarios, leaving the agent to infer usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
auth_logoutA
Log out and delete stored credentials for an image generation provider
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Provider to log out. Options: antigravity, openai. Default: antigravity |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Since no annotations are provided, the description carries the burden of disclosing behavior. It explicitly states the destructive side effect of deleting stored credentials, which is the key behavioral trait. It could add more detail about session revocation or irreversibility, but the core effect is clearly disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, focused sentence that starts with the primary action and includes the key object and context. No filler or redundant information, making it highly concise and effective.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one optional parameter and no output schema, the description provides sufficient context: it defines the action, the affected resource, and the domain (image generation provider). It could mention the default provider, but that is already in the schema. Overall, the description is complete for the tool's complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already provides full coverage for the only parameter (provider) with options and default. The description does not add additional semantic detail beyond the schema, so a baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function with specific verbs ('log out', 'delete stored credentials') and identifies the resource ('an image generation provider'). It distinguishes itself from sibling tools like auth_login and auth_status by focusing on the logout/deletion action.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like auth_status or auth_login. The description does not mention exclusions, prerequisites, or typical scenarios, leaving the agent to infer usage from the tool name and basic action.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
auth_statusA
Check authentication status for an image generation provider
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Provider to check. Options: antigravity, openai. Default: antigravity |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. 'Check authentication status' implies a read-only, non-mutating operation, but it doesn't disclose what the status entails, potential error conditions, or whether it makes network calls. Minimal behavioral disclosure, though the operation type is clear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One sentence, direct, and front-loaded. No filler or redundant phrasing. The description is immediately understandable and appropriately sized for the tool's simplicity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple status-check tool with no output schema, the description is adequate but doesn't explain the return format or what 'status' conveys, which an agent might need to interpret results. Given the tool's simplicity and full schema coverage, it's minimally viable but leaves interpretive gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already fully documents the only parameter (provider) with description and default (100% coverage), so the description adds little parameter-level meaning beyond the domain context 'image generation provider'. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description explicitly states the action ('check') and resource ('authentication status for an image generation provider'), clearly distinguishing it from sibling tools like auth_login/auth_logout which perform auth changes. The verb+resource structure is specific and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use guidance or alternatives are mentioned, but the context ('for an image generation provider') implies it is the status check companion to auth_login/auth_logout. The description doesn't state exclusions or conditions for use, so it's implied rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_imageA
Generate images using AI. Supports multiple providers (Antigravity/Gemini, OpenAI DALL-E, etc.). Use 'model' parameter to specify provider:model format.
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of images to generate (1-4). Default: 1 | |
| model | No | Model specification in 'provider:model' format (e.g., 'openai:dall-e-3', 'antigravity:gemini-3-pro-image'). Defaults to DEFAULT_IMAGE_PROVIDER:DEFAULT_IMAGE_MODEL environment variables, or 'antigravity:gemini-3-pro-image'. | |
| prompt | Yes | Description of the image to generate or editing instruction | |
| file_name | No | Custom filename (with or without extension) | |
| session_id | No | Session ID for character consistency across generations (Antigravity only) | |
| input_image | No | Path to an existing image for editing | |
| output_path | No | Custom directory for saving images. Default: current working directory | |
| aspect_ratio | No | Aspect ratio: 1:1 (default), 16:9, 9:16, 3:4, 4:3, etc. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It fails to mention side effects like file creation or modification (implied by output_path), authentication requirements (despite auth sibling tools), or return values. The brief description provides minimal behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, immediately states the main purpose, and includes useful provider context without fluff. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 8 parameters, no output schema, and no annotations, the description is too sparse. It does not explain what the tool returns (e.g., saved file paths) or mention editing capability via input_image. For a mutation tool that likely creates files, this is a significant gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds a small hint about using the model parameter in provider:model format, but this is already covered in the schema's model parameter description. No additional semantic value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states 'Generate images using AI' with a specific verb and resource, clearly distinguishing it from sibling auth/quota tools. It also mentions multiple providers and the model parameter format, reinforcing its function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies usage for image generation, and the sibling tools are all auth/quota related, so there is no ambiguity about when to use this tool. However, it does not explicitly discuss alternatives or exclusions, which keeps it from a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
quota_statusA
Check rate limit and quota status for an image generation provider
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Provider to check. Options: antigravity, openai. Default: antigravity |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden for behavioral disclosure. It correctly implies a read-only operation ('Check' rather than mutate), but does not disclose authentication requirements, possible error conditions, or what the returned status data represents. Minimal but adequate for a simple status check.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. Every word contributes meaning, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one optional parameter, no nested objects, no output schema), the description is nearly sufficient. However, it omits what the response will contain (e.g., numeric limits, reset times), which would help the agent interpret the result. It's adequate but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% because the sole parameter 'provider' is documented with allowed options and default. The description adds no extra meaning beyond the schema, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Check') and clearly identifies the resource ('rate limit and quota status') and scope ('for an image generation provider'). It distinguishes itself from sibling tools like generate_image (which generates) and auth tools (which handle authentication).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context—checking rate limits and quotas for a provider—but does not explicitly state when to use it versus alternatives or mention exclusions. It's clear enough for typical use (e.g., before generating an image), but lacks explicit 'when not to use' guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v1.0.2- First observed
auth_login - First observed
auth_logout - First observed
auth_status - First observed
generate_image - First observed
quota_status
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: generate_image creates images, while auth_status, auth_login, auth_logout handle different aspects of authentication (status, instructions, and logout), and quota_status checks rate limits. There is minimal potential for confusion due to clear descriptions.
Tool names generally follow a pattern: action tools like generate_image and auth_login/logout use verb_noun, while status tools use domain_status (auth_status, quota_status). The only minor inconsistency is that generate_image lacks a domain prefix unlike the auth/quota tools, but the convention is still readable and predictable.
With 5 tools, the server is well-scoped for image generation. It provides essential functionality: generation, authentication management, and quota checking, without unnecessary bloat.
The core image generation workflow is covered, alongside authentication and quota monitoring. A notable gap is the lack of a tool to list available models/providers, which would help users understand the 'model' parameter for generate_image, but it is a minor omission.
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
AI image + video generation for agents: --flag prompt DSL, async generate/poll, x402 pay-per-use.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables text-to-image generation, image editing, and multi-image composition using Google's Gemini 2.5 Flash Image API. Supports flexible aspect ratios and character consistency across generations.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to generate high-quality images using Google's Gemini and Imagen models with support for multiple aspect ratios, dynamic model selection, and direct file saving capabilities.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI image generation through multiple providers including OpenAI GPT-Image-1, Google Imagen 4, Gemini 2.5 Flash (Nano Banana), Flux 1.1, Qwen Image, and SeedDream-4, supporting various formats, sizes, and advanced features like background control and seed-based reproduction.196 npm12MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-assisted image generation from text prompts using multiple providers (Tencent Hunyuan, OpenAI DALL-E 3, and Doubao) with support for various artistic styles, resolutions, and negative prompts through a unified interface.1MIT