MCP Basics

Now that Node.js is installed, let's set up an MCP server project.

What You'll Learn

  • MCP project structure
  • Required dependencies
  • TypeScript configuration

Project Structure

A minimal MCP server looks like this:

1my-mcp-server/
2├── package.json        # Dependencies and scripts
3├── tsconfig.json       # TypeScript configuration
4└── src/
5    └── index.ts        # Your server code

Key Dependencies

Package Purpose
@modelcontextprotocol/sdk Official MCP SDK
zod Schema validation for tool inputs/outputs
typescript TypeScript compiler
ts-node Run TypeScript directly without building

Choose Your Track

  • Engineers: Follow ENGINEER for manual setup with explanations
  • Non-Engineers: Follow NON-ENGINEER for a Cursor prompt that creates everything

Quick Start

If you want to skip manual setup, use the starter template:

1cd starter-template
2npm install