Skip to main content
Glama

@virga-mcp/server

MCP (Model Context Protocol) server for the Virga Weather API. Exposes weather data as native tools for LLM clients.

Quick Start

Claude Code

claude mcp add --transport stdio --env VIRGA_API_KEY=sk_virga_prod_xxx virga-weather -- npx -y @virga-mcp/server

Codex CLI

codex mcp add virga-weather --env VIRGA_API_KEY=sk_virga_prod_xxx -- npx -y @virga-mcp/server

Gemini CLI

gemini mcp add virga-weather -- npx -y @virga-mcp/server --api-key sk_virga_prod_xxx

Or add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "virga-weather": {
      "command": "npx",
      "args": ["-y", "@virga-mcp/server", "--api-key", "sk_virga_prod_xxx"]
    }
  }
}

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "virga-weather": {
      "command": "npx",
      "args": ["-y", "@virga-mcp/server"],
      "env": {
        "VIRGA_API_KEY": "sk_virga_prod_xxx"
      }
    }
  }
}

Cursor

Add as an MCP server in Cursor settings (Settings > MCP Servers), or add to .cursor/mcp.json:

{
  "mcpServers": {
    "virga-weather": {
      "command": "npx",
      "args": ["-y", "@virga-mcp/server", "--api-key", "sk_virga_prod_xxx"]
    }
  }
}

Windsurf

Add to your MCP configuration:

{
  "virga-weather": {
    "command": "npx",
    "args": ["-y", "@virga-mcp/server", "--api-key", "sk_virga_prod_xxx"]
  }
}

OpenCode

Add to opencode.json:

{
  "mcp": {
    "virga-weather": {
      "type": "local",
      "command": ["npx", "-y", "@virga-mcp/server"],
      "environment": {
        "VIRGA_API_KEY": "sk_virga_prod_xxx"
      }
    }
  }
}

Xcode (26.3+)

Xcode 26.3 has native MCP support. Add to your Xcode MCP configuration:

{
  "servers": {
    "virga-weather": {
      "command": "npx",
      "arguments": ["-y", "@virga-mcp/server"],
      "environment": {
        "VIRGA_API_KEY": "sk_virga_prod_xxx"
      }
    }
  }
}

Environment Variable

You can also set the API key as an environment variable instead of passing it as a flag:

VIRGA_API_KEY=sk_virga_prod_xxx npx @virga-mcp/server

Related MCP server: Open-Meteo MCP Server

Weather Tools

Tool

Description

Credits

get_current_weather

Current weather conditions for a lat/lon

1

get_hourly_forecast

Hourly forecast (1-120 hours)

2

get_daily_forecast

Daily forecast (1-16 days)

2

get_historical_weather

Historical weather for a specific date

3

search_location

Geocode a place name to lat/lon

0 (free)

Account & Billing Tools

Tool

Description

create_account

Create a new account, get a stage API key

accept_terms

Accept the current terms of service

activate_billing

Set up payment method (returns Stripe checkout URL)

purchase_credits

Buy a credit bundle (returns Stripe checkout URL)

get_billing_status

Credit balance, spend caps, auto-topup config

list_api_keys

List all API keys for the account

create_api_key

Create a new API key (stage or production)

revoke_api_key

Permanently revoke an API key

get_usage

API usage history with credit costs

Resources

Resource

URI

Description

Account Status

weather://account/status

Credit balance, rate limits, usage

Terms

weather://terms

Current terms of service

Pricing

weather://pricing

Credit costs per tool and bundles

OpenAPI Spec

weather://openapi

Full OpenAPI 3.1 specification

Onboarding

weather://onboarding

Step-by-step autonomous setup guide

Docs

weather://docs

Condensed LLM-friendly documentation

Prompt Templates

Prompt

Description

setup_weather_account

Guided walkthrough for account creation and billing setup

check_weather

Check current weather at a location by name

weather_forecast

Get a daily or hourly forecast for a location

CLI Options

Flag

Description

Default

--api-key <key>

Virga API key

VIRGA_API_KEY env var

--base-url <url>

API base URL

https://api.virga.dev

--help

Show help

--version

Show version

Getting an API Key

Use the setup_weather_account prompt template, or follow these steps:

  1. Create an account: POST https://api.virga.dev/api/v1/accounts

  2. Accept terms: POST https://api.virga.dev/api/v1/terms/accept

  3. Set up billing: POST https://api.virga.dev/api/v1/billing/activate

  4. Purchase credits: POST https://api.virga.dev/api/v1/billing/credits

  5. Create a production key: POST https://api.virga.dev/api/v1/keys

Or use a stage key (free, no credits required) for testing.

Available Tools

14 tools
accept_termsA

Accept the Virga Weather API terms of service. Required before creating production keys.

Inputs: version (required).

activate_billingA

Set up a payment method via Stripe. Returns a checkout URL that must be opened in a browser to complete setup. Required before purchasing credits.

Inputs: no named parameters.

create_accountB

Create a new Virga Weather API account. Returns a stage API key for testing. No authentication required.

Inputs: name (required).

create_api_keyA

Create a new API key. Production keys require accepted terms, activated billing, and positive credit balance.

Inputs: name (required), environment.

get_billing_statusA

Get current billing status including credit balance, spend caps, and auto-topup configuration.

Inputs: no named parameters.

get_current_weatherA

Get current weather conditions for a location. Returns temperature, humidity, wind, precipitation, and conditions.

Inputs: lat (required), lon (required).

get_daily_forecastC

Get daily weather forecast for a location. Returns up to 16 days of forecast data.

Inputs: lat (required), lon (required), days.

get_historical_weatherB

Get historical weather data for a location on a specific date. Returns temperature, humidity, wind, and conditions for that date.

Inputs: lat (required), lon (required), date (required).

get_hourly_forecastB

Get hourly weather forecast for a location. Returns up to 120 hours of forecast data.

Inputs: lat (required), lon (required), hours.

get_usageB

Get API usage history for the account. Shows endpoint calls, credit costs, and timestamps.

Inputs: endDate, startDate.

list_api_keysB

List all API keys for the account. Shows key prefix, environment, status, and last used timestamp.

Inputs: no named parameters.

purchase_creditsA

Purchase a credit bundle. Returns a Stripe checkout URL to complete the purchase. Bundles: 500 credits ($5), 2000 ($18), 10000 ($75).

Inputs: bundle (required).

revoke_api_keyA

Revoke an API key. WARNING: This is a destructive operation — the key will immediately stop working and cannot be restored.

Inputs: keyId (required).

search_locationA

Geocode a place name to latitude/longitude coordinates. Use this to convert city names, addresses, or landmarks into coordinates for weather queries.

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation4/5

    The five weather/geocoding tools have clearly distinct temporal scopes (current, hourly, daily, historical) and search_location is a clear geocoder. The account/billing/key tools are mostly distinct, though create_account vs create_api_key and get_billing_status vs get_usage could be momentarily confused by an agent, but descriptions disambiguate them.

    Naming Consistency5/5

    All 14 tools follow a strict snake_case verb_noun pattern (get_*, create_*, list_*, revoke_*, accept_*, activate_*, purchase_*, search_location). No mixed conventions or vague single-word names.

    Tool Count5/5

    14 tools is well within the ideal 3-15 range and each tool maps to a concrete operation: weather retrieval, geocoding, account onboarding, billing, key management, and usage. Nothing feels redundant or padded.

    Completeness4/5

    The weather and lifecycle surface is strong: read weather data, geocode, create account, accept terms, activate billing, buy credits, manage keys, check usage. However, get_billing_status exposes spend caps and auto-topup configuration with no corresponding tools to set them, and there is no way to delete an account or update key metadata — minor but real dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes weather forecast APIs as MCP tools, allowing LLMs to retrieve current weather conditions and multi-day forecasts for any location using latitude and longitude coordinates.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Provides comprehensive access to Open-Meteo APIs for weather forecasts, historical data, air quality, and marine conditions. It enables LLMs to query specialized meteorological models, perform geocoding, and access advanced climate or flood projections.
      17
      1,092 npm
      74
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather data via 12 tools (current weather, forecasts, air quality, umbrella advice, etc.) using Open-Meteo and FastMCP, enabling LLMs to answer weather-related queries.
      1
      -