x4-mcpgen
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x4-mcpgenscaffold a new MCP server named weather with 2 tools and production config"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
x4-mcpgen
Generate production-oriented MCP server scaffolds — secure by default.
Part of the X4 ecosystem: x4-skills → x4-mcpgen → x4-sec → x4-runtime → x4-obs
30-second demo
pip install -e ".[dev]"
x4-mcpgen init weather --tools 2
cd weather
pip install -e ".[dev]"
pytest -q
x4-mcpgen validate .
x4-mcpgen test .Related MCP server: mcpnew
Why not another template?
Most MCP starters ship with broad permissions and no tests. x4-mcpgen produces:
Explicit tool allow-lists (no
"*")Unit tests for every generated tool
SECURITY.md, Apache-2.0, CI workflowmcp.jsonwith stdio transport only by defaultDockerfile with non-root user
Ready for
x4-sec scan
CLI
x4-mcpgen init <name> [--tools N] [--out DIR]
x4-mcpgen validate [PATH]
x4-mcpgen test [PATH]
x4-mcpgen package [PATH]
x4-mcpgen doctorGenerated layout
my-mcp/
├── src/<pkg>/
│ ├── server.py
│ └── tools/
├── tests/
├── schemas/
├── Dockerfile
├── mcp.json
├── pyproject.toml
├── README.md
├── SECURITY.md
├── LICENSE
└── .github/workflows/ci.ymlLicense
Apache-2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceGenerates production-ready MCP server projects from a single command, providing project structure, tool examples, and optional advanced templates.MIT
- AlicenseNot gradedqualityBmaintenanceEnables developers to scaffold secure-by-default MCP servers with deny-all permissions, typed tool stubs, and pre-wired audit hooks, while enforcing security posture through CI.5 npmMIT
- AlicenseNot gradedqualityCmaintenanceGenerates complete, runnable MCP server projects from natural-language tool descriptions, including schema, implementation, tests, README, and license. It enables AI agents to scaffold standalone MCP servers ready to install and run.MIT
- FlicenseNot gradedqualityCmaintenanceScaffolds a custom MCP server with placeholder resources and tools, enabling developers to practice setting up MCP configuration, environment variables, and server implementation.-