Enables comprehensive management of Apple devices through Jamf Pro, including device search and inventory, policy deployment, script execution, configuration profile management, package deployment, and mobile device management for both macOS and iOS devices.
Jamf Pro MCP Server
[
]
(https://lobehub.com/badge/mcp-full/dbankscard-jamf-mcp-server)
A comprehensive MCP (Model Context Protocol) server that enables AI assistants to interact with Jamf Pro for complete Apple device management. Works with Claude Desktop, Cody, and now ChatGPT (via MCP Connectors).
š Quick Start
For ChatGPT Users (NEW!)
Connect ChatGPT to your Jamf Pro instance using natural language:
See our ChatGPT Quick Start Guide for 5-minute setup.
For Claude Desktop Users
Configure your credentials in Claude Desktop (see Configuration section below).
šÆ What You Can Do
With ChatGPT (Beta)
Ask natural language questions about your Jamf devices:
"Find all MacBooks that haven't checked in for 7 days"
"Show me device compliance statistics"
"Deploy software updates to the marketing team"
"Generate a compliance report for all iOS devices"
Powered by Skills: Complex multi-step operations are handled automatically through our skills system, providing intelligent device search, batch operations, and automated workflows.
"Search for devices assigned to the marketing department"
"List computers with low disk space"
With Claude Desktop
Full device management capabilities including:
Search and manage devices
Deploy software and policies
Manage configuration profiles
Execute scripts and packages
Generate compliance reports
And much more...
š Security Notice
IMPORTANT: Before using this server:
Copy
.env.exampleto.envand fill in your credentialsNever commit
.envor any files containing credentialsReview and update any shell scripts with your own credentials
If credentials were accidentally exposed, rotate them immediately
Features
Tools (Executable Functions)
Device Management
searchDevices: Find devices by name, serial number, IP address, or username (supports partial matching)
getDeviceDetails: Retrieve comprehensive device information by ID or name
checkDeviceCompliance: Find devices that haven't reported in X days (optimized for large fleets)
getDevicesBatch: Get details for multiple devices efficiently
updateInventory: Force inventory update on devices
Policy Management
listPolicies: List all policies in Jamf Pro
getPolicyDetails: Get detailed information about a specific policy by ID or name (includes scope, scripts with full content, and packages)
searchPolicies: Search for policies by name or ID (supports partial matching)
executePolicy: Run policies on specific devices (policy and device can be specified by ID or name, requires confirmation)
Script Management
deployScript: Execute scripts for troubleshooting (with confirmation)
getScriptDetails: Get full script content and metadata including parameters, notes, and OS requirements
Configuration Profile Management
listConfigurationProfiles: List all configuration profiles (computer or mobile device)
getConfigurationProfileDetails: Get detailed information about a specific configuration profile
searchConfigurationProfiles: Search for configuration profiles by name
deployConfigurationProfile: Deploy a configuration profile to one or more devices (with confirmation)
removeConfigurationProfile: Remove a configuration profile from one or more devices (with confirmation)
Package Management
listPackages: List all packages with name, version, category, and size
getPackageDetails: Get detailed package information including metadata, requirements, and notes
searchPackages: Search packages by name, filename, or category
getPackageDeploymentHistory: Get deployment history and statistics for a package
getPoliciesUsingPackage: Find all policies that use a specific package
Computer Group Management
listComputerGroups: List computer groups (smart groups, static groups, or all)
getComputerGroupDetails: Get detailed information about a specific group including membership and smart group criteria
searchComputerGroups: Search for computer groups by name
getComputerGroupMembers: Get all members of a specific computer group
createStaticComputerGroup: Create a new static computer group with specified members (with confirmation)
updateStaticComputerGroup: Update the membership of a static computer group (with confirmation)
deleteComputerGroup: Delete a computer group (with confirmation)
Mobile Device Management
searchMobileDevices: Search for mobile devices by name, serial number, UDID, or other criteria
getMobileDeviceDetails: Get detailed information about a specific mobile device including hardware, OS, battery, and management status
listMobileDevices: List all mobile devices in Jamf Pro with basic information
updateMobileDeviceInventory: Force an inventory update on a specific mobile device
sendMDMCommand: Send MDM commands to mobile devices (lock, wipe, clear passcode, etc.) with confirmation for destructive actions
listMobileDeviceGroups: List mobile device groups (smart groups, static groups, or all)
getMobileDeviceGroupDetails: Get detailed information about a specific mobile device group including membership and criteria
Resources (Read-Only Data)
jamf://inventory/computers: Paginated device list
jamf://inventory/mobile-devices: Paginated mobile device list
jamf://reports/compliance: Security and patch compliance report
jamf://reports/mobile-device-compliance: Mobile device compliance report showing management status and issues
jamf://reports/storage: Disk usage analytics
jamf://reports/os-versions: OS version breakdown
Skills (ChatGPT Integration)
Advanced multi-step operations powered by the skills system:
skill_device_search: Intelligent device search with natural language processing
skill_find_outdated_devices: Identify devices not checking in
skill_batch_inventory_update: Update multiple devices efficiently
skill_deploy_policy_by_criteria: Deploy policies based on device criteria
skill_scheduled_compliance_check: Automated compliance reporting
Prompts (Workflow Templates)
troubleshoot-device: Step-by-step device troubleshooting
deploy-software: Software deployment workflow
compliance-check: Comprehensive compliance reporting
mass-update: Bulk device operations
storage-cleanup: Disk space management
Installation
For ChatGPT Users
See our detailed guides:
Quick Start Guide - Fork and deploy in 5 minutes
Full Setup Guide - Detailed setup instructions
POC Setup - Local development with tunnels
Architecture - How it works
Deployment Guide - Production deployment
For Claude Desktop Users
Clone this repository
Install dependencies:
cd jamf-mcp-server npm installBuild the project:
npm run build
Configuration
Setting up Jamf Pro API Authentication
In Jamf Pro, go to Settings > System > API Roles and Clients
Create a new API Role with necessary permissions
Create a new API Client:
Assign the API Role you created
Note the Client ID and generate a Client Secret
Use these credentials in your environment variables
Claude Desktop Configuration
Add to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
ChatGPT Configuration
For ChatGPT, you'll need to:
Set up a tunnel (Cloudflare or ngrok)
Configure the MCP connector in ChatGPT settings
Add your server URL and authentication
See ChatGPT Connector Setup for detailed instructions.
Usage Examples
Note: Most tools support searching by both ID and name. When searching by name, partial matches are supported.
Natural Language Queries (ChatGPT)
Direct Tool Usage (Claude Desktop)
Search for a Device
Check Device Details
Check Device Compliance
Policy Analysis
Configuration Profile Management
Package Management
Mobile Device Management
šļø Architecture
ChatGPT Integration
Claude Desktop Integration
Safety Features
Read-Only Mode: Set
JAMF_READ_ONLY=trueto prevent any modificationsConfirmation Required: Destructive operations require explicit confirmation
Error Handling: Comprehensive error messages and recovery
Rate Limiting: Respects Jamf Pro API limits
Audit Trail: All operations are logged
Enhanced Error Handling (v1.1.0)
The server includes comprehensive error handling and retry logic:
Features
Automatic Retry: Exponential backoff for transient failures
Circuit Breaker: Prevents cascading failures
Enhanced Error Messages: Detailed error information with actionable suggestions
Request/Response Logging: Debug mode for troubleshooting
Rate Limiting: Built-in rate limiter to prevent API throttling
Configuration
Add these optional environment variables:
Development
Local Development Setup
For local development, create a .env file:
Running in Development Mode
Testing with MCP Inspector
Running Tests
API Requirements
This server requires:
Jamf Pro version 10.35.0 or later
API user with appropriate permissions
Network access to your Jamf Pro instance
Recommended API Permissions
For full functionality:
Read access to computers, policies, scripts, configuration profiles, packages, mobile devices
Update access for inventory updates
Execute access for policies and scripts
For read-only mode:
Read access to all resources only
š”ļø Security Considerations
For Production Use
Implement proper OAuth2 authentication (ChatGPT integration)
Deploy to a secure cloud environment
Use HTTPS with valid certificates
Enable rate limiting and access controls
Use read-only Jamf API credentials where possible
Store credentials securely (use environment variables)
Regularly rotate API credentials
Monitor API usage for anomalies
Implement IP allowlisting in Jamf Pro if possible
ā ļø Note: The ChatGPT POC uses development authentication for testing. For production use, implement proper security measures.
Troubleshooting
Authentication Issues
Verify your API credentials
Ensure the API user has the required permissions
Check network connectivity to Jamf Pro
Tool Execution Failures
Verify device IDs are correct
Ensure policies/scripts exist in Jamf Pro
Check that devices are online and managed
Performance
Large inventory requests may take time
Use search filters to limit results
Consider implementing pagination for large datasets
ChatGPT Connection Issues
Ensure your tunnel is running (Cloudflare/ngrok)
Verify the MCP connector URL in ChatGPT settings
Check server logs for connection errors
š¤ Contributing
Contributions are welcome! This project is designed to be forked and extended. Feel free to:
Add new MCP tools for different Jamf operations
Implement additional security features
Create connectors for other MDM systems
Improve ChatGPT integration
Share your improvements with the community
Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Submit a pull request
š License
MIT
š Resources
š¬ Support
Built with ā¤ļø for the Jamf, Claude, and ChatGPT communities