wp-mcp logo

wp-mcp

by hafizrahman

wp-mcp is a weather and WordPress integration tool built using the Model Context Protocol (MCP). It provides weather alerts/forecasts and content from a WordPress blog, exposing them as tools within an MCP server.

View on GitHub

Last updated: N/A

What is wp-mcp?

wp-mcp is an MCP server that integrates weather data from the National Weather Service API and content from a WordPress blog. It allows users to access weather alerts, forecasts, and WordPress posts, categories, and posts by category through a command-line interface.

How to use wp-mcp?

First, install Node.js and npm. Then, run npm run build. Connect the server with Claude Desktop, following the instructions at https://modelcontextprotocol.io/quickstart/server#test-with-commands. Once detected, use various prompts to interact with weather data or WordPress content.

Key features of wp-mcp

  • Fetch current weather alerts for a U.S. state.

  • Get weather forecasts based on geographical coordinates.

  • Retrieve the 10 most recent posts from a WordPress blog.

  • Retrieve all categories in the site.

  • Retrieve posts from a specific category by providing the category slug.

Use cases of wp-mcp

  • Check the weather forecast for a specific location.

  • Retrieve the latest posts from a WordPress blog.

  • Analyze WordPress content based on categories.

  • Combine weather and WordPress data for contextual insights.

FAQ from wp-mcp

What is MCP?

MCP stands for Model Context Protocol, a framework for building and integrating tools.

What WordPress blog is used?

The server uses hafiz.blog as the default WordPress site.

What weather API is used?

The server uses the National Weather Service API.

What Node.js version is required?

Node.js version 14.x or above is required.

How do I connect to Claude Desktop?