Overview
The mcp_generate_images project is an AI image generation service designed for integration with the Cursor MCP server, allowing users to generate high-quality images based on specified parameters.
To use this service, set up your Python environment, install the necessary dependencies, configure your Together AI API key, and run the service in either development or production mode. You can then use it within the Cursor IDE by invoking the MCP service.
- High-quality image generation capabilities - Automatic retry and error handling - Support for batch generation of multiple images - Complete path and permission validation - Detailed error messages - Asynchronous processing support
- Generating custom images for applications or websites.
- Creating visual content for marketing and advertising.
- Assisting developers in generating images for testing and development purposes.
Add to your AI client
Use these steps to connect AI 图像生成服务 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-generate-images-chenyeju295": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-generate-images-chenyeju295": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-generate-images-chenyeju295": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-generate-images-chenyeju295": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-generate-images-chenyeju295": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-generate-images-chenyeju295": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-generate-images-chenyeju295"
]
}
}
}FAQ
What programming languages are supported?
The service is built using Python and requires a Python 3.10+ environment.
Is there a limit to the number of images I can generate?
The service supports batch generation, but the maximum number of images per batch is configurable.
How do I troubleshoot issues with the service?
Check if the service is running, verify the save path, ensure network connectivity, and confirm that the API key is valid.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2643,"uuid":"2b85013c-e28f-47f0-aab6-e9deb7e95140","name":"mcp_generate_images","title":"AI 图像生成服务","description":"可用于cursor 集成 mcp server","avatar_url":"https://avatars.githubusercontent.com/u/147475251?v=4","created_at":"2025-03-13T09:21:33.396Z","updated_at":"2025-03-13T09:27:52.121Z","status":"created","author_name":"chenyeju295","author_avatar_url":"https://avatars.githubusercontent.com/u/147475251?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/chenyeju295/mcp_generate_images","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/chenyeju295/mcp_generate_images/raw/master/images/image.png","type":null,"metadata":"{\"star\":\"15\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-28 16:27:36\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]