create-mcp-server-cli
v1.0.0
Published
Scaffold a new MCP server in 10 seconds. The create-react-app of Model Context Protocol.
Downloads
87
Maintainers
Readme
create-mcp-server
Scaffold a new MCP (Model Context Protocol) server in 10 seconds.
npx create-mcp-serverWhat it does
Generates a complete, ready-to-build MCP server project with:
package.jsonwith@modelcontextprotocol/sdkandzoddependenciestsconfig.jsonconfigured for ES2022 + NodeNextsrc/index.tswith a working MCP server and example toolsREADME.mdwith build and configuration instructions.gitignore
Usage
npx create-mcp-serverYou will be prompted for:
| Prompt | Default | Description |
|--------|---------|-------------|
| Project name | my-mcp-server | Directory name and package name |
| Description | A custom MCP server | Package description |
| Number of example tools | 2 | How many starter tools to include (1-5) |
Example tools included
Depending on how many you choose, the generated server includes:
- echo -- echoes back your input
- add -- adds two numbers together
- greet -- generates a greeting message
- timestamp -- returns the current ISO timestamp
- random_number -- generates a random number in a range
After scaffolding
cd my-mcp-server
npm install
npm run buildThen add to your .mcp.json:
{
"mcpServers": {
"my-mcp-server": {
"command": "node",
"args": ["path/to/my-mcp-server/dist/index.js"]
}
}
}On-chain tools
Want to add on-chain tools to your MCP server? Check out obsd-launchpad-mcp -- deploy tokens, trade on bonding curves, and claim fees, all from your MCP server.
npx -y obsd-launchpad-mcpBuilt by THRYXAGI
