ai-image-gen-mcp
The project is an MCP server designed for generating images using a model from Replicate. It allows configuring image parameters, saving outputs to a directory, and includes robust error handling. Compatible with MCP clients like Cursor, it ensures full compliance with the MCP protocol.
What is the purpose of the Image Generation MCP Server?
The server is designed to generate images from text prompts using the 'black-forest-labs/flux-schnell' model, with configurable parameters and full MCP protocol compliance.
What are the prerequisites for setting up the server?
You need Node.js 16+, a Replicate API token, and the TypeScript SDK for MCP.
How do I configure the server to use my Replicate API token?
You can add your Replicate API token directly in the code at 'src/imageService.ts' by updating the 'apiToken' constant.
What image parameters can be configured?
You can configure resolution, aspect ratio, quality, output format, and more.
How does the server handle errors?
The server handles validation errors, API errors, server errors, and unknown errors, providing detailed error information in each response.