Atlas / MCP servers / mikeyny / Ai Image Gen

Ai Image GenSAFE

mcp/mikeyny/ai-image-gen
Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
1 1r · 0w · 0d
Transport
stdio
License
—
Stars
123
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

An MCP (Model Context Protocol) server implementation for generating images using Replicate's `black-forest-labs/flux-schnell` model.

Ideally to be used with Cursor's MCP feature, but can be used with any MCP client.

Features

  • Generate images from text prompts
  • Configurable image parameters (resolution, aspect ratio, quality)
  • Save generated images to specified directory
  • Full MCP protocol compliance
  • Error handling and validation

Prerequisites

  • Node.js 16+
  • Replicate API token
  • TypeScript SDK for MCP

Setup

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Add your Replicate API token directly in the code at src/imageService.ts by updating the apiToken constant:
// No environment variables are used since they can't be easily set in cursor
const apiToken = "your-replicate-api-token-here";
Note: If using with Claude, you can create a .env file in the root directory and set your API token there:
REPLICATE_API_TOKEN=your-replicate-api-token-here

Then build the project:

npm run build

Usage

To use with cursor:

  1. Go to Settings
  2. Select Features
  3. Scroll down to "MCP Servers"
  4. Click "Add new MCP Server"
  5. Set Type to "Command"
  6. Set Command to: node ./path/to/dist/server.js

API Parameters

Read from source at commit 1ac0c75ceba8OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add image-gen-mcp --env REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "image-gen-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "${REPLICATE_API_TOKEN}"
      }
    }
  }
}
03

Exposed tools (1)

1 read · 0 write · 0 destructive.

ToolRiskDescription
generate-imagereadGenerate an image based on a prompt
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (2)

LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, @types/node, dotenv, replicate, typescript, zod, ts-node
Why it matters. 7 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-07 · audit v0.4.1 · source sha 1ac0c75ceba8full audit observations/trust-audit/mcp-server/mikeyny__ai-image-gen.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-071ac0c75ceba8SAFEB89first audit
06

Questions

What tools does Ai Image Gen expose?

1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Ai Image Gen safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Ai Image Gen need?

It reads REPLICATE_API_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Ai Image Gen run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as image-gen-mcp at 1.0.0.

How current is this page?

The grade is for one exact copy of the source (1ac0c75ceba8), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement