Cover image
Try Now
2025-01-03

Une implémentation GO d'un serveur MCP (modèle de contexte de modèle)

3 years

Works with Finder

1

Github Watches

3

Github Forks

6

Github Stars

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

    Reviews

    5 (1)
    Avatar
    user_zi880Td9
    2025-04-17

    I've been using the primitive-go-mcp-server from prasanthmj and I'm thoroughly impressed. The server is robust and reliable, perfectly suited for my needs as a loyal MCP application user. The setup process is smooth, thanks to the detailed instructions provided. This project truly showcases prasanthmj's expertise and dedication. I highly recommend checking it out if you're looking for a high-quality MCP server solution. Visit the GitHub link for more information: https://github.com/prasanthmj/primitive-go-mcp-server.