text-image-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@text-image-mcprender this markdown as an image: Helloworld"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Text-Image MCP Server
A lightweight Model Context Protocol (MCP) server built with Python to allow agentic AI applications to quickly generate stylized imagery from text and code.
Features
Pygments Code Highlighting: Automatically formats programming languages (JSON, Python, HTML, bash, etc.) using intelligent token mapping and syntax-coloring right out of the box.
Agent-Driven Markdown (English Processor): Native lightweight parser detects unstructured text and allows agents to explicitly define importance by parsing
**bold**strings and`inline code blocks`independently.Embedded Typography: Includes bundled instances of Fira Sans and Fira Mono to produce stunning desktop-grade visual representation.
Related MCP server: openai-gpt-image-1-mcp
Usage
This project wraps into the default MCP communication streams gracefully. Agents interacting with the API via the generate_text_image tool can inject the following parameters:
{
"text": "Your markdown or code here",
"language": "markdown",
"bg_color": [20, 24, 30],
"text_color": [220, 230, 240],
"font_size": 24
}Note: If language is omitted, the server will intelligently attempt to guess the incoming programming language.
Installation
# Clone the project and instantiate a virtual environment
python -m venv venv
# Windows
.\venv\Scripts\activate
# Linux/macOS
source venv/bin/activate
# Install the dependencies
pip install mcp Pillow PygmentsRunning the Server
If you are using Claude Desktop, Cline, or Antigravity, you simply register the server utilizing the following configurations within your host's MCP environment:
{
"mcpServers": {
"text-image": {
"command": "C:/path/to/project/venv/Scripts/python.exe", // Use /path/to/project/venv/bin/python on Linux/macOS
"args": ["-m", "text_image_mcp"],
"env": {
"PYTHONPATH": "C:/path/to/project/src" // Use /path/to/project/src on Linux/macOS
}
}
}
}GitHub Copilot
For GitHub Copilot within VS Code, you can add the server by navigating to the command palette and typing MCP: Open User Configuration. This will open your user mcp.json file. Provide the identical configuration block shown above (ensuring you adjust paths for your specific OS). Alternatively, you can drop .vscode/mcp.json inside your project root directory.
Testing Protocol
100% of the image rendering boundary mapping logic is covered seamlessly through pytest suites mirroring actual Agentic constraints.
Run tests using:
python -m pytest tests/License
MIT License. See LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to generate and render charts as PNG, SVG, or WebP images directly in chat interfaces. Supports Chart.js specifications and natural language descriptions for creating visualizations from data.3201MIT
- Flicense-qualityDmaintenanceProvides AI agents and coding assistants with image generation and editing capabilities using OpenAI's GPT-image-1 model, with support for local or Supabase storage.3
- AlicenseAqualityBmaintenanceEnables AI agents to create data visualizations like bar charts, line charts, pie charts, scatter plots, and histograms, returning inline SVG or PNG files.5MIT
- AlicenseAqualityBmaintenanceRenders source code as beautiful SVG or PNG images with syntax highlighting, line numbers, and diff support. Ideal for AI agents to present code visually to humans or for sharing snippets.221MIT
Related MCP Connectors
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Generate images, video, and audio with Glif's media-generation agent
Generate on-brand images from your AI agent: design, edit, and render templates over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/burgessadrien/text-image-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server