Token导航 LogoToken导航TokenDH.com
Weather By API Ninjas logo
数据服务stdio官方级别未说明来源级核验

Weather By API Ninjas

MCP Server

一个用于访问Weather By Api Ninjas API的MCP服务器,提供天气数据查询功能。

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
位置天气数据分析PythonClaudeAPI集成Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

BACH-AI-Tools

提供方

BACH-AI-Tools

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install bach-weather_by_api_ninjas

详细介绍

Weather By Api Ninjas MCP Server

English |Simplified Chinese| Traditional Chinese

MCP server used to access Weather By API Ninjas API.

🚀 Quickly experience using the EMCP platform

EMCP It is a powerful MCP server management platform that allows you to quickly use various MCP servers without manual configuration!

Quick Start:

  1. 🌐 visit EMCP platform
  2. 📝 Register and log in to your account
  3. 🎯 enter MCP SquareBrowse all available MCP servers
  4. 🔍 Search or find this server(bach-weather_by_api_ninjas
  5. 🎉 click Install MCP button
  6. ✅ Done! Can be used in your application

Advantages of the EMCP platform:

  • Zero configurationNo need to manually edit configuration files
  • 🎨 Visual managementEasily manage all MCP servers through a graphical interface
  • 🔐 safe and reliableUnified management of API keys and authentication information
  • 🚀 One-click installationMCP Square offers a wide range of server options
  • 📊 Use statisticsReal time viewing of service invocation status

Visit Now EMCP platform Start your MCP journey!

______________________________________________________________________

Introduction

This is an MCP server used to access the Weather By Api Ninjas API.

  • PyPI package name: bach-weather_by_api_ninjas
  • version: 1.0.0
  • transmission protocol: stdio

install

Install from PyPI:

pip install bach-weather_by_api_ninjas

Install from source code:

pip install -e .

run

Method 1: Use UVX (recommended, no installation required)

# 运行(uvx 会自动安装并运行)
uvx --from bach-weather_by_api_ninjas bach_weather_by_api_ninjas

# 或指定版本
uvx --from bach-weather_by_api_ninjas@latest bach_weather_by_api_ninjas

Method 2: Direct Run (Development Mode)

python server.py

Method 3: Run as a command after installation

# 安装
pip install bach-weather_by_api_ninjas

# 运行(命令名使用下划线)
bach_weather_by_api_ninjas

configuration

API certification

This API requires authentication. Please set environment variables:

export API_KEY="your_api_key_here"

environment variable

Variable NameDescriptionRequired
API_KEYAPI KeyYes
PORTNot applicableNo
HOSTNot applicableNo

Use in cursor

Edit cursor MCP configuration file ~/.cursor/mcp.json:

{
  "mcpServers": {
    "bach-weather_by_api_ninjas": {
      "command": "uvx",
      "args": ["--from", "bach-weather_by_api_ninjas", "bach_weather_by_api_ninjas"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

Using Claude Desktop

Edit Claude Desktop configuration file claude_desktop_config.json:

{
  "mcpServers": {
    "bach-weather_by_api_ninjas": {
      "command": "uvx",
      "args": ["--from", "bach-weather_by_api_ninjas", "bach_weather_by_api_ninjas"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

Available tools

This server provides the following tools:

v1weather

API Ninjas Weather API endpoint.

endpoint: GET /v1/weather

parameter:

  • lat (number): Latitude of desired location. If used, lon parameter must also be supplied.
  • lon (string): Longitude of desired location. If used, lat parameter must also be supplied.
  • zip (number): 5-digit Zip code (United States only).
  • city (string): City name.
  • state (string): US state (United States only).
  • country (string): Country name.

______________________________________________________________________

tech stack

  • transmission protocol: stdio
  • HTTP client: httpx

license

MIT License - see details LICENSE Document.

development

This server is composed of API-to-MCP Tool generation.

Version: 1.0.0

目录标签

目录标签

位置天气数据分析PythonClaudeAPI集成天气服务本地部署MCP服务器数据查询

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-keyremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP