svgo-jsx-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., "@svgo-jsx-mcpoptimize this SVG icon and convert attributes to camelCase"
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.
svgo-jsx-mcp
An MCP (Model Context Protocol) server for SVG optimization with JSX-compatible camelCase attribute conversion. Includes a production-ready HTTP API with authentication, rate limiting, and usage tracking.
Features
SVG Optimization: Uses SVGO to reduce SVG file sizes
CamelCase Conversion: Converts kebab-case SVG attributes to camelCase for JSX/React compatibility
API Key Authentication: Secure access with database-backed API keys
Rate Limiting: Configurable per-key rate limits
Usage Statistics: Track optimization metrics and request history
Batch Processing: Optimize multiple SVGs in a single request
Docker Ready: Deploy to Coolify or any Docker host
Related MCP server: nakkas
Quick Start
Local Development (stdio mode)
npx svgo-jsx-mcpHTTP Server Mode
# Clone and install
git clone https://github.com/your-username/svgo-jsx-mcp
cd svgo-jsx-mcp
pnpm install
# Set up database
cp .env.example .env
# Edit .env with your DATABASE_URL and API_KEYS
# Run migrations and start
pnpm prisma migrate dev
pnpm devDeployment (Coolify/Docker)
Docker Compose
# Set your API keys
export API_KEYS=your-secret-key-here
# Start services
docker-compose up -dCoolify Deployment
Create a new service from this GitHub repo
Add a PostgreSQL database
Set environment variables:
DATABASE_URL: Connection string to your PostgreSQLAPI_KEYS: Comma-separated list of API keysPORT: 3000 (default)
Deploy
API Endpoints
Health Check
GET /healthNo authentication required. Returns server and database status.
Optimize SVG
POST /mcp/optimize
Authorization: Bearer <api-key>
{
"content": "<svg>...</svg>",
"filename": "icon.svg",
"camelCase": true
}Batch Optimize
POST /mcp/optimize/batch
Authorization: Bearer <api-key>
{
"items": [
{ "content": "<svg>...</svg>", "filename": "icon1.svg" },
{ "content": "<svg>...</svg>", "filename": "icon2.svg" }
],
"camelCase": true
}Usage Statistics
GET /stats
Authorization: Bearer <api-key>Per-Key Statistics
GET /stats/:keyId
Authorization: Bearer <api-key>Response Format
Single Optimization
{
"success": true,
"filename": "icon.svg",
"optimization": {
"originalSize": 1234,
"optimizedSize": 567,
"savedBytes": 667,
"savedPercent": "54.1%",
"ratio": "0.459"
},
"camelCaseApplied": true,
"result": "<svg strokeWidth=\"2\" fillOpacity=\"0.5\">...</svg>"
}Batch Optimization
{
"success": true,
"total": 5,
"successful": 5,
"failed": 0,
"results": [...]
}Authentication
Include your API key in the request header:
Authorization: Bearer <your-api-key>Or:
X-API-Key: <your-api-key>Environment Variables
Variable | Description | Default |
| PostgreSQL connection string | (required for server mode) |
| Comma-separated initial API keys | - |
| HTTP server port | 3000 |
| Allowed CORS origins | * |
CamelCase Conversion
When camelCase is true (default), kebab-case attributes are converted:
Original | Converted |
|
|
|
|
|
|
|
|
|
|
Development
# Install dependencies
pnpm install
# Generate Prisma client
pnpm prisma generate
# Run database migrations
pnpm prisma migrate dev
# Start HTTP server
pnpm dev
# Start stdio mode (for MCP clients)
pnpm dev:stdio
# Build
pnpm buildScripts
Script | Description |
| Build and run HTTP server |
| Build and run stdio mode |
| Compile TypeScript |
| Run HTTP server |
| Run stdio mode |
| Open Prisma Studio |
License
MIT
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
- Alicense-qualityCmaintenanceAI-powered SVG icon generation MCP server. Generate production-ready SVG icons from text descriptions with customizable styles, sizes, and themes.206MIT
- AlicenseAqualityAmaintenanceMCP server that turns AI into an SVG artist. One rendering engine with a rich JSON schema, AI controls all design parameters. Renders animated SVGs with CSS @keyframes and SMIL animations. Supports 16+ element types, parametric curves, pattern groups, gradient/filter/clip/mask definitions, and PNG preview. No external dependencies, runs locally via npx.316120MIT
- AlicenseAqualityAmaintenanceAn MCP server that converts raster images (PNG, JPG, WEBP) to scalable SVG vector graphics.14Apache 2.0
- AlicenseAqualityCmaintenanceMCP server for converting SVG files to Android Vector Drawable XML, enabling seamless integration with Figma MCP for Android development.1712MIT
Related MCP Connectors
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
MCP server for Tinify image optimization — one tool, max optimization
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
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/ErneG/svgo-jsx-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server