MCP Hub
Back to servers

create-mcp-server

A CLI scaffolding tool to quickly generate production-ready MCP servers with TypeScript and Express.js, featuring both stateless and session-based stateful templates.

Stars
2
Updated
Jan 7, 2026
Validated
Jan 11, 2026

@agentailor/create-mcp-server

Scaffold production-ready MCP servers in seconds.

Quick Start

npx @agentailor/create-mcp-server

Features

  • Two templates — stateless or stateful with session management
  • Optional OAuth — OIDC-compliant authentication (setup guide)
  • Package manager choice — npm, pnpm, or yarn
  • TypeScript + Express.js — ready to customize
  • MCP Inspector — built-in debugging with npm run inspect

Templates

FeatureStateless (default)Stateful
Session management
SSE support
OAuth option
EndpointsPOST /mcpPOST, GET, DELETE /mcp

Stateless: Simple HTTP server — each request creates a new transport instance.

Stateful: Session-based server with transport reuse, Server-Sent Events for real-time updates, and optional OAuth authentication.

Generated Project

my-mcp-server/
├── src/
│   ├── server.ts     # MCP server (tools, prompts, resources)
│   ├── index.ts      # Express app and transport setup
│   └── auth.ts       # OAuth middleware (if enabled)
├── package.json
├── tsconfig.json
├── .gitignore
├── .env.example
└── README.md

Scripts:

  • npm run dev — build and start the server
  • npm run inspect — open MCP Inspector (update URL in package.json if needed)

What is MCP?

The Model Context Protocol (MCP) is an open protocol that enables AI assistants to interact with external tools, data sources, and services.

Built by Agentailor

Built by Agentailor — your launchpad for production-ready MCP servers and scalable AI agents. We provide the tools, templates, and expertise to ship AI-powered applications faster.

Reviews

No reviews yet

Sign in to write a review