MCP.so
ログイン

Weather MCP Server in TypeScript

@rehmat123

基本情報

カテゴリ

メディアとデザイン

トランスポート

stdio

作者

rehmat123

Weather MCP Server in TypeScript について

概要はまだありません

Weather MCP Server in TypeScript の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": [
        "@rehmatalisayany/weather-mcp-server"
      ]
    }
  }
}

Weather MCP Server in TypeScript のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is Weather MCP Server in TypeScript?

A Model Context Protocol (MCP) server that fetches current weather data using the Open-Meteo API. It integrates with Cursor IDE and Langchain agents, providing a single tool to retrieve weather information for any location.

How to use Weather MCP Server in TypeScript?

Install locally by cloning the repository, running npm i and npm build, then connecting via StdioClientTransport with command node dist/index.js. For remote use without local installation, use npx @rehmatalisayany/weather-mcp-server with StdioClientTransport. In Cursor IDE, add a server entry in cursor.json using the remote command and stdio transport.

Key features of Weather MCP Server in TypeScript

  • Single tool getWeather to retrieve current weather.
  • Returns temperature (Celsius), conditions, humidity, and wind speed.
  • Uses the free Open-Meteo API (no API key required).
  • Supports both local and remote (npx) deployment.
  • Can be integrated with Cursor IDE and Langchain agents.
  • Written in TypeScript and distributed as an npm package.

Use cases of Weather MCP Server in TypeScript

  • Get current weather information directly within Cursor IDE.
  • Use as a tool in a Langchain agent or other MCP-compatible applications.
  • Quickly answer weather queries without leaving the development environment.

よくある質問

1

How do I connect to the Weather MCP Server in Cursor IDE?

Add the following configuration to your `cursor.json`: `"weather": { "command": "@rehmatalisayany/weather-mcp-server", "transport": "stdio" }`.

2

How do I run the server locally?

Clone the repository, run `npm i` and `npm build`, then use `node dist/index.js` as the command in your MCP client.

3

How do I use the remote version without installation?

Use `npx @rehmatalisayany/weather-mcp-server` as the command with `StdioClientTransport`. No local installation is needed.

4

What tool does the server provide?

It provides the `getWeather` tool, which accepts a `location` string (city name) and returns `temperature` (Celsius), `conditions` (description), `humidity` (%), and `windSpeed` (m/s).

5

Is there example client code?

Yes, the repository includes `get-weather.ts` (not shown in full) that demonstrates connecting to the MCP server using `StdioClientTransport`.

コメント

「メディアとデザイン」の他のコンテンツ