Workflows MCP Server
A server that provides an integration through both direct REST endpoints and Model Context Protocol (MCP) integration to a workflow engine.
popand
README
Workflows 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-weather
tool that fetches weather data for any city - Provides a
check-weather
prompt 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
src
directory, which may have some compatibility issues with current SDK versions. -
Simplified Direct API - A plain JavaScript implementation in the root directory (
direct-server.js
anddirect-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
/sse
endpoint, 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
/messages
endpoint - 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
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.