Cloudflare Workers Table-to-Image MCP Connector
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cloudflare Workers Table-to-Image MCP Connector
Convert table data to beautiful images using QuickChart.io API, deployed on Cloudflare Workers. This project serves as an MCP (Model Context Protocol) connector for Poke and other AI assistants.
β¨ TRUE Zero-Configuration Deployment
Click the deploy button above for instant deployment - NO environment variables required!
The worker uses QuickChart.io's free tier by default (no API key needed). All configuration variables have sensible defaults built-in. You can optionally add a QuickChart API key later to increase rate limits.
Related MCP server: Chart-Output MCP Server
π Features
Table to Image Conversion: Convert JSON table data to PNG/JPG images
QuickChart.io Integration: Leverage QuickChart's powerful charting engine
Multiple Table Formats: Support for various table data structures
Fast Edge Deployment: Runs on Cloudflare's global edge network
MCP Connector: Ready-to-use MCP server implementation
TypeScript Support: Fully typed for better DX
Zero Cold Starts: Instant responses worldwide
Zero Configuration: Works out-of-the-box with no setup required
π― Quick Start
Option 1: One-Click Deploy (Recommended - ZERO CONFIG)
Click the "Deploy to Cloudflare Workers" button above
Authenticate with your Cloudflare account
Click "Deploy" - that's it!
No environment variables, no secrets, no configuration needed. The worker will be live immediately using QuickChart's free tier.
Option 2: CLI Deploy
# Clone the repository
git clone https://github.com/clem109/cloudflare-workers-table-to-image-mcp.git
cd cloudflare-workers-table-to-image-mcp
# Install dependencies
npm install
# Authenticate with Cloudflare
npx wrangler login
# Deploy (no configuration needed)
npm run deployOption 3: Development Mode
npm install
npm run devπ‘ API Endpoints
POST /convert
Convert table data to image.
Request:
{
"table": {
"headers": ["Name", "Value", "Status"],
"rows": [
["Item 1", "100", "Active"],
["Item 2", "200", "Pending"],
["Item 3", "150", "Active"]
]
},
"format": "png",
"width": 800,
"height": 600
}Response:
{
"success": true,
"imageUrl": "https://quickchart.io/chart?...",
"format": "png",
"timestamp": "2026-02-17T20:44:00Z"
}GET /health
Health check endpoint.
Response:
{
"status": "healthy",
"version": "1.0.0",
"timestamp": "2026-02-17T20:44:00Z"
}POST /mcp/convert
MCP-compatible endpoint for AI assistants.
Request:
{
"method": "convert_table",
"params": {
"data": [["Header1", "Header2"], ["Value1", "Value2"]],
"options": {
"format": "png",
"theme": "light"
}
}
}π¨ Supported Table Formats
Format 1: Headers + Rows
{
"headers": ["Column 1", "Column 2"],
"rows": [
["Data 1", "Data 2"],
["Data 3", "Data 4"]
]
}Format 2: Array of Objects
[
{"name": "John", "age": 30, "city": "NYC"},
{"name": "Jane", "age": 25, "city": "LA"}
]Format 3: 2D Array
[
["Name", "Age", "City"],
["John", "30", "NYC"],
["Jane", "25", "LA"]
]π§ Configuration (Optional)
Zero-Config Defaults
The worker comes with sensible defaults - no configuration needed:
Variable | Default | Description |
| 10000 | Max cells in table |
| png | Default output format |
| 800 | Default image width |
| 600 | Default image height |
| 60 | Requests per minute |
| true | Enable CORS |
Optional Enhancements
To increase QuickChart rate limits (optional):
Get a free API key from QuickChart.io
Set it as a secret:
echo "your-api-key" | npx wrangler secret put QUICKCHART_API_KEY
To add MCP authentication (optional):
echo "your-mcp-key" | npx wrangler secret put MCP_API_KEYCustom Configuration
To customize defaults, edit wrangler.toml:
[vars]
MAX_TABLE_SIZE = "20000"
DEFAULT_IMAGE_FORMAT = "jpg"π MCP Integration
This project implements the Model Context Protocol for seamless AI assistant integration.
Configure with Poke
Deploy your worker using the one-click button
Copy your worker URL (e.g.,
https://table-to-image-mcp.your-subdomain.workers.dev)Add to your MCP config:
{
"mcpServers": {
"table-to-image": {
"url": "https://your-worker-url.workers.dev/mcp"
}
}
}Use in conversations:
Convert this table to an image: [table data]π Usage Examples
cURL
curl -X POST https://your-worker.workers.dev/convert \
-H "Content-Type: application/json" \
-d '{
"table": {
"headers": ["Product", "Sales", "Growth"],
"rows": [
["Widget A", "1000", "+15%"],
["Widget B", "2000", "+25%"]
]
}
}'JavaScript/Node.js
const response = await fetch('https://your-worker.workers.dev/convert', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
table: {
headers: ['Name', 'Score'],
rows: [['Alice', '95'], ['Bob', '87']]
},
format: 'png'
})
});
const result = await response.json();
console.log('Image URL:', result.imageUrl);Python
import requests
response = requests.post(
'https://your-worker.workers.dev/convert',
json={
'table': {
'headers': ['Name', 'Score'],
'rows': [['Alice', '95'], ['Bob', '87']]
},
'format': 'png'
}
)
result = response.json()
print(f"Image URL: {result['imageUrl']}")ποΈ Project Structure
cloudflare-workers-table-to-image-mcp/
βββ src/
β βββ index.js # Main Worker entry point
β βββ mcp-server.js # MCP connector implementation
βββ .cloudflare/
β βββ deploy.json # Zero-config deploy settings
βββ examples/
β βββ table-formats.json # Example table formats
β βββ usage.md # Usage examples
βββ wrangler.toml # Main Cloudflare config
βββ wrangler.json # Deploy button config
βββ package.json # Dependencies
βββ deploy.sh # Deployment script
βββ README.md # This fileπ§ͺ Development
Local Testing
npm run devVisit http://localhost:8787 to test locally.
Run Tests
npm testLinting
npm run lintπ Deployment Options
1. One-Click (Zero Config)
Click the deploy button at the top - done!
2. CLI Deploy
npm run deploy3. Environment-specific Deploy
npm run deploy:production
npm run deploy:staging4. Custom Script
chmod +x deploy.sh
./deploy.shπ‘οΈ Security
No sensitive data required for deployment
API keys are optional and stored as encrypted secrets
Rate limiting enabled by default
Input validation and sanitization
CORS configured for secure access
π Performance
Latency: <50ms globally (Cloudflare edge)
Throughput: 1000+ requests/second
Uptime: 99.99% SLA
Cold Start: 0ms (no cold starts)
Free Tier: QuickChart free tier included
β FAQ
Do I need a QuickChart API key?
No! The worker uses QuickChart's free tier by default. An API key is optional and only needed if you exceed free tier limits.
Do I need to set environment variables?
No! Everything has sensible defaults. The one-click deploy requires zero configuration.
Why is the deploy button asking for variables?
If this happens, it's likely a caching issue. The latest version requires no variables. Try:
Clear browser cache
Use the direct link:
https://deploy.workers.cloudflare.com/?url=https://github.com/clem109/cloudflare-workers-table-to-image-mcpDeploy via CLI:
npm run deploy
Can I customize the configuration?
Yes! After deployment, you can modify wrangler.toml and redeploy, or set optional secrets for enhanced features.
How do I get my worker URL?
After deployment:
Check your Cloudflare dashboard
Or look at the deployment output
Format:
https://table-to-image-mcp.your-subdomain.workers.dev
π€ Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
MIT License - see LICENSE file for details.
π Acknowledgments
QuickChart.io - Chart generation API (free tier included)
Cloudflare Workers - Edge computing platform
Model Context Protocol - AI integration standard
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
πΊοΈ Roadmap
Add more chart types (bar, pie, line)
Support custom styling/themes
Implement caching layer
Add batch conversion endpoint
Create CLI tool
Add TypeScript version
Support more output formats (SVG, PDF)
Add webhook notifications
Built with β€οΈ by Clement Venard
β Star this repo if you find it useful!
Made possible by Cloudflare Workers and QuickChart.io
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Renders interactive Chart.js charts and dashboards inline in AI conversations.
Clean messy tabular data and render publication-ready PNG charts from your AI assistant.
ChartAnt is a remote MCP server that gives your AI assistant 51 tools to draw charts, diagrams and maps as real PNG images with their own link, ready for email, Slack, slides or a README. - 40+ chart and diagram types: line, bar, column, pie, area, scatter, funnel, sankey, treemap, waterfall, gantt, heatmap, KPI cards, dashboards, flowcharts, mind maps, org charts and more. - Maps of every country: world maps, the states, provinces or regions of any country, and pin maps from coordinates. Region names in 20+ languages, with "did you mean" hints for names that don't match. - Charts that stay updated: sign in once and your assistant can save a chart at a fixed link. Later, say "add 10% to this month's sales" and the image at the same link updates. Copies can go to Slack, Teams, Discord or email on every change or on a schedule. - Nothing to install and no API key: paste the URL into Claude, ChatGPT, Cursor, VS Code, Windsurf or n8n. - EU-hosted. Chart data is used only to draw the image and is never logged.
Renders interactive Chart.js charts and dashboards inline in AI conversations. Supports bar, line, area, pie, doughnut, scatter, and radar charts with multi-chart dashboard grids.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to generate chart visualizations by interacting with QuickChart API, allowing users to create and retrieve chart image links through natural language requests.132 npm4Apache 2.0
- AlicenseAqualityCmaintenanceEnables 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.31MIT
- AlicenseAqualityCmaintenanceTableCharts MCP Server gives any LLM assistant the ability to instantly convert tabular data into beautiful, hosted, interactive dashboards. Simply provide JSON rows, raw CSV text, or a public URL (Notion page, Google Sheet, or Salesforce report), and get back a shareable dashboard URL plus an embeddable iframe code β all in one tool call. Supports 6 chart types: bar, line, area, pie, scatter, a215 npmMIT
- AlicenseBqualityDmaintenanceEnables AI agents to render branded charts as inline images and persistent hosted URLs, supporting explicit chart types and automatic chart suggestion from data.268 npmMIT