README.md
March 19, 2025 ยท View on GitHub
This is a simple monorepo example of implementing MCP Servers It uses the following workspaces:
- Weather Alerts MCP Server - Using stdio protocol.
- Weather Forecast MCP Server - Using stdio protocol.
- Weather Forecast MCP Server - Bundle the two above into one MCP Server over HTTP/SSE protocol.
In order to run it:
- Clone the repository
- Run
npm i && npm run build --workspaces - Running alerts with MCP inspector:
npx @modelcontextprotocol/inspector node weather-alerts-stdio/build/index.js
- Running forecast with MCP inspector:
npx @modelcontextprotocol/inspector node weather-forecast-stdio/build/index.js
- Running SSE with inspector:
- In one terminal:
npm start -w weather-http - In other terminal:
npx @modelcontextprotocol/inspector
- In order to use it in Claude Desktop:
- Open your Claude for Desktop App configuration at
~/Library/Application Support/Claude/claude_desktop_config.jsonin a text editor. Make sure to create the file if it doesn't exist - Add this content to the file (Make sure to replace
/ABSOLUTE/PATH/TO/PARENT/FOLDERwith the correct path):
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-poc/weather-http/build/index.js"
]
}
}
}
- Restart Claude Desktop, and start using it by asking for example "What's the weather in NY?"