@virga-mcp/server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@virga-mcp/server what's the weather in San Francisco right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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/serverCodex CLI
codex mcp add virga-weather --env VIRGA_API_KEY=sk_virga_prod_xxx -- npx -y @virga-mcp/serverGemini CLI
gemini mcp add virga-weather -- npx -y @virga-mcp/server --api-key sk_virga_prod_xxxOr 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.jsonWindows:
%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/serverRelated MCP server: Open-Meteo MCP Server
Weather Tools
Tool | Description | Credits |
| Current weather conditions for a lat/lon | 1 |
| Hourly forecast (1-120 hours) | 2 |
| Daily forecast (1-16 days) | 2 |
| Historical weather for a specific date | 3 |
| Geocode a place name to lat/lon | 0 (free) |
Account & Billing Tools
Tool | Description |
| Create a new account, get a stage API key |
| Accept the current terms of service |
| Set up payment method (returns Stripe checkout URL) |
| Buy a credit bundle (returns Stripe checkout URL) |
| Credit balance, spend caps, auto-topup config |
| List all API keys for the account |
| Create a new API key (stage or production) |
| Permanently revoke an API key |
| API usage history with credit costs |
Resources
Resource | URI | Description |
Account Status |
| Credit balance, rate limits, usage |
Terms |
| Current terms of service |
Pricing |
| Credit costs per tool and bundles |
OpenAPI Spec |
| Full OpenAPI 3.1 specification |
Onboarding |
| Step-by-step autonomous setup guide |
Docs |
| Condensed LLM-friendly documentation |
Prompt Templates
Prompt | Description |
| Guided walkthrough for account creation and billing setup |
| Check current weather at a location by name |
| Get a daily or hourly forecast for a location |
CLI Options
Flag | Description | Default |
| Virga API key |
|
| API base URL |
|
| Show help | |
| Show 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/accountsAccept terms:
POST https://api.virga.dev/api/v1/terms/acceptSet up billing:
POST https://api.virga.dev/api/v1/billing/activatePurchase credits:
POST https://api.virga.dev/api/v1/billing/creditsCreate 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 toolsaccept_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
Scored across 14 tools
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.
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.
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.
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
Related MCP Connectors
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
OpenWeather data for AI agents: list feeds, sign up, check balance, get a top-up link, fetch data.
Current weather and forecast lookup as an agent tool.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes 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.-
- AlicenseBqualityBmaintenanceProvides 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.171,092 npm74MIT
- FlicenseNot gradedqualityDmaintenanceProvides 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-
- AlicenseNot gradedqualityFmaintenanceProvides weather and climate intelligence for AI agents, including current conditions, forecasts, historical data, severe-weather alerts, agricultural outlook, and travel conditions via free and paid tools.1MIT