AM

aleonelhp/mcp

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 49 趋势 0

A simple MCP to fetch the weather information, tourist attractions and points of interest in a city.

概览

A simple MCP server that gives Claude the ability to fetch real-time weather data and find tourist attractions in any city. - Get current weather information for any city - Find tourist attractions, restaurants, cafes, and parks - Real-time data from public APIs : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json Gets weather data for a city including temperature, humidity, precipitation, and wind speed. Finds points of interest within 5km of a city center including tourist attractions, restaurants, cafes, and parks. - Open-Meteo - Weather and geocoding data - Overpass API - OpenStreetMap places data

README

MCP Weather & Places Server

A simple MCP server that gives Claude the ability to fetch real-time weather data and find tourist attractions in any city.

Features

  • Get current weather information for any city
  • Find tourist attractions, restaurants, cafes, and parks
  • Real-time data from public APIs

Installation

npm install
npm run build

Configuration

Add to your Claude Desktop config file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "weather-places": {
      "command": "node",
      "args": ["/absolute/path/to/your/project/build/main.js"]
    }
  }
}

Restart Claude Desktop.

Tools

fetch-weather

Gets weather data for a city including temperature, humidity, precipitation, and wind speed.

Parameters:

  • city (string): City name

fetch-places

Finds points of interest within 5km of a city center including tourist attractions, restaurants, cafes, and parks.

Parameters:

  • city (string): City name

APIs Used

License

MIT

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "weather-places": { "command": "node", "args": ["/absolute/path/to/your/project/build/main.js"] } } }