README.md

March 19, 2025 ยท View on GitHub

This is a simple monorepo example of implementing MCP Servers It uses the following workspaces:

In order to run it:

  1. Clone the repository
  2. Run npm i && npm run build --workspaces
  3. Running alerts with MCP inspector:
  • npx @modelcontextprotocol/inspector node weather-alerts-stdio/build/index.js
  1. Running forecast with MCP inspector:
  • npx @modelcontextprotocol/inspector node weather-forecast-stdio/build/index.js
  1. Running SSE with inspector:
  • In one terminal: npm start -w weather-http
  • In other terminal: npx @modelcontextprotocol/inspector
  1. In order to use it in Claude Desktop:
  • Open your Claude for Desktop App configuration at ~/Library/Application Support/Claude/claude_desktop_config.json in 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/FOLDER with 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?"