Menyediakan prakiraan cuaca dan peringatan dengan menghubungkan AI client ke US National Weather Service API.
Juga dikenal sebagai dingw1982/quickstart-resources, quickstart-resources, @dingw1982/mcp-quickstart-ts
- Stars
- 0
- Tools
- —
- Unduhan, 30 hari
- 116
- Versi terbaru
- 1.0.1
- Commit terakhir
- 9 Sep 2026
- Lisensi
- —
Apa itu Weather MCP?
Menyediakan prakiraan cuaca dan peringatan dengan menghubungkan AI client ke US National Weather Service API.
Ringkasan dibuat dari README proyek
Tentang Weather MCP server
Server ini memungkinkan Anda mengakses data US National Weather Service melalui AI assistant. Server ini berfungsi sebagai jembatan antara LLM client dan informasi cuaca resmi dengan menyediakan tool khusus untuk mengambil data meteorologi. Developer dapat menggunakan ini untuk membangun chatbot yang memahami kondisi cuaca terkini dan peringatan keselamatan.
Server ini beroperasi melalui stdio dan tersedia dalam berbagai implementasi termasuk Python, TypeScript, Go, Rust, dan Ruby. Terdapat dua tool utama yang disediakan: get_forecast dan get_alerts. Untuk menggunakan contoh client yang tersedia, Anda memerlukan ANTHROPIC_API_KEY untuk menjalankan chat loop, meskipun koneksi ke server dapat diverifikasi tanpa kredensial.
Proyek ini berfungsi sebagai contoh fungsional untuk Model Context Protocol. Ini mendemonstrasikan cara menghubungkan client ke server agar AI dapat memanggil tool dan menerima hasil yang terstruktur. Anda dapat mencampur berbagai bahasa pemrograman, seperti menggunakan Python client untuk menjalankan TypeScript server.
Apa yang bisa Anda lakukan dengannya
- 1Verifikasi konektivitas tool MCPMenguji koneksi antara client dan server tanpa memerlukan API key.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Weather MCP
Format diverifikasi 10 Nov 2026Tambahkan ke CursorTambahkan ke GooseInstal Weather MCP di Claude Code
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quickstart-resources -- npx -y @dingw1982/mcp-quickstart-tsInstal Weather MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"quickstart-resources": {
"command": "npx",
"args": [
"-y",
"@dingw1982/mcp-quickstart-ts"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Instal Weather MCP di VS Code
.vscode/mcp.json
{
"servers": {
"quickstart-resources": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dingw1982/mcp-quickstart-ts"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Instal Weather MCP di VS Code CLI
$ code --add-mcp '{"name":"quickstart-resources","type":"stdio","command":"npx","args":["-y","@dingw1982/mcp-quickstart-ts"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'Instal Weather MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"quickstart-resources": {
"command": "npx",
"args": [
"-y",
"@dingw1982/mcp-quickstart-ts"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Instal Weather MCP di Codex
$ codex mcp add quickstart-resources --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @dingw1982/mcp-quickstart-tsInstal Weather MCP di Codex config.toml
~/.codex/config.toml
[mcp_servers.quickstart-resources] command = "npx" args = ["-y", "@dingw1982/mcp-quickstart-ts"] [mcp_servers.quickstart-resources.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
Instal Weather MCP di Gemini CLI
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quickstart-resources npx -- -y @dingw1982/mcp-quickstart-tsInstal Weather MCP di Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"quickstart-resources": {
"command": "npx",
"args": [
"-y",
"@dingw1982/mcp-quickstart-ts"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Konfigurasi
YOUR_API_KEYWajibRahasiaYour API key for the service
| Nama | Deskripsi | Tipe |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | WajibRahasia |
Pengecekan otomatis
Berjalan 15 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks · Yang perlu diperbaiki untuk menambah poin
- Source repository terhubung dan dapat dijangkaudingw1982/quickstart-resources is public and reachablegithub.com/dingw1982/quickstart-resources ↗Lolos
- Nama paket mencantumkan repositori ini sebagai sumbernya@dingw1982/mcp-quickstart-ts names dingw1982/quickstart-resources as sourcenpmjs.com/package/@dingw1982/mcp-quickstart-ts ↗Lolos
- Provenance build (atestasi Sigstore)No build attestation published for this releaseTidak diperiksa
- Lisensi open source (OSI)No licenseTemuan
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-09-09github.com/dingw1982/quickstart-resources ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from @dingw1982/mcp-quickstart-tsLolos
- Tidak ada advisory kritis pada paket atau dependensinya4 resolved dependencies checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote merespons handshake MCPTidak diperiksa
README
Lihat di GitHubMCP Quickstart Resources
Example servers and clients for the Model Context Protocol (MCP), in five languages. These are companion examples for two official tutorials:
- Build an MCP server – a simple MCP weather server exposing two tools backed by the US National Weather Service API
- Build an MCP client – an LLM-powered chatbot MCP client that connects to any stdio server and lets Claude call its tools
What's in this repository
Each example lives in its own directory with its own README covering prerequisites, setup, and how to run it:
| Language | Weather server (MCP server) | Chatbot (MCP client) |
|---|---|---|
| Python | weather-server-python |
mcp-client-python |
| TypeScript | weather-server-typescript |
mcp-client-typescript |
| Go | weather-server-go |
mcp-client-go |
| Rust | weather-server-rust |
mcp-client-rust |
| Ruby | weather-server-ruby |
mcp-client-ruby |
All servers communicate over stdio and expose the same two tools: get_forecast and get_alerts (or get-forecast and get-alerts in TypeScript).
All clients launch a server, list its tools, and start an interactive chat loop in which Claude can call those tools. The Python, TypeScript, and Ruby clients take a path to a server script; the Go and Rust clients take the command to run, plus any arguments.
Note: These example clients need an ANTHROPIC_API_KEY to operate. Without a key, each client still connects and lists the server's tools before exiting, so you can verify the MCP wiring without credentials.
You can mix and match across languages: for example, the Python client can drive the TypeScript server. Each client's README lists which server launch forms it supports.
The tests directory contains the smoke tests that run in CI against these examples. See tests/README.md for how they work.
Prerequisites
Each example only needs its own language toolchain. To work across the whole repository (for example, to run the smoke tests) you need:
- Node.js 24+ and npm
- Python 3.10+ and uv
- Go 1.25+
- Rust 1.88+ and Cargo
- Ruby 3.4+ and Bundler
Running the tests
./tests/smoke-test.sh
The smoke tests verify that every server starts and answers MCP requests (including validating structured tool results against the schemas each tool advertises), and that the Python, TypeScript, and Ruby clients can connect to a mock server and list tools. They run automatically on every pull request via GitHub Actions.
Contributing
Contributions are welcome. To submit a change:
- Fork the repository and create a branch from
main. - Make your change. Keep the examples minimal - they exist to teach the protocol, not to be production services.
- If you change an example's behavior, setup, or dependencies, update that example's README to match.
- Run
./tests/smoke-test.shand make sure it passes. - Open a pull request against
maindescribing what changed and why.
A few conventions to follow, in line with the broader Model Context Protocol contributing guidelines:
- Keep documentation clear, concise, and technically accurate. Include code examples where appropriate, and test the commands and links you add.
- Disclose AI assistance. If you used any kind of AI assistance to prepare your contribution, say so in the pull request or issue. See AI_POLICY.md for what the disclosure should cover.
- Be respectful. This project follows the MCP community's Code of Conduct. Concerns can be reported to mcp-coc@anthropic.com.
Security note
These examples are intentionally minimal. If you expose an MCP server over a network (HTTP/SSE/WebSocket), add authentication and basic hardening (CORS allowlist, request size limits, timeouts, rate limits, and log redaction). See SECURITY.md.
License
The MCP project is transitioning from the MIT License to Apache-2.0. New code contributions are licensed under Apache-2.0, and documentation (excluding specifications) under CC-BY-4.0. Earlier contributions whose authors have not consented to relicensing remain under the MIT License. See LICENSE for the full terms.
Pertanyaan tentang Weather MCP
Bagaimana cara menambahkan Weather MCP ke Claude Code?
Jalankan claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' quickstart-resources -- npx -y @dingw1982/mcp-quickstart-ts di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Weather MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Tool apa saja yang disediakan oleh weather server ini?
Server ini menyediakan dua tool: get_forecast dan get_alerts.
Apakah client memerlukan API key untuk melihat daftar tool?
Tidak, Anda dapat memverifikasi koneksi MCP dan melihat daftar tool tanpa kredensial, meskipun ANTHROPIC_API_KEY tetap diperlukan untuk operasional penuh.
Bisakah saya menggunakan bahasa pemrograman yang berbeda untuk client dan server?
Ya, Anda bisa mencampur berbagai bahasa, seperti menggunakan Python client untuk menjalankan TypeScript server.