Node tutorial based on the Quickstart guide https://modelcontextprotocol.io/quickstart/server#core-mcp-concepts
Claude Desktop:Type in: How is the weather in Redmond (Microsoft)?
- Build the server:
npm run build- Run the server:
npm run start- Run the inspector + server:
npx @modelcontextprotocol/inspector node build/index.js- Add the server to Claude Desktop (MacOS) in file
~/.claudia/claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"/Users/ma3u/projects/weather/build/index.js"
]
}
}
}- Restart Claude Desktop.
