Prerequisites
Before you begin, ensure you have the following installed:- Node.js 20.x or higher
- npm, yarn, or pnpm package manager
Quick Install
Install xmcp in your project using your preferred package manager:xmcp requires zod as a peer dependency for schema validation.
Create a New Project
The fastest way to get started is to create a new xmcp application using the official CLI:Follow the prompts
The CLI will guide you through the setup process:
- Choose a project name
- Select a template (TypeScript, MCP Apps, GPT Apps)
- Choose styling options (default or Tailwind)
- Configure your project preferences
Add to Existing Project
If you have an existing Next.js or Express project, you can initialize xmcp in it:Follow the setup wizard
The init script will:
- Detect your project type (Next.js, Express, etc.)
- Install necessary dependencies
- Create the required directory structure
- Add example tools and configuration
Project Structure
After installation, your project will have the following structure:Verify Installation
Verify that xmcp is installed correctly:0.0.3).
Next Steps
Now that you have xmcp installed, you’re ready to build your first MCP server:Quickstart Guide
Build your first tool in minutes
Core Concepts
Learn how xmcp works
Configuration
Configure your xmcp server
Examples
Explore example projects