Skip to main content
Glama

Weather MCP Server with Descope Auth

by shahil-yadav

Remote MCP Server using Descope's MCP Auth SDK (Express) and Fly.io

Descope Banner

Introduction

This example shows how to add auth to a Remote MCP Server using Descope's MCP Auth SDK (Express) and deploy it to Fly.io. It handles fetching weather-related data.

Preview

This MCP Server is deployed to Fly.io here: https://mcp-server-weather-ez9f9a.fly.dev

You can connect to the server using the Cloudflare Playground, MCP Inspector or any other MCP client. Be sure to include the /sse path in the connection URL.

Features

  • Real-time weather data streaming

  • Secure authentication using Descope

  • MCP Authorization Compliant

Requirements

Before proceeding, make sure you have the following:

Running the Server

First, add the environment variables in a .env file at the root:

DESCOPE_PROJECT_ID= # Your Descope project ID DESCOPE_MANAGEMENT_KEY= # Your Descope management key SERVER_URL= # The URL where your server is hosted

Then, install dependencies:

npm i

Finally, run the server:

npm run dev

The server will start on port 3000 (or the port specified in your environment variables).

API Endpoints

  • GET /sse: Establishes an SSE connection for real-time weather data

  • POST /message: Handles incoming messages for the MCP protocol

Authentication

The server uses Descope for authentication. All MCP endpoints except the authentication router require a valid bearer token.

-
security - not tested
-
license - not tested
-
quality - not tested

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
    Last updated -
    1
    2
    MIT License
    • Linux
    • Apple
  • A
    security
    F
    license
    A
    quality
    A simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.
    Last updated -
    1
    2
  • A
    security
    F
    license
    A
    quality
    A MCP server that provides real-time weather information for any city through a simple tool that resolves geographic coordinates and fetches current weather data.
    Last updated -
    1
    4
  • -
    security
    A
    license
    -
    quality
    A Python-based MCP server that provides real-time weather information using the National Weather Service API, supporting both synchronous and asynchronous HTTP requests.
    Last updated -
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shahil-yadav/github-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server