JPI MCP Server
Model Context Protocol (MCP) server for Just Plan It (JPI) API integration. This server enables AI assistants to interact with the JPI job scheduling and resource management system.
Features
69 MCP Tools covering all JPI API endpoints
Full CRUD operations for all JPI entities
Batch operations for efficient bulk updates
Cross-job task operations
Type-safe TypeScript implementation
Comprehensive error handling
Quick Start
Prerequisites
Node.js 18+
A JPI API token (get from Just Plan It)
Claude Code CLI
Claude Desktop
Add to your Claude Desktop configuration file:
Direct CLI Usage
For other CLI tools or direct shell usage:
Unix/macOS/Linux:
Windows PowerShell:
Windows CMD:
Environment Variables
Variable | Required | Default | Description |
| Yes | - | Your JPI API token |
| No |
| JPI API base URL |
Architecture
Key Concepts
Jobs & Tasks
Job: A production order or work order containing one or more tasks
Task: A single operation within a job (e.g., cutting, welding, painting)
Predecessors: Tasks that must complete before a task can start
TaskConnections: Linked tasks for scheduling coordination
Components & References
Component: A reusable template of tasks that can be referenced by jobs
JCR (Job Component Reference): Links a component to a job, creating tasks automatically
TCR (Template Component Reference): Links a component to a job template
Resource Hierarchy
Time Units
IMPORTANT: All time fields in the JPI API are in SECONDS, not minutes.
Field | Unit | Example |
| seconds |
|
| seconds |
|
| seconds |
|
| seconds |
|
Field Naming Convention
All API fields use PascalCase to match the JPI API exactly (e.g., DueDate, TaskNo, ResourceGroupConstraints).
Available Tools (69 Total)
Helper (1 tool)
Tool | Description |
| Get API information and available endpoints |
Components (9 tools)
Tool | Description |
| List all components |
| Create a new component |
| Get a component by GUID |
| Update a component |
| Delete a component |
| Get a component task |
| Add a task to a component |
| Update a component task |
| Delete a component task |
Jobs (27 tools)
Tool | Description |
| List all jobs |
| List jobs without task details (~80% smaller) |
| List jobs at risk of missing due dates |
| Create a new job with tasks |
| Get a job by GUID |
| Update a job |
| Delete a job |
| Get a job task |
| Add a task to a job |
| Update a job task |
| Delete a job task |
| Get a Job Component Reference |
| Add a JCR to a job |
| Update a JCR |
| Delete a JCR |
| Create multiple jobs |
| Update multiple jobs |
| Delete multiple jobs |
| Add multiple tasks to a job |
| Update multiple tasks |
| Delete multiple tasks |
| Add multiple JCRs |
| Update multiple JCRs |
| Delete multiple JCRs |
| Create tasks across multiple jobs |
| Update tasks across multiple jobs |
| Delete tasks across multiple jobs |
Job Templates (13 tools)
Tool | Description |
| List all templates |
| Create a new template |
| Get a template by GUID |
| Update a template |
| Delete a template |
| Get a template task |
| Add a task to a template |
| Update a template task |
| Delete a template task |
| Get a Template Component Reference |
| Add a TCR to a template |
| Update a TCR |
| Delete a TCR |
JPI Events (2 tools)
Tool | Description |
| Get events (change log) after a timestamp |
| Get events filtered by type |
Resource Categories (5 tools)
Tool | Description |
| List all categories |
| Create a category |
| Get a category |
| Update a category |
| Delete a category |
Resource Groups (5 tools)
Tool | Description |
| List all groups |
| Create a group |
| Get a group |
| Update a group |
| Delete a group |
Resources (5 tools)
Tool | Description |
| List all resources |
| Create a resource |
| Get a resource |
| Update a resource |
| Delete a resource |
Settings (2 tools)
Tool | Description |
| Get application settings |
| Update settings |
Usage Examples
Create a Job with Tasks
Update Task Status
Batch Create Jobs
Enums & Types
OrderStatus
Value | Description |
| Job is quoted but not ordered |
| Job is ordered but not released |
| Job is released for production |
| Job is on standby |
Strategy
Value | Description |
| Schedule as soon as possible |
| Just-in-time scheduling |
| ASAP with buffer |
| JIT with buffer |
TaskStatus
Value | Description |
| Task is planned |
| Task has started |
| Task is complete |
| No status |
| Task is on standby |
Error Handling
All tools return structured error responses:
Development
Build
Watch Mode
Run Locally
From Source
API Reference
This MCP server wraps the JPI REST API v1. For detailed API documentation:
License
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.