wp-mcp
About
wp-mcp is a Model Context Protocol (MCP) server that provides two primary features: weather alerts and forecasts via the National Weather Service API, and access to content from a personal WordPress blog (hafiz.blog). It is built for developers using Claude Desktop who want to…
Details
- Author
- hafizrahman
- Downloads
- 230
- Categories
- Other
Jump to
- Get active weather alerts for a U.S. state.
- Get weather forecasts by latitude/longitude coordinates.
- Retrieve the 10 most recent posts from hafiz.blog.
- Retrieve all categories from the blog.
- Retrieve posts by category slug.
Install Node.js (v14+), run npm run build, then connect the server to Claude Desktop by following the MCP quickstart guide. Once connected, try prompts to check weather, retrieve blog posts, or combine both tools.
wp-mcp
wp-mcp is a weather and WordPress integration tool built using the Model Context Protocol (MCP). This project provides two primary features:
1. Weather Alerts & Forecasts using the National Weather Service API.
2. Various contents from a personal WordPress blog (hafiz.blog).
The project exposes these features as tools within a MCP server, allowing easy access through a command-line interface.
Features
Weather Tools
- Get Active Alerts: Fetch current weather alerts for a U.S. state. - Get Forecast: Get weather forecasts based on geographical coordinates (latitude and longitude).WordPress Tools
- Get Latest Posts: Retrieve the 10 most recent posts from a WordPress blog (specifically, my personal blog hafiz.blog). - Get Categories: Retrieve all categories in the site. - Get Posts by Category: Retrieve posts from a specific category by providing the category slug.Combine them!
To demo Claude using both tools at once, you can try some clever prompt like: - "Get the date from the latest post on hafiz.blog, and check the weather in San Francisco on that date." - "Check all the categories in hafiz.blog, find one that's likely written in Indonesian, and then make me an poem in Indonesian language based on a post from that category."Installation
Prerequisites
- Node.js (v14.x or above) - npmSteps:
1. npm run build
2. Connect the server with Claude Desktop, which needs to be installed locally. Follow the instruction here.
3. Once Claude Desktop detects the MCP server, try various prompts to check weather, or get latest posts on hafiz.blog, or do a combo prompt as mentioned above.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



