
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
create-mcp-craft
Advanced tools
Create MCP TypeScript servers with Bun and Hono - the fastest way to scaffold Model Context Protocol servers
Create MCP TypeScript servers with Bun and Hono - the fastest way to scaffold Model Context Protocol servers
The easiest way to create a new MCP server is using the create command:
# Using bunx (recommended)
bunx create-mcp-craft@latest my-mcp-server
# Using npm
npm create mcp-craft@latest my-mcp-server
# Using yarn
yarn create mcp-craft my-mcp-server
# Using pnpm
pnpm create mcp-craft my-mcp-server
# Using bun create
bun create mcp-craft my-mcp-server
Then navigate to your new project and start developing:
cd my-mcp-server
bun install
bun run dev:stdio
Your project comes with git already initialized and an initial commit made! Ready to push to your repository.
This template creates a production-ready MCP TypeScript server with:
add, subtract, multiply, divide, fetch-weather, get-forecastconfig://app, greeting://{name}review-code with focus options (security, performance, readability)After creating your project, you'll have these commands available:
# Development
bun run dev:stdio # Run with stdio transport (for Claude Desktop)
bun run dev:http # Run with HTTP+SSE transport (for web clients)
bun run dev # Run with file watching
# Quality Assurance
bun run typecheck # TypeScript type checking
bun run lint # ESLint code linting
bun run lint:fix # Auto-fix linting issues
bun run format # Prettier code formatting
# Production
bun run build # Build the project
bun run start # Start production server
Add your server to Claude Desktop by updating your claude_desktop_config.json:
{
"mcpServers": {
"my-mcp-server": {
"command": "bun",
"args": ["/path/to/my-mcp-server/src/index.ts"]
}
}
}
// Connect to your MCP server via HTTP
const response = await fetch('http://localhost:3000/mcp/sse')
const eventSource = new EventSource('http://localhost:3000/mcp/sse')
eventSource.onmessage = (event) => {
const data = JSON.parse(event.data)
console.log('MCP message:', data)
}
| Metric | npm/Express | Bun/Hono | Improvement |
|---|---|---|---|
| Install Speed | ~15s | ~2s | 7.5x faster |
| Framework Size | ~200kB | ~14kB | 93% smaller |
| Runtime Overhead | High | Minimal | Native TypeScript |
| Cold Start | ~500ms | ~50ms | 10x faster |
Your generated project will have this structure:
my-mcp-server/
├── src/
│ ├── index.ts # Main server (stdio transport)
│ ├── http.ts # HTTP server with SSE
│ ├── config/
│ │ └── server.ts # Server configuration
│ ├── handlers/ # MCP request handlers
│ ├── services/ # Business logic
│ ├── types/ # TypeScript definitions
│ └── utils/ # Utility functions
├── docs/ # Documentation
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
├── .eslintrc.json # ESLint configuration
├── .prettierrc # Prettier configuration
└── README.md # Project documentation
The template includes advanced MCP features out of the box:
The template automatically replaces placeholders with your project details:
Found a bug or have a feature request? Please visit:
MIT License © 2025 Muhammed Kılıç
FAQs
Create MCP TypeScript servers with Bun and Hono - the fastest way to scaffold Model Context Protocol servers
We found that create-mcp-craft demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.