Solaire MCP
Click on "Install 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., "@Solaire MCPGenerate an image of a futuristic city skyline at night"
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.
Solaire MCP
A standalone Model Context Protocol (MCP) server that exposes YYLX gpt-image-2 image generation as the generate_image tool.
The server uses stdio, has no runtime npm dependencies, and returns generated images as inline MCP image content so clients such as Codex can display them directly in the conversation.
Why a standalone MCP repository?
The earlier implementation was bundled inside the solaire-plugins Codex Plugin. A bundled MCP is controlled from the Plugin page, but that page is not a general-purpose environment-variable editor.
This repository installs the image server as a normal standalone MCP server. It therefore appears in Codex's regular MCP Servers / Servers settings, where the server command, arguments, and environment variables can be managed separately from the Plugin.
Do not enable both the Plugin-bundled server and this standalone server with the same name. Doing so may create duplicate generate_image tools.
Related MCP server: Gemini Image Generation MCP
Features
MCP tool:
generate_imageModel:
gpt-image-2OpenAI-compatible image-generation endpoint
Streaming response support with completed-image preference
Inline image output
Environment-variable configuration
Optional macOS Keychain fallback
No third-party runtime dependencies
Requirements
Node.js 18 or newer
A YYLX-compatible base URL and API key
An MCP client that supports stdio servers, such as Codex
Install in Codex Desktop
Open Settings in Codex.
Open MCP Servers or Servers (the label can vary by Codex version).
Choose Add server.
Enter:
Field
Value
Name
yylx-gpt-imageCommand
npxArguments
-yandgithub:hsolaire/solaire-mcpas two argumentsAdd these environment variables in the same server settings:
Variable
Example
YYLX_BASE_URLhttps://app.yylx.ioYYLX_API_KEYyour local API key
Save the server, then restart Codex or start a new task.
Keep the API key in your local Codex settings. Never commit it or paste it into a chat.
Install with Codex CLI
Add the standalone server command:
codex mcp add yylx-gpt-image -- npx -y github:hsolaire/solaire-mcpThen add the two environment variables through Codex Desktop's server settings, or edit your local ~/.codex/config.toml:
[mcp_servers.yylx-gpt-image]
command = "npx"
args = ["-y", "github:hsolaire/solaire-mcp"]
[mcp_servers.yylx-gpt-image.env]
YYLX_BASE_URL = "https://app.yylx.io"
YYLX_API_KEY = "replace-this-locally"Codex also supports forwarding variables already present in the Codex process environment:
[mcp_servers.yylx-gpt-image]
command = "npx"
args = ["-y", "github:hsolaire/solaire-mcp"]
env_vars = ["YYLX_BASE_URL", "YYLX_API_KEY"]Run directly from GitHub
npx -y github:hsolaire/solaire-mcpFor reproducible installations, pin a release tag:
npx -y github:hsolaire/solaire-mcp#v0.1.0Corresponding Codex arguments:
args = ["-y", "github:hsolaire/solaire-mcp#v0.1.0"]Run from a local clone
git clone https://github.com/hsolaire/solaire-mcp.git
cd solaire-mcp
npm test
node ./bin/solaire-mcp.mjsA local Codex configuration can launch the cloned file directly:
[mcp_servers.yylx-gpt-image]
command = "node"
args = ["/absolute/path/to/solaire-mcp/bin/solaire-mcp.mjs"]
[mcp_servers.yylx-gpt-image.env]
YYLX_BASE_URL = "https://app.yylx.io"
YYLX_API_KEY = "replace-this-locally"Optional macOS Keychain setup
Environment variables configured in Codex are the recommended standalone setup. As an alternative on macOS, a local clone can store the values in Login Keychain:
npm run setup:keychain -- --base-url https://app.yylx.ioThe helper asks macOS Keychain to prompt for the API key, so the key is not added to shell history. Environment variables take priority over Keychain values.
Optional Keychain-related variables:
YYLX_KEYCHAIN_ACCOUNTYYLX_KEYCHAIN_BASE_URL_SERVICEYYLX_KEYCHAIN_API_KEY_SERVICE
Tool schema
generate_image
Argument | Required | Values / default |
| yes | non-empty string |
| no |
|
| no |
|
| no |
|
| no |
|
| no | integer from 1 to 4; default |
The native API sizes do not include 4K. For exact dimensions such as 3840x2160, generate with the closest native aspect ratio (1536x1024 for landscape), then resize with a separate image-processing step.
Update
Without a tag pin, npx -y github:hsolaire/solaire-mcp resolves the repository's current default branch. Restart the MCP server after updating.
For stable deployments, pin a release tag and change it intentionally when upgrading.
Uninstall
codex mcp remove yylx-gpt-imageYou can also remove the server from Codex Desktop's MCP server settings.
Troubleshooting
The server does not appear
Confirm the command is
npx.Confirm the arguments are two separate values:
-yandgithub:hsolaire/solaire-mcp.Restart Codex or start a new task after saving the server.
Run
codex mcp listto check discovery.
npx cannot download the repository
Check GitHub access, DNS/proxy settings, and that Node.js/npm are available:
node --version
npm --versionFor restricted networks, clone the repository once and use the local-file configuration above.
Credentials are missing
Set both YYLX_BASE_URL and YYLX_API_KEY in the standalone MCP server's environment-variable section. Do not add them to the repository or .env files that might be committed.
Duplicate image tools
Disable either the old Plugin-bundled yylx-gpt-image MCP or this standalone MCP. Keep only one enabled.
Image generation returns an upstream error
An MCP server can initialize and list tools even when the remote image API or key is unavailable. Verify the base URL and credential locally. A successful tools/list is not proof that a real image request will succeed.
Development
npm test
npm run check
npm pack --dry-runLicense
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server that wraps OpenAI's image generation and editing APIs, enabling text-to-image and image-to-image operations via tools.Last updated14737ISC
- Flicense-qualityCmaintenanceRemote MCP server that exposes a generate_image tool allowing Claude to generate images via the Google Gemini API.Last updated
- Flicense-qualityCmaintenanceMCP server that wraps OpenAI's gpt-image-2 image generation API, enabling image generation from text prompts, listing saved images, and loading images inline.Last updated1
- AlicenseAqualityBmaintenanceA security-first MCP server that generates images via OpenAI's image model (gpt-image-2) and returns them as MCP image content, usable from Claude Code, Claude Desktop, and other stdio MCP clients.Last updated1MIT
Related MCP Connectors
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Grok Imagine AI video generation
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hsolaire/solaire-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server