About Workflows MCP Server
Workflows MCP Server wraps a weather workflow as a tool for querying city weather and also offers a direct REST API. The README notes possible compatibility issues with its MCP implementation and recommends the simplified API for immediate use.
Key features
- 01Query city weather with `get-weather`
- 02Provide the `check-weather` prompt template
- 03Have an LLM interpret weather data
- 04Offer a direct REST weather endpoint
Use cases
- 01Check current weather for a city
- 02Turn weather results into natural language
- 03Retrieve weather JSON through REST
MCP support
The MCP implementation uses HTTP/SSE and exposes the `get-weather` tool and `check-weather` prompt. The README notes possible compatibility issues.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWorkflows MCP Server
This is a Model Context Protocol (MCP) server that provides weather information for cities through a simple API.
Features
- This server exposes workflows as tools that can be consumed by agents. In this case a weather workflow is exposed as a set of tools:
- Exposes a
get-weathertool that fetches weather data for any city - Provides a
check-weatherprompt template for easy integration with LLMs - Uses HTTP/SSE transport for communication with clients
- Exposes a
Workflow Architecture

When the get-weather tool is called, it triggers a workflow that:
- Takes the city name as input
- Queries the OpenWeatherMap service for current weather data at that location
- Passes the raw weather data to an LLM for interpretation
- Returns a friendly, natural language description of the current weather conditions
This architecture allows for both accurate weather data retrieval and intelligent processing to provide weather information in a more conversational and easily understood format.
Note on Current Implementation
Due to some technical challenges with the MCP protocol implementation, we've provided two approaches:
-
Original MCP Server - The TypeScript implementation in the
srcdirectory, which may have some compatibility issues with current SDK versions. -
Simplified Direct API - A plain JavaScript implementation in the root directory (
direct-server.jsanddirect-client.js) that provides a simple RESTful endpoint without using the MCP protocol.
For immediate functionality, we recommend using the simplified direct API approach.
Prerequisites
- Node.js 18 or higher
- npm or yarn
Installation
- Clone this repository
- Install dependencies:
npm install
Usage - Simplified API Approach
-
Start the server:
node direct-server.js -
The server will start on port 3000 and provide:
- Weather API:
http://localhost:3000/api/weather?city=New%20York - Health check:
http://localhost:3000/health
- Weather API:
-
Run the client example:
node direct-client.js
Usage - MCP Approach
This approach requires building the TypeScript code and may have some compatibility issues:
-
Build the project:
npm run build -
Start the server:
npm start -
The server will start on port 3000:
- SSE endpoint:
http://localhost:3000/sse - Messages endpoint:
http://localhost:3000/messages?connectionId=YOUR_CONNECTION_ID - Health check:
http://localhost:3000/health
- SSE endpoint:
Understanding the Connection ID
The connection ID is a unique identifier assigned to each client session when connecting to the SSE endpoint. It serves as a crucial mechanism for maintaining bidirectional communication:
- When a client connects to the
/sseendpoint, the server generates a unique connection ID - This ID is returned to the client in the initial SSE response
- The client must include this ID as a query parameter in all subsequent requests to the
/messagesendpoint - This allows the server to route responses back to the correct client's SSE connection
For example, if your connection ID is 1742761520489, you would make tool calls to:
http://localhost:3000/messages?connectionId=1742761520489
API Reference
Direct API
GET /api/weather
Fetches weather information for a specified city.
Parameters:
city(string): The name of the city to get weather for.
Returns:
- JSON response with weather information.
MCP Tools
get-weather
Fetches weather information for a specified city.
Parameters:
city(string): The name of the city to get weather for.
Returns:
- Weather information as text.
MCP Prompts
check-weather
A prompt template for asking an LLM to check and summarize weather information.
Parameters:
city(string): The name of the city to check weather for.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.