You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A production-ready Model Context Protocol (MCP) server that integrates the FAIM time series forecasting SDK with any MCP-compatible AI assistant, enabling AI-powered forecasting capabilities.
3
+
A Model Context Protocol (MCP) server that integrates the FAIM time series forecasting SDK with any MCP-compatible AI assistant, enabling AI-powered forecasting capabilities.
4
4
5
-
**Now powered by the official `@modelcontextprotocol/sdk`** - No manual protocol implementation, full type safety, and complete MCP specification compliance.
6
5
7
6
## Overview
8
7
9
-
This MCP server exposes two forecasting models from the FAIM API:
10
-
-**Chronos2**: General-purpose time series forecasting model
11
-
-**TiRex**: Alternative forecasting model with different characteristics
12
-
13
-
### Official SDK Implementation
14
-
15
-
This server uses the **official `@modelcontextprotocol/sdk`** package from Anthropic. Key benefits:
16
-
17
-
-**Zero Manual Protocol Handling**: The SDK completely handles JSON-RPC 2.0 protocol, message formatting, and transport
18
-
-**Production-Ready**: Maintained by Anthropic, used in production Claude integrations
19
-
-**Type-Safe**: Full TypeScript support with complete type definitions
20
-
-**Forward Compatible**: Automatic support for future MCP protocol updates
21
-
-**Minimal Code**: ~250 lines of application code vs ~400 lines of custom protocol handling
22
-
-**Built-in Validation**: Schema validation and error handling provided by SDK
8
+
This MCP server currently exposes two foundation time-series models from the FAIM API for zero-shot forecasting:
9
+
-**Chronos2**
10
+
-**TiRex**
23
11
24
12
### Key Features
25
13
26
14
✅ **Two MCP Tools**:
27
15
-`list_models`: Returns available forecasting models and capabilities
28
16
-`forecast`: Performs point and probabilistic time series forecasting
29
17
30
-
✅ **Production-Ready**:
31
-
- Comprehensive error handling with helpful error messages
32
-
- Input validation with detailed feedback
33
-
- JSON-RPC stdio communication (MCP protocol)
34
-
- Full TypeScript type safety
35
-
- Extensive test coverage
36
-
37
18
✅ **Flexible Input Formats**:
38
19
- 1D arrays: Single univariate time series
39
-
- 2D arrays: Multivariate or batch time series
40
-
- 3D arrays: Explicit batch/sequence/feature format
20
+
- 3D arrays: batch/sequence/feature format
41
21
42
22
✅ **Probabilistic Forecasting**:
43
23
- Point forecasts (single value predictions)
@@ -51,15 +31,15 @@ This server uses the **official `@modelcontextprotocol/sdk`** package from Anthr
51
31
52
32
- Node.js 20+
53
33
- npm 10+
54
-
- FAIM API key (set as `FAIM_API_KEY` environment variable)
34
+
-**FAIM API key**: Register at [https://faim.it.com/](https://faim.it.com/) to get your `FAIM_API_KEY`
55
35
56
36
### Option 1: Install from npm (Recommended)
57
37
58
38
```bash
59
39
npm install @faim-group/mcp
60
40
```
61
41
62
-
Then configure Claude Desktop to use it:
42
+
Then configure your client to use it:
63
43
64
44
```json
65
45
{
@@ -81,7 +61,7 @@ Or if installed globally:
81
61
npm install -g @faim-group/mcp
82
62
```
83
63
84
-
Then in Claude Desktop config:
64
+
Then in config:
85
65
86
66
```json
87
67
{
@@ -116,7 +96,7 @@ npm test
116
96
npm run lint
117
97
```
118
98
119
-
Then in Claude Desktop config, use the local path:
99
+
Then use the local path:
120
100
121
101
```json
122
102
{
@@ -140,9 +120,6 @@ Then in Claude Desktop config, use the local path:
140
120
# Required: Your FAIM API key
141
121
export FAIM_API_KEY="your-api-key-here"
142
122
143
-
# Optional: Custom API base URL (defaults to production)
# Optional: Set to non-production for verbose logging
147
124
export NODE_ENV=development
148
125
```
@@ -151,15 +128,6 @@ export NODE_ENV=development
151
128
152
129
This server implements the **Model Context Protocol (MCP)**, an open protocol for connecting AI assistants to external tools and data sources. MCP is not limited to Claude - it works with any application that implements an MCP client.
153
130
154
-
### Supported Clients & Platforms
155
-
156
-
-**Claude Desktop** - Native MCP integration
157
-
-**Claude.ai Web** - Via MCP support
158
-
-**IDE Extensions** - VS Code (Cline), Zed, Continue.dev, and others
159
-
-**AI Agent Frameworks** - LangChain, AutoGPT, CrewAI, etc.
160
-
-**Custom MCP Clients** - JSON-RPC 2.0 over stdio
161
-
-**Any LLM** - Via MCP client implementation
162
-
163
131
### Using with Any LLM or System
164
132
165
133
This server implements the standard MCP protocol and works with any application that implements an MCP client:
@@ -252,7 +220,7 @@ Performs time series forecasting using FAIM models.
0 commit comments