{"id":27152342,"url":"https://github.com/tuankiri/weather-mcp-server","last_synced_at":"2025-04-13T12:53:32.401Z","repository":{"id":286783567,"uuid":"961948787","full_name":"TuanKiri/weather-mcp-server","owner":"TuanKiri","description":"A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. What makes it popular:","archived":false,"fork":false,"pushed_at":"2025-04-12T07:29:35.000Z","size":109,"stargazers_count":184,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T09:47:58.969Z","etag":null,"topics":["go","golang","mcp","mcp-server","sse","stdio"],"latest_commit_sha":null,"homepage":"https://news.ycombinator.com/item?id=43614582","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TuanKiri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-07T12:22:42.000Z","updated_at":"2025-04-12T06:40:07.000Z","dependencies_parsed_at":"2025-04-12T08:38:56.901Z","dependency_job_id":null,"html_url":"https://github.com/TuanKiri/weather-mcp-server","commit_stats":null,"previous_names":["tuankiri/weather-mcp-server"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuanKiri%2Fweather-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuanKiri%2Fweather-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuanKiri%2Fweather-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuanKiri%2Fweather-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TuanKiri","download_url":"https://codeload.github.com/TuanKiri/weather-mcp-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717258,"owners_count":21150388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","mcp","mcp-server","sse","stdio"],"created_at":"2025-04-08T15:26:03.173Z","updated_at":"2025-04-13T12:53:32.380Z","avatar_url":"https://github.com/TuanKiri.png","language":"Go","funding_links":[],"categories":["カテゴリ"],"sub_categories":["🛠️ \u003ca name=\"developer-tools\"\u003e\u003c/a\u003e開発ツール"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"example output template\" src=\"assets/weather.svg\"\u003e\n\n\u003ch1\u003eWeather API MCP Server\u003c/h1\u003e\n\n[![License](https://img.shields.io/badge/license-MIT-red.svg)](LICENSE)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/TuanKiri/weather-mcp-server)](go.mod)\n[![Go Report Card](https://goreportcard.com/badge/github.com/TuanKiri/weather-mcp-server?cache)](https://goreportcard.com/report/github.com/TuanKiri/weather-mcp-server)\n[![Build](https://github.com/TuanKiri/weather-mcp-server/workflows/Build/badge.svg)](https://github.com/TuanKiri/weather-mcp-server/actions?workflow=Build)\n\n\u003cstrong\u003e[Report Bug](https://github.com/TuanKiri/weather-mcp-server/issues/new?assignees=\u0026labels=bug\u0026projects=\u0026template=bug_report.yml)\u003c/strong\u003e | \u003cstrong\u003e[Request Feature](https://github.com/TuanKiri/weather-mcp-server/issues/new?assignees=\u0026labels=enhancement\u0026projects=\u0026template=feature_request.yml)\u003c/strong\u003e\n\n\u003c/div\u003e\n\nA lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"demo example\" src=\"assets/weather.gif\" width=\"480\"\u003e\n\u003c/div\u003e\n\n## Installing on Claude Desktop\n\nTo use your MCP server with Claude Desktop, add it to your Claude configuration:\n\n#### 1. Local mode\n\n```json\n{\n  \"mcpServers\": {\n    \"weather-mcp-server\": {\n      \"command\": \"/path/to/weather-mcp-server\",\n      \"args\": [],\n      \"env\": {\n        \"WEATHER_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nYou can get an API key from your personal account on [WeatherAPI](https://www.weatherapi.com/my/).\n\n#### 2. Remote mode\n\n```json\n{\n  \"mcpServers\": {\n    \"weather-mcp-server\": {\n      \"url\": \"http://host:port/sse\"\n    }\n  }\n}\n```\n\n## Build from source\n\nYou can use `go` to build the binary in the `cmd/github-mcp-server` directory.\n\n```shell\ngo build -o weather-mcp-server ./cmd/weather-mcp-server\n```\n\n## Using MCP with Docker Containers\n\n#### 1. Build the Docker image:\n\n```shell\ndocker build -t weather-mcp-server .\n```\n\n#### 2. Run the Docker Container:\n\n```shell\ndocker run -e WEATHER_API_KEY=your-api-key -d --name weather-mcp-server -p 8000:8000 weather-mcp-server\n```\n\nReplace `your-api-key` with your actual [WeatherAPI](https://www.weatherapi.com/my/) API key.\n\n## Tools\n\n- **current_weather** - Gets the current weather for a city\n\n  - `city`: The name of the city (string, required)\n\n## Project Structure\n\nThe project is organized into several key directories:\n\n```shell\n├── cmd\n│   └── weather-mcp-server\n├── internal\n│   └── server\n│       ├── handlers # MCP handlers\n│       ├── services # Business logic layer\n│       │   ├── core # Core application logic\n│       │   └── mock # Mock services for testing\n│       ├── tools # MCP tools\n│       └── view # Templates for displaying messages\n└── pkg\n```\n\n## Contributing\n\nFeel free to open tickets or send pull requests with improvements. Thanks in advance for your help!\n\nPlease follow the [contribution guidelines](.github/CONTRIBUTING.md).\n\n## License\n\nThis MCP server is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuankiri%2Fweather-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuankiri%2Fweather-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuankiri%2Fweather-mcp-server/lists"}