The MCP Project Generator is a Visual Studio Code extension designed to streamline the setup of basic Model Context Protocol (MCP) projects for Python, TypeScript, c# and swift. With just a simple command, developers can quickly generate a ready-to-use project structure, complete with essential files and configuration, allowing them to jump straight into implementing their MCP solutions.
This tool eliminates the manual boilerplate setup, ensuring consistency and accelerating development for MCP-based applications.
✨ Features
Quick Project Generation: Instantly create a new MCP project with pre-configured files.
Language Support: Generate projects for Python, TypeScript, c# and swift.
Guided Setup: Prompts for project location and name.
Ready-to-Use Structure: Includes README.md, help.txt, requirements.txt (for Python) or package.json/tsconfig.json (for TypeScript), and basic client code.
Consistency: Ensures generated projects follow a standardized structure.
⚙️ Installation
You can install the MCP Project Generator directly from the Visual Studio Code Marketplace:
Open VS Code.
Go to the Extensions view by clicking on the Square icon on the sidebar or pressing Ctrl+Shift+X (Windows/Linux) / Cmd+Shift+X (macOS).
Search for Mcp Project Generator.
Click the Install button.
Alternatively, you can visit the Marketplace page and click "Install".
🚀 Usage
Once the extension is installed, you can generate an MCP project using the VS Code Command Palette:
Open the Command Palette by pressing Ctrl+Shift+P (Windows/Linux) / Cmd+Shift+P (macOS).
Type one of the following commands:
For a Python MCP project:
Create mcp python project
For a TypeScript MCP project:
Create mcp typescript project
For a C# MCP project:
Create mcp csharp project
For a Swift MCP project:
Create mcp swift project
Press Enter.
The extension will prompt you to:
Select a folder where the new project will be created.
Enter a name for your new project.
After providing the details, the extension will generate the project structure and files in the specified location.
What's Generated?
Each generated project includes:
Python Project:
A basic Python script (client.py , server.py or similar) demonstrating MCP client initialization.
A requirements.txt file listing necessary Python dependencies.
A README.md for the generated project.
A help.txt with quick-start instructions.
A .env file for environment variables (e.g., API keys, server details).
TypeScript Project:
A basic TypeScript client file (src/index.ts) demonstrating MCP client initialization.
package.json with all necessary Node.js/TypeScript dependencies.
tsconfig.json for TypeScript compilation.
A README.md for the generated project.
A help.txt with quick-start instructions.
C# Project:
A basic C# client/server project (e.g., a .csproj file, Program.cs or similar entry point).
Relevant NuGet package references for MCP client/server and other dependencies.
A README.md for the generated project.
A help.txt with quick-start instructions.
Swift Project:
A basic Swift project structure (e.g., Package.swift for Swift Package Manager, Sources/Server/main.swift or similar entry point).
Relevant dependency configurations for the MCP client/server (if available as Swift packages).
A README.md for the generated project.
A help.txt with quick-start instructions.
💡 Troubleshooting
Extension not found in Command Palette: Ensure the extension is installed and enabled in VS Code. Sometimes a VS Code restart can help.
Generated project issues: The generated projects are basic templates. For detailed troubleshooting of the generated MCP client code (e.g., connection errors, API issues), refer to the README.md and help.txt files within the generated project folder.
Permissions: Ensure VS Code has the necessary file system permissions to create directories and write files in your chosen project location.