🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@virga-mcp/server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@virga-mcp/server

MCP server for the Virga Weather API — exposes weather data as native tools for LLM clients

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@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

Weather Tools

ToolDescriptionCredits
get_current_weatherCurrent weather conditions for a lat/lon1
get_hourly_forecastHourly forecast (1-120 hours)2
get_daily_forecastDaily forecast (1-16 days)2
get_historical_weatherHistorical weather for a specific date3
search_locationGeocode a place name to lat/lon0 (free)

Account & Billing Tools

ToolDescription
create_accountCreate a new account, get a stage API key
accept_termsAccept the current terms of service
activate_billingSet up payment method (returns Stripe checkout URL)
purchase_creditsBuy a credit bundle (returns Stripe checkout URL)
get_billing_statusCredit balance, spend caps, auto-topup config
list_api_keysList all API keys for the account
create_api_keyCreate a new API key (stage or production)
revoke_api_keyPermanently revoke an API key
get_usageAPI usage history with credit costs

Resources

ResourceURIDescription
Account Statusweather://account/statusCredit balance, rate limits, usage
Termsweather://termsCurrent terms of service
Pricingweather://pricingCredit costs per tool and bundles
OpenAPI Specweather://openapiFull OpenAPI 3.1 specification
Onboardingweather://onboardingStep-by-step autonomous setup guide
Docsweather://docsCondensed LLM-friendly documentation

Prompt Templates

PromptDescription
setup_weather_accountGuided walkthrough for account creation and billing setup
check_weatherCheck current weather at a location by name
weather_forecastGet a daily or hourly forecast for a location

CLI Options

FlagDescriptionDefault
--api-key <key>Virga API keyVIRGA_API_KEY env var
--base-url <url>API base URLhttps://api.virga.dev
--helpShow help
--versionShow version

Getting an API Key

Use the setup_weather_account prompt template, or follow these steps:

  • Create an account: POST https://api.virga.dev/api/v1/accounts
  • Accept terms: POST https://api.virga.dev/api/v1/terms/accept
  • Set up billing: POST https://api.virga.dev/api/v1/billing/activate
  • Purchase credits: POST https://api.virga.dev/api/v1/billing/credits
  • Create a production key: POST https://api.virga.dev/api/v1/keys

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

Keywords

mcp

FAQs

Package last updated on 02 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts