
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mcp-server-starter
Advanced tools
Scaffold a ready-to-run Model Context Protocol (MCP) server with a single command
Scaffold a ready-to-run Model Context Protocol (MCP) server with a single command
npx mcp-server-starter init --name my-server
This runs the latest version without installing anything globally.
npm install -g mcp-server-starter
Then use it anywhere:
mcp-server-starter init --name my-server
mcp-server-starter add-tool --name myTool
npm install mcp-server-starter --save-dev
Use in package.json scripts:
{
"scripts": {
"create-server": "mcp-server-starter init",
"add-tool": "mcp-server-starter add-tool"
}
}
npx mcp-server-starter init --name my-awesome-server
cd my-awesome-server
npm install
npm run build
npm start
That's it! You now have a working MCP server with a sample echo tool.
# Interactive mode
npx mcp-server-starter init
# With options
npx mcp-server-starter init --name my-server --preset minimal
# With description
npx mcp-server-starter init --name my-server --description "My custom MCP server"
# Navigate to your server directory
cd my-server
# Add a new tool (interactive)
npx mcp-server-starter add-tool
# Add with options
npx mcp-server-starter add-tool --name calculator --title "Calculator" --description "Performs calculations"
# Force overwrite existing tool
npx mcp-server-starter add-tool --name calculator --force
my-server/
├── package.json # MCP SDK dependencies included
├── tsconfig.json # Strict TypeScript config
├── README.md # Complete documentation
├── .gitignore # Sensible defaults
└── src/
├── server.ts # MCP server entry point
└── mcp/
└── tools/
├── index.ts # Tool registry (auto-updated!)
└── echo.ts # Sample tool
Add to your claude_desktop_config.json:
{
"mcpServers": {
"my-server": {
"command": "node",
"args": ["/absolute/path/to/my-server/dist/server.js"]
}
}
}
Restart Claude Desktop, and your tools will be available!
// src/mcp/tools/calculator.ts
import { z } from 'zod';
import type { Tool } from './index.js';
const calculatorInputSchema = z.object({
operation: z.enum(['add', 'subtract', 'multiply', 'divide']),
a: z.number(),
b: z.number(),
});
export const calculatorTool: Tool = {
name: 'calculator',
description: 'Performs basic math operations',
inputSchema: {
type: 'object',
properties: {
operation: {
type: 'string',
enum: ['add', 'subtract', 'multiply', 'divide'],
},
a: { type: 'number' },
b: { type: 'number' },
},
required: ['operation', 'a', 'b'],
},
handler: async (args: unknown) => {
const input = calculatorInputSchema.parse(args);
let result: number;
switch (input.operation) {
case 'add':
result = input.a + input.b;
break;
case 'subtract':
result = input.a - input.b;
break;
case 'multiply':
result = input.a * input.b;
break;
case 'divide':
result = input.a / input.b;
break;
}
return {
content: [
{
type: 'text',
text: `Result: ${result}`,
},
],
};
},
};
Add it to your server:
npx mcp-server-starter add-tool --name calculator
# Edit src/mcp/tools/calculator.ts with the code above
npm run build
npm start
The tool is automatically registered - no manual imports needed!
initInitialize a new MCP server project.
Options:
--name, -n - Project name (kebab-case required)--description, -d - Project description--preset, -p - Template preset (minimal or examples)--with-http-adapter - Include HTTP transport adapterExamples:
npx mcp-server-starter init --name my-server
npx mcp-server-starter init --name my-server --preset minimal
npx mcp-server-starter init --name my-server --with-http-adapter
add-toolAdd a new tool to an existing MCP server.
Options:
--name, -n - Tool name (camelCase required)--title, -t - Tool display title--description, -d - Tool description--force, -f - Overwrite if tool existsExamples:
npx mcp-server-starter add-tool --name myTool
npx mcp-server-starter add-tool --name calculator --title "Calculator"
npx mcp-server-starter add-tool --name calculator --force
Build MCP servers for:
The generated server works with:
@modelcontextprotocol/sdkContributions are welcome! Please feel free to submit a Pull Request.
MIT © navid1111
Built with:
Made with ❤️ for the MCP community
FAQs
Scaffold a ready-to-run Model Context Protocol (MCP) server with a single command
We found that mcp-server-starter 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.