Skip to main content
Glama

⚠️ 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-mcp

Or install globally:

npm install -g artifex-mcp

Authentication

Antigravity (Default)

npx artifex-mcp --login

This will:

  1. Open your browser for Google OAuth

  2. 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_IMAGE_PROVIDER

Default provider to use

antigravity

DEFAULT_IMAGE_MODEL

Default model for the provider

gemini-3-pro-image

OPENAI_API_KEY

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

prompt

string

Yes

-

Image description or editing instruction

model

string

No

env default

Provider and model in provider:model format

aspect_ratio

enum

No

"1:1"

1:1, 16:9, 9:16, 3:4, 4:3, 2:3, 3:2, 4:5, 5:4, 21:9

output_path

string

No

cwd

Directory to save images

file_name

string

No

auto

Custom filename

input_image

string

No

-

Path to image for editing (Antigravity only)

count

number

No

1

Number of images 1-4 (Antigravity only)

session_id

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: luna

auth_status

Check authentication status for a provider.

Parameter

Type

Required

Description

provider

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

~/.config/artifex-mcp/auth.json

Sessions

~/.cache/artifex-mcp/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_id only works with Antigravity

  • input_image (editing) only works with Antigravity

  • count > 1 only 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 tools
auth_loginB

Get instructions for authenticating with an image generation provider

ParametersJSON Schema
NameRequiredDescriptionDefault
providerNoProvider to authenticate. Options: antigravity, openai. Default: antigravity

TDQS

B3.1/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
providerNoProvider to log out. Options: antigravity, openai. Default: antigravity

TDQS

A3.8/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines2/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
providerNoProvider to check. Options: antigravity, openai. Default: antigravity

TDQS

A3.7/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
countNoNumber of images to generate (1-4). Default: 1
modelNoModel 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'.
promptYesDescription of the image to generate or editing instruction
file_nameNoCustom filename (with or without extension)
session_idNoSession ID for character consistency across generations (Antigravity only)
input_imageNoPath to an existing image for editing
output_pathNoCustom directory for saving images. Default: current working directory
aspect_ratioNoAspect ratio: 1:1 (default), 16:9, 9:16, 3:4, 4:3, etc.

TDQS

A3.6/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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

ParametersJSON Schema
NameRequiredDescriptionDefault
providerNoProvider to check. Options: antigravity, openai. Default: antigravity

TDQS

A3.9/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 5 tool updatesv1.0.2
    • First observedauth_login
    • First observedauth_logout
    • First observedauth_status
    • First observedgenerate_image
    • First observedquota_status

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

With 5 tools, the server is well-scoped for image generation. It provides essential functionality: generation, authentication management, and quota checking, without unnecessary bloat.

Completeness4/5

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

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers