together-ai-image-server
Together AI Image Server is a TypeScript-based server that enables image generation using the Together AI API via the Model Context Protocol. It provides an interface for MCP-compatible assistants to create images from text prompts with customizable parameters.
Together AI Image Server
A TypeScript-based MCP server for generating images using Together AI API.
Overview
This server provides a simple interface to generate images using Together AI's models via MCP protocol. It supports Claude and other MCP-compatible assistants to create images from text prompts.
Features
- Generate images from text prompts
- Required: text prompt
- Optional: control steps, image count
- Returns: URLs, local paths to images
Prerequisites
- Node.js v14+
- Together AI API key
Installation
Clone the repository and install dependencies.
Configuration
Set Together AI API key as an environment variable or in a .env
file.
Development
Build the server or use auto-rebuild for development.
Debugging
Use MCP Inspector for debugging.
API Reference
generate_image
Parameters: prompt
(required), steps
(optional), n
(optional). Returns JSON with image_urls
and local_paths
.
License
MIT license.
Contributing
Contributions are welcome, submit a Pull Request.