Skip to main content
Glama
shahil-yadav

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.

Related MCP server: Weather MCP Server

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
    16
    1
    5
    MIT
  • F
    license
    C
    quality
    D
    maintenance
    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.
    1
    28
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Python-based MCP server that provides real-time weather information using the National Weather Service API, supporting both synchronous and asynchronous HTTP requests.
    MIT

Latest Blog Posts

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