MCP Server - CLI & IDEs
Use the Xweather MCP Server from Cursor, VS Code, a supported JetBrains IDE, Claude Code, or GitHub Copilot CLI. Follow the setup for your development environment to access Xweather tools alongside your code.
VS Code
- Update to the latest GitHub Copilot and Copilot Chat extensions.
- Open the command palette and run MCP: Add Server.
- Choose HTTP or HTTP(s), then enter
https://mcp.api.xweather.com/mcp. - Give the server a label such as
xweatherfor quick identification. - Add your API key when prompted for the credential.
- Review and accept the trust prompt so VS Code can start the server and discover its tools.
- If you want to limit the server to a specific repo or workflow, add an
allowed_toolsallowlist in the workspace MCP config instead of leaving the full tool set enabled.
Cursor Desktop
-
On the leftand panel, select Customize
-
Select MCPs, then New MCP Server
-
Add the following configuration to the newly opened
.cursor/mcp.json. If the file already contains servers, addXweatherto the existingmcpServersobject.{ "mcpServers": { "Xweather": { "url": "https://mcp.api.xweather.com/mcp" } } } -
Save the file. Then complete the OAuth sign-in in your browser using your Xweather client ID and client secret.
-
Alternatively, authenticate directly with an API key by adding an Authorization header:
{
"mcpServers": {
"Xweather": {
"url": "https://mcp.api.xweather.com/mcp",
"headers": {
"Authorization": "Bearer ${env:XWEATHER_API_KEY}"
}
}
}
}JetBrains IDEs
- Install or update the GitHub Copilot plugin for your JetBrains IDE.
- Open the GitHub Copilot settings or MCP configuration page in the IDE preferences.
- Add a new HTTP MCP server with the URL
https://mcp.api.xweather.com/mcp. - Enter your API key when prompted.
- Save the config and reload or restart the IDE if the server does not appear immediately.
CLI Workflows
Claude Code and GitHub Copilot CLI follow the same standard MCP workflow for remote HTTP servers:
- Launch a session in your project directory (
claudeorcopilot). - Add the Xweather MCP server using your CLI’s
mcp addcommand:
Claude Code
claude mcp add --transport http xweather https://mcp.api.xweather.com/mcp \
--header "Authorization: Bearer <client_id>_<client_secret>"- Run
/mcpin your active session to verify that the server is connected and authenticated.
Prompt Ideas
- “Draft a README section explaining the lightning tool output format.”
- “Update
.env.exampleto include the MCP API key with helpful comments.” - “Suggest integration tests for the custom agent that polls
xweather_get_forecast_weather.”