The process of creating a new project using xmcp is very simple and consists of the following steps:
- Installing Node.js: Ensure that Node.js is installed on the system (version 18 or higher recommended)
- Initialization Project: Run in a terminal
npx create-xmcp@latest my-projectcommand - Installation of dependencies: Go to the project directory and execute
npm install - Starting the Development Server: Run
npm run devYou can start the service locally
Once the project initialization is complete, a standard project structure is automatically generated, including:
- src/ - contains the middleware.ts and tools/ directories
- dist/ - compilation output directory
- Configuration files - including package.json, tsconfig.json and xmcp.config.ts
By default, the development server runs on http://localhost:3000 and developers can start building their MCP applications immediately.
This answer comes from the articlexmcp: A TypeScript Framework for Building and Publishing MCP ApplicationsThe





























