primitive-go-mcp-server
A Go implementation of an MCP (Model Context Protocol) server tools
Documentation
MCP Image Generation Server
A Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI's DALL-E API. This server demonstrates how to build MCP tools that can be used by Large Language Models like Claude.
Features
- Generate images from text descriptions
- Automatic handling of save locations
- Configurable image dimensions
- Proper error handling and logging
- Works with Claude Desktop and other MCP clients
Prerequisites
- Go 1.19 or higher
- OpenAI API key
- Claude Desktop (for testing)
Build command
go build -o ./bin/imagegen-go ./mainConfiguration
Add this server to your Claude Desktop configuration at `~/Library/Application Support/Claude/claude_desktop_config.json`:
{
"mcpServers": {
"imagegen-go": {
"command": "/path/to/imagegen-go/bin/imagegen-go",
"env": {
"OPENAI_API_KEY": "your-api-key",
"DEFAULT_DOWNLOAD_PATH":"/path/to/downloads"
}
}
}
}Usage
1. Build the server using the command above
2. Configure Claude Desktop with your server path and API key
3. Restart Claude Desktop
4. Ask Claude to generate images!
Example prompt:
"Can you generate an image of a riverside home in cinematic style?"
Implementation Details
This server implements the MCP tools capability and provides a single tool:
- `generate-image`: Generates an image from a text prompt using OpenAI's DALL-E
License
MIT License
Frequently asked questions
What is primitive-go-mcp-server?
primitive-go-mcp-server is A Go implementation of an MCP (Model Context Protocol) server tools
How do I install primitive-go-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is primitive-go-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/prasanthmj/primitive-go-mcp-server and has 11 stars.
Related MCP tools
Universal MCP-Server for your Databases optimized for LLMs and AI-Agents. Go-based implementation.
:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-gra...
Query anything (GitHub, Notion, +40 more) with SQL and let LLMs (ChatGPT, Claude) connect to using MCP Go-based implementation. Trusted by 1300+ developers.
ToolHive makes deploying MCP servers easy, secure and fun Go-based implementation. Trusted by 1300+ developers. Trusted by 1300+ developers.
The most powerful MCP Slack Server with no permission requirements, Apps support, multiple transports Stdio and SSE, DMs, Group DMs and smart history fetch l...
A fully functional MCP server and CLI for YouTube Go-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP