Labsco
maslybs logo

MCP Config Generator

โ˜… 1

from maslybs

A web tool for safely adding MCP servers to your Claude Desktop configuration.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

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

๐Ÿ“‹ 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}"
      }
    }
  }
}

๐Ÿ› ๏ธ 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 application
  • README.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.