MCP Image Generation Server
A Go implementation of an MCP (Model Context Protocol) server tools
Overview
The MCP Image Generation Server is a Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI's DALL-E API, demonstrating how to build MCP tools for Large Language Models like Claude.
To use the server, build it using the provided command, configure it with your Claude Desktop, and then prompt Claude to generate images based on your text descriptions.
- Generate images from text descriptions - Automatic handling of save locations - Configurable image dimensions - Proper error handling and logging - Compatibility with Claude Desktop and other MCP clients
- Generating artistic images from user prompts
- Creating visual content for presentations or reports
- Assisting in creative projects by providing visual representations of ideas
Add to your AI client
Use these steps to connect MCP Image Generation Server 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": {
"primitive-go-mcp-server-prasanthmj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}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": {
"primitive-go-mcp-server-prasanthmj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"primitive-go-mcp-server-prasanthmj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"primitive-go-mcp-server-prasanthmj": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"primitive-go-mcp-server-prasanthmj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"primitive-go-mcp-server-prasanthmj": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-primitive-go-mcp-server-prasanthmj"
]
}
}
}FAQ
What are the prerequisites for using the server?
You need Go 1.19 or higher, an OpenAI API key, and Claude Desktop for testing.
How do I configure the server?
You need to add the server details to your Claude Desktop configuration file.
Can I use this server with other applications?
Yes, it works with other MCP clients as well.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1143,"uuid":"cf07efde-c25e-40b6-adea-04d552b07d54","name":"primitive-go-mcp-server","title":"MCP Image Generation Server","description":"A Go implementation of an MCP (Model Context Protocol) server tools","avatar_url":"https://avatars.githubusercontent.com/u/968329?v=4","created_at":"2025-01-28T02:34:33.457Z","updated_at":"2025-02-23T07:20:07.987Z","status":"created","author_name":"prasanthmj","author_avatar_url":"https://avatars.githubusercontent.com/u/968329?v=4","tags":"golang,mcp,llm","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/prasanthmj/primitive-go-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"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"}]]}]