Welcome! In this section, you'll set up your local environment and prepare to build your own MCP server using Cloudflare Workers.
Before we begin, make sure you have the following:
- Node.js v18+ – Download
- Cloudflare Account – Sign up
- Code Editor – VS Code recommended
- Terminal / Command Line access
- Claude Desktop – for testing mcp server
- Cloudflare AI Playground – for testing mcp server
node --version
npm --versionEnsure you see version 18 or higher.
Wrangler is Cloudflare’s CLI tool for building and deploying Workers.
npm install -g wrangler
wrangler --versionwrangler loginThis will open a browser window for authentication. Complete the login to proceed.
git clone https://github.com/lauragift21/mcp-server-workshop.git
cd mcp-server-workshopNavigate into one of the use case folders:
cd use-cases/travel-planner
# or
cd use-cases/restaurant-reservation
# or
cd use-cases/meeting-summarynpm installuse-cases/<use-case-name>
├── package.json # Project dependencies and scripts
├── wrangler.toml # Cloudflare Worker configuration
├── tsconfig.json # TypeScript configuration
├── src/
│ ├── index.ts # Cloudflare Worker entry point
│ ├── server.ts # MCP logic implementation
│ ├── tools/ # Individual tools
│ ├── resources/ # Resource handlers
│ └── types.ts # Type declarations
└── README.md # Use case guide
npm run devThis starts the Worker at: http://localhost:8787
Once your environment is set up and you can run the test client successfully, you're ready to start building!
- Understand Your Use Case: Read the README in your chosen use case directory
- Implement Tools: Add the specific tools your use case needs
- Deploy Your MCP Server: Deploy your MCP server to Cloudflare Workers
Environment ready? Let's start building your MCP server!