Skip to main content
Glama
InjectPrompt

Vision Model Text Input Generator MCP

by InjectPrompt

Vision Model Text Input Generator MCP

一个将文本渲染为 PNG 画布的 MCP 服务器,用于本地视觉模型。它基于相邻的 Vision-Model-Text-Input-Generator 应用的输出行为。

托管 MCP 端点

生产环境的 Streamable HTTP 端点独立于 LibreChat 部署:

https://vision-model-text-input-generator-mcp-1080561124190.us-central1.run.app/mcp

它需要 Authorization: Bearer <MCP_AUTH_TOKEN>

Related MCP server: image-gen-mcp

本地开发

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
MCP_AUTH_TOKEN=local-development-token python main.py

服务器暴露了 generate_vision_text_image。其图像结果是符合标准的 MCP ImageContentimage/png),因此像 LibreChat 这样具备相应能力的客户端可以直接渲染它。

LibreChat 配置

librechat.yamlmcpServers 下添加以下内容:

mcpServers:
  vision-text-image:
    title: Text to Image Text
    type: streamable-http
    url: https://vision-model-text-input-generator-mcp-1080561124190.us-central1.run.app/mcp
    requiresOAuth: false
    headers:
      Authorization: 'Bearer ${VISION_TEXT_IMAGE_MCP_TOKEN}'
    serverInstructions: true

重启 LibreChat,然后将 vision-text-image 添加到智能体的 MCP 工具中。如果你希望生成的图像被包含在模型的直接上下文中,请使用支持视觉的聊天模型。

验证

安装依赖后,运行随附的本地检查:

python -m py_compile main.py
python verify_mcp.py

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/InjectPrompt/vision-model-text-input-generator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server