MCP Config Generator
A web tool for safely adding MCP servers to your Claude Desktop configuration.
MCP Config Generator
A modern web tool for safely adding MCP servers to your Claude Desktop configuration without breaking the JSON structure.
🌟 Features
- Safe Configuration Management - Load your existing config and safely add new servers
- JSON Validation - Prevents breaking your configuration with automatic validation
- Multiple Server Types - Supports command-based, HTTP, and custom server configurations
- Visual Server List - See all your current servers with easy removal options
- Copy & Download - Easy export of your final configuration
- Real-time Formatting - Automatic JSON formatting and validation
- Responsive Design - Works on desktop and mobile devices
🎯 Problem This Solves
When you find a new MCP server configuration online and want to add it to your existing Claude Desktop config, manually editing the JSON can be risky - one syntax error breaks the entire configuration. This tool eliminates that risk by:
- Validating your existing configuration first
- Safely merging new server configurations
- Ensuring the final output is valid JSON
- Providing visual feedback throughout the process
🚀 How to Use
1. Load Your Current Config
- Open the tool in your browser: mcp-conf-gen.pages.dev
- Paste your existing
claude_desktop_config.jsoncontent into the first text area - Click "Validate Config" to ensure it's properly formatted
- Or use "Load Example" to start with a sample configuration
2. Add New Servers
- Find a server configuration on a website (GitHub, documentation, blog posts, etc.)
- Copy the JSON block for the server (just the server part, not the whole config)
- Enter a unique server name in the "Server name" field
- Paste the JSON configuration in the "Server JSON configuration" field
- Click "Add Server" - the tool validates and adds it safely
3. Manage Your Servers
- View all current servers in the "Current Servers" section
- See command details and configuration for each server
- Remove unwanted servers with the delete button
- Server details are truncated for readability but show full info on hover
4. Export Your Config
- View the complete configuration in the "Final Configuration" section
- Copy to clipboard with the "Copy" button
- Download as a file with the "Download" button
- Use "Format" to clean up the JSON formatting
📋 Example Workflow
Your existing config:
{
"serverConfig": {
"command": "/bin/sh",
"args": ["-c"]
},
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["@wonderwhy-er/desktop-commander@latest"]
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
Found a new server configuration online:
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${input:github_mcp_pat}"
}
}
Result after safely adding:
{
"serverConfig": {
"command": "/bin/sh",
"args": ["-c"]
},
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": ["@wonderwhy-er/desktop-commander@latest"]
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${input:github_mcp_pat}"
}
}
}
}
📁 Claude Desktop Setup
- Use the tool to generate your configuration
- Copy or download the final configuration
- Save as
claude_desktop_config.jsonin your Claude config folder:- macOS:
~/Library/Application Support/Claude/ - Windows:
%APPDATA%/Claude/ - Linux:
~/.config/claude/
- macOS:
- Restart Claude Desktop to load the new configuration
🛠️ Supported Server Types
Command-based Servers
{
"command": "npx",
"args": ["@modelcontextprotocol/server-github"]
}
HTTP Servers
{
"type": "http",
"url": "https://api.example.com/mcp/",
"headers": {
"Authorization": "Bearer ${input:api_key}"
}
}
Custom Configurations
Any valid MCP server configuration is supported. The tool preserves all properties and structures.
🔧 Development
The project uses pure HTML, CSS, and JavaScript with no dependencies or build process.
# Clone the repository
git clone https://github.com/maslybs/mcp-config-generator.git
# Open in browser
open index.html
Project Structure
index.html- Complete single-file applicationREADME.md- This documentation
🌐 Live Demo
Visit mcp-conf-gen.pages.dev to use the tool online.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📝 License
MIT License - see the code for details.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
SMART-E2B
Integrates E2B for secure code execution in cloud sandboxes, designed for Claude AI Desktop.
Yourware MCP
Upload project files or directories to the Yourware platform.
B12 Website Generator
An AI-powered website generator from B12, requiring no external data files.
Feishu MCP Server
An MCP server with built-in Feishu OAuth authentication, deployable on Cloudflare Workers.
Moatless MCP Server
An advanced code analysis and editing server with semantic search capabilities using vector embeddings.
AWS CDK MCP Server
Offers guidance and tools for AWS CDK, covering best practices, security compliance with CDK Nag, infrastructure validation, and pattern discovery.
MCP Starter Server
A minimal template for building AI assistant tools using the ModelContextProtocol.
Factifai MCP Server
An MCP server for Factifai, enabling integration with any MCP-compatible AI tool to create and retrieve test results asynchronously.
Domain Checker
Check domain name availability using WHOIS lookups and DNS resolution.
Swagger MCP Server
An example MCP server for deployment on Cloudflare Workers without authentication.