MCP ExplorerExplorer

Mcp Poc

@adijesorion 10 months ago
1 MIT
FreeCommunity
AI Systems
A monorepo example for implementing MCP Servers for weather alerts and forecasts.

Overview

What is Mcp Poc

mcp-poc is a simple monorepo example for implementing MCP Servers, specifically designed for weather-related services using various protocols.

Use cases

Use cases include providing real-time weather alerts, generating weather forecasts, and integrating weather services into applications like Claude Desktop.

How to use

To use mcp-poc, clone the repository, install dependencies, build the workspaces, and run the specific MCP servers using the provided commands. You can also integrate it with Claude Desktop for easy access.

Key features

Key features include multiple weather-related MCP Servers (Weather Alerts and Weather Forecast) implemented using stdio and HTTP/SSE protocols, along with easy setup and integration instructions.

Where to use

mcp-poc can be used in applications requiring weather data, such as alert systems and forecasting tools, particularly in environments that support MCP Servers.

Content

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?”

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers