Setup
This is a member-only chapter. Log in with your Signal Over Noise membership email to continue.
Log in to readModule 4 · Section 3 of 9
Setup
Create a new directory and initialise it:
mkdir my-mcp-server
cd my-mcp-server
npm init -y
Install the SDK:
npm install @modelcontextprotocol/sdk
npm install -D typescript @types/node tsx
Create a tsconfig.json:
{
"compilerOptions": {
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
"outDir": "./dist",
"strict": true
},
"include": ["src/**/*"]
}
Add to package.json:
{
"scripts": {
"build": "tsc",
"dev": "tsx src/index.ts"
}
}