CF-MCP-Server
Overview
CF-MCP-Server is an image generation service based on the Model Context Protocol (MCP), built using Cloudflare Workers.
To use CF-MCP-Server, set up the environment with Node.js and Wrangler CLI, install dependencies, configure environment variables, and deploy the Worker using the provided commands.
- 🖼️ Standardized service interface based on MCP protocol - 🚀 Ready-to-use image generation Worker module - 🔧 Supports quick extension of custom tools and resources - ⚡ Optimized deployment for edge computing
- Generating images based on textual prompts
- Creating custom image generation tools for specific applications
- Leveraging edge computing for faster image processing
Add to your AI client
Use these steps to connect CF-MCP-Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"cf-mcp-server-turinhub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"cf-mcp-server-turinhub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"cf-mcp-server-turinhub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"cf-mcp-server-turinhub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cf-mcp-server-turinhub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"cf-mcp-server-turinhub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-cf-mcp-server-turinhub"
]
}
}
}FAQ
What are the environment requirements?
Node.js 18+ and Wrangler CLI are required.
How do I deploy the Worker?
Use the command `pnpm deploy` after setting up your environment.
Can I customize the image generation process?
Yes! You can extend the service with custom tools and resources.7:["$","di