Atlas / MCP servers / shinpr / mcp-image

mcp-imageSAFE

mcp/shinpr/mcp-image

MCP server for AI image generation and editing with automatic prompt optimization and quality presets. Supports Nano Banana (Gemini), OpenAI GPT Image, and BytePlus Seedream.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
1 0r · 1w · 0d
Transport
stdio
License
MIT
Stars
172
01

Overview

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

Generate and edit images from Codex, Cursor, Claude Code, or any MCP client. mcp-image adds visual direction to your request before sending it to Gemini, OpenAI, or BytePlus Seedream.

[](https://www.npmjs.com/package/mcp-image) [](https://www.npmjs.com/package/mcp-image) [](https://opensource.org/licenses/MIT)

Tell it what image to create or what to change in an existing image, and what it is for. The result is saved to disk and returned to your assistant.

What It Does

Before generating an image, mcp-image rewrites short requests into more specific prompts. It keeps what you asked for and fills in details such as composition, lighting, and camera angle. The more detail you provide, the less it changes.

You ask:

"A photo of a roast chicken dinner for a recipe site. It should look like it was actually cooked, and it should be partway through being carved so you can tell how juicy it is."

mcp-image sends to the image model:

"... a freshly roasted whole chicken resting on a rustic, seasoned wooden carving board. The chicken features deeply bronzed, blistered, and crispy skin ... It is partway carved, with one breast cleanly sliced open to reveal tender, steaming-hot white meat glistening with natural juices pooling slightly onto the board ... shallow depth of field with a softly blurred background."

Generated with Gemini using the default `fast` quality preset.

What carried through:

  • for a recipe site: one clear subject, with everything else kept subordinate
  • actually cooked: blistered, uneven browning, rising steam, and drippings on the knife
  • partway through being carved: one breast sliced open, with the cut piece still re
Read from source at commit df89b2e7f45eOBSERVED · 2026-10-12
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 (npm)
claude mcp add mcp-image --env GEMINI_API_KEY=${GEMINI_API_KEY} --env OPENAI_API_KEY=${OPENAI_API_KEY} --env ARK_API_KEY=${ARK_API_KEY} -- npx -y [email protected]
03

Exposed tools (1)

0 read · 1 write · 0 destructive.

ToolRiskDescription
generate_imagewriteGenerate a new image from a text prompt or edit and combine reference images using inputImagePaths. Saves the result and returns a file resource.
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 codeWARN
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
found

Findings (9)

MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
src/business/__tests__/responseBuilder.test.ts:167
const secret = 'sk-proj-ABCDEF123456789'
LOWInformation disclosure · disclose.log_secret · CWE-209, CWE-532
src/utils/__tests__/logger.test.ts:148
logger.info('config', `Starting service with ${name}=${secret}`)
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
src/utils/__tests__/security.test.ts:111
const inputPath = './output/../../../root/.ssh/id_rsa'
Why it matters. touches a credential store
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/api/__tests__/geminiClient.test.ts:2
import { errorWithCode } from '../../tests/helpers/inspect'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/api/__tests__/geminiClient.test.ts:3
import type { Config } from '../../utils/config'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/api/__tests__/geminiClient.test.ts:4
import { GeminiAPIError, NetworkError } from '../../utils/errors'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/api/__tests__/geminiTextClient.test.ts:2
import type { Config } from '../../utils/config'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/api/__tests__/geminiTextClient.test.ts:3
import { GeminiAPIError, NetworkError } from '../../utils/errors'
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@google/genai, @modelcontextprotocol/sdk, openai, @biomejs/biome, @types/node, dpdm, husky, knip
Why it matters. 11 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha df89b2e7f45efull audit observations/trust-audit/mcp-server/shinpr__mcp-image.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-12df89b2e7f45eSAFEB89first audit
06

Questions

What is the mcp-image MCP server?

MCP server for AI image generation and editing with automatic prompt optimization and quality presets. Supports Nano Banana (Gemini), OpenAI GPT Image, and BytePlus Seedream.

What tools does mcp-image expose?

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

Is mcp-image 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 mcp-image need?

It reads ARK_API_KEY, GEMINI_API_KEY and OPENAI_API_KEY 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 mcp-image run?

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

How current is this page?

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

Advertisement