MCP ExplorerExplorer

Primitive Go Mcp Server

@prasanthmjon a year ago
10 MIT
FreeCommunity
AI Systems
#golang#llm#mcp
A Go implementation of an MCP (Model Context Protocol) server tools

Overview

What is Primitive Go Mcp Server

primitive-go-mcp-server is a Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI’s DALL-E API. It serves as a tool for building MCP applications that can interact with large language models like Claude.

Use cases

Use cases for primitive-go-mcp-server include generating custom images for creative projects, enhancing content creation workflows, and providing visual representations for text-based prompts in applications that utilize large language models.

How to use

To use primitive-go-mcp-server, first build the server using the provided Go command. Then, configure your Claude Desktop by adding the server path and your OpenAI API key to the configuration file. After restarting Claude Desktop, you can prompt it to generate images based on your text descriptions.

Key features

Key features include the ability to generate images from text descriptions, automatic handling of save locations, configurable image dimensions, proper error handling and logging, and compatibility with Claude Desktop and other MCP clients.

Where to use

undefined

Content

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 ./main

Configuration

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers