by SerhatUzbas
Creates and manages Model Context Protocol servers for Claude Desktop, providing commands to generate, update, register, and install dependencies for custom MCP servers via a simple CLI interface.
Mcp Server Generator streamlines the lifecycle of Model Context Protocol (MCP) servers used by Claude Desktop. It offers a command‑line workflow to create new servers, update existing ones, list server code, analyze required npm packages, and register the servers in Claude's configuration.
git clone https://github.com/SerhatUzbas/mcp-server-generator.git
cd mcprotocol
npm install
claude_desktop_config.json (MacOS, Windows or via Claude settings). Example entry:
{
"mcpServers": {
"mcp-server-generator": {
"command": "node",
"args": ["/full/path/to/creator-server.js"]
}
}
}
servers directory, update the Claude config, and optionally run npm install for any missing dependencies.createMcpServer generates boiler‑plate code for a new MCP server based on user specifications.updateMcpServer modifies existing server implementations.analyzeServerDependencies identifies required npm packages; installServerDependencies installs them automatically.getClaudeConfig and updateClaudeConfig simplify reading and writing Claude Desktop’s JSON config.runServerDirectly runs a server to surface syntax or runtime errors before registration.listServers and getServerContent allow quick inspection of all generated servers.Q: Do I need to install a global package to run the generator?
A: No. After cloning the repo, simply run npm install locally and use the provided scripts via node.
Q: Can I use the generator on Windows?
A: Yes. Follow the Windows path syntax when editing claude_desktop_config.json (use double backslashes or escape them).
Q: What Node.js version is required? A: Node.js v16 or later.
Q: How are server files stored?
A: Generated code is placed in the servers directory at the repository root.
Q: How do I add a new dependency after a server is created?
A: Run the installServerDependencies tool or manually execute npm install <package> within the project.
A tool for creating and managing Model Context Protocol (MCP) servers for Claude Desktop.
The MCP Server Creator helps you create, manage, and register custom MCP servers with Claude Desktop. This tool provides an interface for:
Clone this repository:
git clone https://github.com/SerhatUzbas/mcp-server-generator.git
cd mcprotocol
Install dependencies (only first installation):
npm install
Register the creator server with Claude Desktop:
Macos:
open ~/Library/"Application Support"/Claude/claude_desktop_config.json
Windows (Command Prompt):
start %APPDATA%\Claude\claude_desktop_config.json
Or from Claude Desktop: Settings > Developer > Edit Config
example:
{
"mcpServers": {
"mcp-server-generator": {
"command": "node",
"args": ["/Users/username/Documents/GitHub/mcprotocol/creator-server.js"]
}
}
}
Note for Windows users: Remember to use backslashes for file paths and escape them properly in your JSON configuration. Example:
{ "mcpServers": { "mcp-server-generator": { "command": "node", "args": ["C:\\Users\\username\\Documents\\GitHub\\mcprotocol\\creator-server.js"] } } }
Once registered, you can use the MCP Server Creator through Claude Desktop:
Ask Claude to create a server for your specific needs:
Create an simple MCP server that integrates with PostgreSQL to provide database operations and query capabilities.
Claude will (probably):
servers directoryThe MCP Server Creator provides several tools for managing your servers:
listServers - List all available serversgetServerContent - View the code of an existing servercreateMcpServer - Create a new serverupdateMcpServer - Update an existing serveranalyzeServerDependencies - Identify required npm packagesinstallServerDependencies - Install required packagesgetClaudeConfig - View current Claude Desktop configurationupdateClaudeConfig - Update Claude Desktop configurationrunServerDirectly - Checks if any error appears when runningIf dependencies aren't installing correctly:
npm install [package-name]Contributions are welcome! Please feel free to submit a Pull Request.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
{
"mcpServers": {
"mcp-server-generator": {
"command": "node",
"args": [
"/full/path/to/creator-server.js"
]
}
}
}claude mcp add mcp-server-generator node /full/path/to/creator-server.js