Skip to main content
Glama
Rahii123

Advanced MCP Server

by Rahii123

๐Ÿš€ Advanced MCP Server

A professional Model Context Protocol (MCP) server built with Python and FastMCP. This server extends AI capabilities by providing real-time data and local system access.

โœจ Features

  • ๐ŸŒฆ๏ธ Weather Alerts: Fetches active US weather alerts from the National Weather Service.

  • ๐Ÿ“ฐ News Search: Real-time news searching using the NewsAPI.

  • ๐Ÿ“ Directory Explorer: Allows the AI to list and explore local system directories safely.

  • ๐Ÿ” Secure Secrets: Uses .env for safe API key management.

Related MCP server: Weather MCP Server

๐Ÿ› ๏ธ Getting Started

Prerequisites

  • Python 3.10+

  • uv (Recommended)

Installation

  1. Clone the repository:

    git clone https://github.com/Rahii123/mcp.git
    cd mcp
  2. Install dependencies:

    uv sync

Setup

Create a .env file in the root directory and add your NewsAPI key:

NEWS_API_KEY=your_actual_key_here

๐Ÿš€ Running the Server

Run directly with uv:

uv run server.py

๐Ÿงช Testing Your Server

We have provided two separate clients for testing:

๐Ÿ  1. Local Testing (Stdio)

Use this when you are developing on your own machine.

uv run client_local.py

This starts the server as a background process and communicates directly.

๐ŸŒ 2. Online Testing (SSE)

Use this after you have deployed your server to the web (e.g., Railway).

uv run client_online.py

This asks for your deployment URL and connects over the internet.


โ˜๏ธ Deployment to Railway (Step-by-Step)

1. Push to GitHub

Ensure all your changes are committed and pushed to your GitHub repository:

git add .
git commit -m "Prepare for deployment"
git push origin main

2. Connect to Railway

  1. Go to Railway.app and log in.

  2. Click + New Project > Deploy from GitHub repo.

  3. Select your mcp repository.

3. Configure the Service

  1. Environment Variables:

    • Go to the Variables tab in Railway.

    • Add NEWS_API_KEY: (Your actual NewsAPI Key)

  2. Start Command:

    • Railway should automatically detect pyproject.toml, but if needed, set the start command to:

      uv run server.py
  3. Networking:

    • Railway will automatically detect the port from the $PORT environment variable. Ensure your server.py is using mcp.run(transport='sse') (I've already configured this for you).

4. Fetch your URL

Once the build is finished, Railway will provide a public URL (e.g., https://mcp-production.up.railway.app). The MCP endpoint will be at: https://your-app-url.up.railway.app/sse


Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to access real-time US weather forecasts and alerts through the National Weather Service API.
    Last updated
    2
    29
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Provides real-time US weather alerts and forecasts by integrating with the National Weather Service API. It enables AI assistants to fetch state-specific alerts and detailed local forecasts using geographic coordinates.
    Last updated
    2
  • F
    license
    -
    quality
    D
    maintenance
    Provides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.
    Last updated

View all related MCP servers

Related MCP Connectors

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • Get US weather forecasts, active alerts, and current observations.

View all MCP Connectors

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/Rahii123/mcp'

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