The Chronulus MCP Server enables you to interact with Chronulus AI forecasting and prediction agents directly through the Claude interface. This integration allows you to leverage advanced forecasting capabilities while maintaining the familiar Claude experience.
Before installing the Chronulus MCP Server, you need to install Claude for Desktop, which is available for macOS and Windows.
You have three options for installing the Chronulus MCP Server:
Option 1: Install from PyPI:
pip install chronulus-mcp
Option 2: Install from GitHub:
git clone https://github.com/ChronulusAI/chronulus-mcp.git
cd chronulus-mcp
pip install .
Build a Docker image for the Chronulus MCP Server:
git clone https://github.com/ChronulusAI/chronulus-mcp.git
cd chronulus-mcp
docker build . -t 'chronulus-mcp'
This method will automatically pull and install the latest version from PyPI.
First, locate your Claude config file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Then add the Chronulus MCP Server configuration to your claude_desktop_config.json
file using one of the following methods:
{
"mcpServers": {
"chronulus-agents": {
"command": "python",
"args": ["-m", "chronulus_mcp"],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
}
}
}
Note: If you encounter an error like "MCP chronulus-agents: spawn python ENOENT", you may need to provide the absolute path to Python (e.g., /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
instead of just python
).
{
"mcpServers": {
"chronulus-agents": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "CHRONULUS_API_KEY", "chronulus-mcp"],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
}
}
}
{
"mcpServers": {
"chronulus-agents": {
"command": "uvx",
"args": ["chronulus-mcp"],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
}
}
}
Note: If you get an error like "MCP chronulus-agents: spawn uvx ENOENT", you need to either install uv or provide the absolute path to uvx
(e.g., /Users/username/.local/bin/uvx
).
You can configure multiple MCP servers to work together. Below is an example that combines Chronulus with filesystem and fetch servers:
{
"mcpServers": {
"chronulus-agents": {
"command": "uvx",
"args": ["chronulus-mcp"],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/AIWorkspace"
]
},
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}
To improve your experience with Chronulus in Claude, add these preferences to your Claude Settings:
Settings -> General -> Claude Settings -> Profile (tab)
## Tools-Dependent Protocols
The following instructions apply only when tools/MCP Servers are accessible.
### Filesystem - Tool Instructions
- Do not use 'read_file' or 'read_multiple_files' on binary files (e.g., images, pdfs, docx) .
- When working with binary files (e.g., images, pdfs, docx) use 'get_info' instead of 'read_*' tools to inspect a file.
### Chronulus Agents - Tool Instructions
- When using Chronulus, prefer to use input field types like TextFromFile, PdfFromFile, and ImageFromFile over scanning the files directly.
- When plotting forecasts from Chronulus, always include the Chronulus-provided forecast explanation below the plot and label it as Chronulus Explanation.
These preferences will be shared across both Claude Desktop and Claude.ai web interface.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "chronulus-agents" '{"command":"python","args":["-m","chronulus_mcp"],"env":{"CHRONULUS_API_KEY":"<YOUR_CHRONULUS_API_KEY>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"chronulus-agents": {
"command": "python",
"args": [
"-m",
"chronulus_mcp"
],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"chronulus-agents": {
"command": "python",
"args": [
"-m",
"chronulus_mcp"
],
"env": {
"CHRONULUS_API_KEY": "<YOUR_CHRONULUS_API_KEY>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect