MCP TemplateIO - Image Generation Tool
A Model Context Protocol (MCP) server built with mcp-framework that provides an image generation tool using Templated.io.
Overview
This template provides a starting point for building MCP servers with custom tools. It includes an example tool and instructions on how to add more tools, develop them, and publish them to npm. This README will guide you through the process of setting up, developing, and deploying your own MCP server.
Quick Start
Project Structure
Available Tools
Templated Image Generator
This tool generates an image based on a template, given text and image URLs, using the Templated.io API.
Input Parameters:
templateId
: ID of the Templated.io template to usephotoBgImageUrl
: URL for the image to place in the "photo-bg" layer.bgYellowImageUrl
: URL for the image to place in the "bg-yellow" layer.buildText
: Text content for the "build" text layer.
Tool Development
Example tool structure:
Adding Components
The project comes with an example tool in src/tools/ExampleTool.ts
and the TemplatedImageTool.ts
. You can add more tools using the CLI:
Publishing to npm
- Update your package.json:
- Ensure
name
is unique and follows npm naming conventions - Set appropriate
version
- Add
description
,author
,license
, etc. - Check
bin
points to the correct entry file
- Ensure
- Build and test locally:
- Login to npm (create account if necessary):
- Publish your package:
After publishing, users can add it to their claude desktop client (read below) or run it with npx
Using with Claude Desktop
Local Development
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
After Publishing
GET YOUR API KEY HERE: https://app.templated.io/api-integration?template=4ae9a86b-4ecd-44ee-aebd-7c5a49c16969
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Building and Testing
- Make changes to your tools
- Run
npm run build
to compile - The server will automatically load your tools on startup
Learn More
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Templated.io를 사용하여 이미지 생성 도구를 제공하는 모델 컨텍스트 프로토콜 서버로, 사용자는 텍스트와 이미지 레이어가 있는 템플릿을 기반으로 사용자 정의 이미지를 생성할 수 있습니다.
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.Last updated -144
- AsecurityAlicenseAqualityA Model Context Protocol server that provides image generation capabilities using Google's Gemini 2 API, allowing users to generate multiple images with customizable parameters like prompts, aspect ratios, and person generation settings.Last updated -1333MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables generating and editing images using OpenAI's gpt-image-1 model, allowing AI assistants to create and modify images from text prompts.Last updated -254515MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to generate images using Leonardo AI, supporting both HTTP and stdio communication modes.Last updated -1