Skip to main content
Glama

snapgen-mcp

Unofficial Model Context Protocol server for snapgen.ai. It talks only to the snapgen API with your own key. No Higgsfield account, no extra subscription in this repo.

Not affiliated with snapgen.ai. API behavior follows docs.snapgen.ai. Premium is required on the snapgen side for API access.

Setup

  1. Create a key at https://snapgen.ai/profile/integration/api-keys

  2. Node.js 18+

git clone https://github.com/rmryv/snapgen-mcp.git
cd snapgen-mcp
npm install

Claude Desktop / Cursor / Claude Code config:

{
  "mcpServers": {
    "snapgen": {
      "command": "node",
      "args": ["/absolute/path/to/snapgen-mcp/src/index.js"],
      "env": {
        "SNAPGEN_API_KEY": "your-key"
      }
    }
  }
}

Related MCP server: media-gen-mcp

Tools

Tool

Endpoint

generate_image

POST /uapi/v1/generate_image (nano-banana-pro, nano-banana-2, nano-banana-2-lite)

generate_gpt_image

POST /uapi/v1/imagen/gpt-image-2

generate_grok_image

POST /uapi/v1/imagen/grok

generate_video

Veo, Seedance, and family paths under /uapi/v1/video-gen/{family}

get_generation

GET /uapi/v1/history/{uuid}

list_generations

GET /uapi/v1/histories

wait_for_generation

Polls history until status 2 or 3

snapgen_request

Any /uapi/ path, for models not wrapped yet

Auth header is x-api-key. Jobs are async. Status 1 is processing, 2 completed, 3 failed. Download media URLs; snapgen expires results.

Video family paths for minimax, grok, flux, kling, and vela follow the documented /uapi/v1/video-gen/{family} pattern. If a family 404s, use snapgen_request with the path from the matching docs page.

Available Tools

8 tools
generate_gpt_imageC

Generate an image with GPT Image 2. POST /uapi/v1/imagen/gpt-image-2. Premium plan required by snapgen.

Inputs: prompt (required), mode, file_urls, background, +3 more.

generate_grok_imageC

Generate an image with Grok. POST /uapi/v1/imagen/grok.

Inputs: prompt (required), mode, file_urls, num_result, +2 more.

generate_imageB

Generate an image with snapgen nano-banana models. POST /uapi/v1/generate_image. Returns a job; poll with get_generation.

Inputs: prompt (required), model, style, file_urls, +3 more.

generate_videoC

Submit a video job. family selects the documented path. Returns a uuid to poll with get_generation.

Inputs: model (required), prompt (required), mode, family, +4 more.

get_generationB

Fetch one generation by uuid. GET /uapi/v1/history/{uuid}. status 1 processing, 2 completed, 3 failed.

Inputs: uuid (required).

list_generationsC

List recent generations. GET /uapi/v1/histories.

Inputs: page, filter_by, items_per_page.

snapgen_requestC

Call any snapgen path under /uapi. Use when a model ships before this server is updated. path must start with /uapi/.

Inputs: path (required), query, fields, method.

wait_for_generationB

Poll a generation until it completes, fails, or the timeout is hit. Does not resubmit the job.

Inputs: uuid (required), timeout_seconds, interval_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    The three image generators are distinguished by model (nano-banana vs GPT vs Grok), though the generic name 'generate_image' for nano-banana is slightly misleading next to 'generate_gpt_image'/'generate_grok_image'. get_generation vs wait_for_generation are separable (fetch once vs poll to completion), and snapgen_request is a documented escape hatch, but it technically overlaps with every other tool.

    Naming Consistency4/5

    Strong verb_noun pattern throughout (generate_*, get_generation, list_generations, wait_for_generation). The only deviation is snapgen_request, which breaks the verb_noun convention but is still readable and clearly scoped as a fallback.

    Tool Count5/5

    Eight tools is well within the sweet spot, with generation, polling, retrieval, listing, and a documented catch-all each earning a distinct slot. No redundancy that would justify trimming.

    Completeness4/5

    Full lifecycle is covered: submit (generate_image/video), poll (wait_for_generation), fetch (get_generation), and list (list_generations). No delete/cancel operation exists, but snapgen_request provides an escape hatch for uncovered endpoints like cancellation.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers