wp-mcp
wp-mcp
是一个使用模型上下文协议 (MCP)构建的天气与 WordPress 集成工具。该项目提供两个主要功能:
使用国家气象局 API 的天气警报和预报。
来自个人 WordPress 博客(
hafiz.blog
)的各种内容。
该项目将这些功能作为 MCP 服务器内的工具公开,允许通过命令行界面轻松访问。
特征
天气工具
获取活动警报:获取美国某个州的当前天气警报。
获取预报:根据地理坐标(纬度和经度)获取天气预报。
WordPress 工具
获取最新帖子:从 WordPress 博客(具体来说,是我的个人博客hafiz.blog )中检索最近的 10 篇帖子。
获取类别:检索站点中的所有类别。
按类别获取帖子:通过提供类别 slug 检索特定类别的帖子。
把它们结合起来!
要同时使用这两种工具演示 Claude,您可以尝试一些巧妙的提示,例如:
“从 hafiz.blog 上的最新帖子中获取日期,并查看该日期旧金山的天气。”
“检查 hafiz.blog 中的所有类别,找到一个可能用印尼语写的类别,然后根据该类别中的一篇文章用印尼语为我创作一首诗。”
安装
先决条件
步骤:
npm run build
将服务器连接到需要在本地安装的 Claude Desktop。请按照此处的说明操作。
一旦 Claude Desktop 检测到 MCP 服务器,请尝试各种提示来检查天气,或获取 hafiz.blog 上的最新帖子,或执行如上所述的组合提示。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
一种集成工具,允许用户从国家气象局 API 获取天气警报/预报,并通过与 Claude 的自然语言交互从 hafiz.blog 检索最新帖子。
Related MCP Servers
- -securityFlicense-qualityA lightweight microservice that fetches weather alerts and forecasts from the National Weather Service API, providing U.S. state-level alerts and location-based forecasts.Last updated -
- AsecurityFlicenseAqualityProvides real-time weather forecasts and alerts by fetching data from the National Weather Service API, allowing Claude to answer weather-related questions with up-to-date information.Last updated -2
- -securityFlicense-qualityProvides weather forecast and alert data for US locations through the National Weather Service API, enabling access to real-time weather alerts by state and detailed forecasts by coordinates.Last updated -
- AsecurityFlicenseAqualityEnables AI assistants to access real-time US weather forecasts and alerts through the National Weather Service API.Last updated -23