Generates ready-to-render Chart.js configurations for visualizing time-series forecasts, featuring historical data points, predicted trends, and confidence intervals.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prophet MCP ServerForecast the next 7 days of sales based on this historical data."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Prophet MCP Server
An open-source Model Context Protocol (MCP) server engineered for Time-Series Forecasting.
Powered by Meta's Prophet, this server enables LLMs to generate accurate forecasts, trend analyses, and confidence intervals from historical data β turning raw numbers into actionable insights within AI workflows.
Note: This project is a specialized fork of the sendgrid-mcp server, re-engineered to provide robust forecasting capabilities via the MCP protocol.
π Key Capabilities
1. Predictive Modeling
Leverages Meta's Prophet to predict future trends based on historical data. Handles seasonality, outliers, and trend changes automatically.
2. LLM-Friendly Output
Returns data in a format optimized for Large Language Models:
Plain-English Summaries: Instant context on trends (e.g., "Trending UPWARD by +51.7%").
Statistical Breakdowns: Historical vs. Forecasted means, min/max, standard deviations.
Chart.js Config: Ready-to-render visualization config for web deployment.
3. Bounds Validation
Optional upper/lower limits to flag out-of-bounds forecasts β turning predictions into decision-support with business-rule enforcement.
4. Interactive Visualization
Includes Chart.js configuration in every response with:
Red dots for actual historical data
Dashed blue line for forecast predictions
Shaded confidence interval band
Red/orange dashed limit lines (when bounds are set)
π How It Works
π Real-World Example
Let's say you tracked daily website conversions over 10 days and want to forecast the next 5 days β with a safety limit of max 22 conversions (your team can't handle more).
Input
Output
No data-science expertise required. The output tells you the trend direction, flags risky dates, and provides visualization config β all in plain text.
π οΈ Tool: forecast_time_series
Description
Ingests time-series data and returns a future forecast with a detailed text summary, bounds validation, and Chart.js visualization config.
Input Parameters
Parameter | Type | Required | Default | Description |
|
| β Yes | β | List of dates in ISO format (YYYY-MM-DD) |
|
| β Yes | β | List of numeric values aligned with |
|
| No |
| Number of future periods to forecast |
|
| No | β | Flag forecast values below this threshold |
|
| No | β | Flag forecast values above this threshold |
Output Columns
Column | Meaning |
| Date for the observed or predicted value |
| Predicted value (model's best estimate) |
| Lower bound of confidence interval (worst-case) |
| Upper bound of confidence interval (best-case) |
| β OK, β οΈ EXCEEDS UPPER, or β οΈ BELOW LOWER (only when limits are set) |
Understanding the Two Types of Bounds
|
| |
Set by | Prophet model (automatic) | You (manual) |
Purpose | Statistical confidence range | Business rule enforcement |
Answers | "How sure is the model?" | "Is the forecast safe for my business?" |
Example | "Revenue will be 800β1200" | "Our warehouse can't handle > 1000 orders" |
π Project Structure
π¦ Installation & Setup
Prerequisites
Anaconda or Miniconda (recommended for Prophet dependencies)
Python 3.11+
1. Environment Setup
Windows Users: Prophet requires
CmdStan. If you encounter issues, refer to the Prophet Installation Guide or install via conda:conda install -c conda-forge prophet.
2. Configuration
The server uses Bearer Token authentication. Set the MCP_TOKEN environment variable, or it defaults to the value in app.py:
πββοΈ Running the Server
Server URL:
http://localhost:3000MCP Endpoint:
POST http://localhost:3000/mcp
Authentication
All requests must include the header:
Example API Call (cURL)
π§ͺ Testing & Visualization
Local Testing Script
This script will:
Call your MCP server's API
Extract the Chart.js config from the response
Generate
forecast_chart.htmlwith an interactive chartOpen it in your default browser
The generated chart features a dark glassmorphism theme with:
π΄ Red dots β Historical actuals
π΅ Dashed blue line β Forecast predictions
π¦ Shaded blue band β Confidence interval
π΄ Red dashed line β Upper limit (if set)
π Orange dashed line β Lower limit (if set)
βοΈ Cloud Deployment
For deploying to Google Cloud (or any cloud provider), you only need:
The examples/ folder is for local testing only and is not required in production.
π Security
Bearer Token authentication on all endpoints
Token configurable via
MCP_TOKENenvironment variableJSON-RPC error handling with proper error codes
Input validation on all tool parameters
π Dependencies
Package | Purpose |
| Web server framework |
| Data manipulation |
| Time-series forecasting engine |
| HTTP client (examples only) |
π License
MIT License
π₯ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Author: Pradeep Chandra Kalahasthi
Original Base: sendgrid-mcp