App to create VS Code install buttons for MCPs
Overview
Handy utility app to help generate VS Code install buttons and links for Model Context Protocol (MCP) servers. Create professional one-click install experiences for your MCP projects with customizable badges and comprehensive configuration support. This tool handles the conversion automatically when generating install buttons. - - : Configure command execution, arguments, and environment variables - : Configure server URLs, custom headers, and authentication - - Custom badge text with automatic encoding - Full color picker for badge and logo colors - Multiple professional styles (flat, flat-square, plastic, for-the-badge, social) - Powered by Shields.
README
VS Code MCP Install Button Generator
Handy utility app to help generate VS Code install buttons and links for Model Context Protocol (MCP) servers. Create professional one-click install experiences for your MCP projects with customizable badges and comprehensive configuration support.
Try it out live at VSCodeMCP.com!
Sample buttons:
This tool handles the conversion automatically when generating install buttons.
✨ Features
-
🌐 Comprehensive MCP Support:
- stdio: Configure command execution, arguments, and environment variables
- http/sse: Configure server URLs, custom headers, and authentication
-
🎨 Advanced Badge Customization:
- Custom badge text with automatic encoding
- Full color picker for badge and logo colors
- Multiple professional styles (flat, flat-square, plastic, for-the-badge, social)
- Powered by Shields.io for high-quality badge generation
-
📋 Multiple Output Formats:
- Markdown format: Perfect for README files and documentation
- HTML format: Ready for web pages and blogs
-
⚡ Real-time Experience:
- Live preview of generated badges
- Instant copy-to-clipboard functionality
- Responsive design for all devices
-
🔗 VS Code Integration:
- Generates proper
vscode:mcp/installURLs - Automatic JSON encoding for URL parameters
- One-click installation experience for end users
- Generates proper
🚨 Important Configuration Note
The JSON configuration format used for the VS Code install button is different from VS Code’s MCP configuration file format.
- For the install button (this tool): The MCP server name is a key-value pair in the URL parameters
- For VS Code’s
mcp.jsonfile: The MCP server name is a parent object containing the configuration
Example of VS Code MCP configuration format (used in your mcp.json file):
{
"microsoft.docs.mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
}
}
🚀 Getting Started
Quick Start
- Open
src/index.htmlin your web browser, or - Visit the live version at vscodemcp.com
📖 Usage
Step-by-Step Guide
-
Enter MCP Server Details:
- Provide your MCP server name (e.g.,
microsoft.docs.mcp) - Choose your preferred configuration mode:
- Simple Mode: Paste JSON configuration directly
- Enhanced Mode: Use the guided form with validation
- Provide your MCP server name (e.g.,
-
Configure Server Settings:
- For stdio servers: Set command, arguments, and environment variables
- For http/sse servers: Set server URL and optional headers
-
Customize Badge Appearance:
- Set custom badge text (defaults to server name)
- Choose badge and logo colors using the color picker
- Select from multiple professional styles
-
Generate and Copy:
- Choose output format (Markdown or HTML)
- Preview your badge in real-time
- Copy the generated code with one click
-
Use in Your Project:
- Paste the generated code into your README or website
- Users can now install your MCP server with one click!
💡 Example
For a Microsoft Docs MCP server, the app generates professional install buttons:
Markdown Output:
[](vscode:mcp/install?name=microsoft.docs.mcp&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Flearn.microsoft.com%2Fapi%2Fmcp%22%7D)
HTML Output:
How it works:
- Users click the badge → VS Code opens → MCP server installs automatically
- No manual configuration needed for end users
- Perfect for README files, documentation, and project pages
⚙️ MCP Configuration Format
The app supports the official VS Code MCP configuration format. Here are the supported connection types:
stdio Configuration
Perfect for locally executed MCP servers:
{
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-server-name"],
"env": {
"API_KEY": "${input:api-key}"
}
}
http/sse Configuration
Ideal for remote MCP servers:
{
"type": "http",
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer ${input:token}"
}
}
Environment Variables
Both configuration types support environment variables using the ${input:variable-name} syntax, which prompts users for values during installation.
🎨 Badge Customization
Powered by Shields.io, the app supports extensive customization:
Available Styles
- flat: Clean, modern flat design
- flat-square: Flat design with square edges
- plastic: Glossy, dimensional appearance
- for-the-badge: Large, bold style perfect for prominent placement
- social: GitHub-style social badges
Color Options
- Hex Colors: Full hex color support (#FF0000, #667eea, etc.)
- RGB Colors: Standard RGB notation
- Named Colors: CSS color names (red, blue, green, etc.)
- Brand Colors: Automatic brand color detection
Logo Customization
- VS Code Logo: Professional VS Code branding
- Custom Colors: Match your project’s color scheme
- High Quality: SVG-based logos for crisp display at any size
🛠️ Technologies Used
- Frontend: Pure HTML5, CSS3, and vanilla JavaScript (zero dependencies)
- Styling: Modern CSS Grid and Flexbox layouts with responsive design
- Badge Generation: Shields.io API for high-quality badge rendering
- VS Code Integration: Official
vscode:mcp/installURL scheme - Accessibility: WCAG compliant with semantic HTML and proper ARIA labels
🤝 Contributing
Contributions are welcome! This project aims to make MCP server installation as simple as possible.
Development
- Clone the repository
- Open
src/index.htmlin your browser - Make your changes
- Test thoroughly across different browsers
- Submit a pull request
Reporting Issues
Found a bug or have a feature request? Please open an issue on GitHub with:
- Clear description of the problem or feature
- Steps to reproduce (for bugs)
- Browser and OS information
- Expected vs actual behavior
📄 License
See LICENSE file for details.
🔗 Links
- Live App: vscodemcp.com
- GitHub Repository: merill/vscode-mcp
- VS Code MCP Documentation: Official MCP Docs
- Shields.io: Badge Service
Made with ❤️ for the MCP community | Create beautiful install experiences for your Model Context Protocol servers
Install
npx -y mcp-server-name