jamf-mcp

jamf-mcp

Enables natural language interaction with Jamf Pro, Jamf Protect, and Jamf Security Cloud, allowing users to manage devices, security alerts, and configurations through Claude Desktop.

Category
访问服务器

README

jamf-mcp

A Claude Desktop MCP (Model Context Protocol) server that gives Claude a natural-language interface to Jamf Pro, Jamf Protect, and Jamf Security Cloud.

Ask Claude things like:

  • "Show me all Macs running macOS 13 or older"
  • "Update the department for serial number C02XL0THJGH7 to Engineering"
  • "List all high-severity Jamf Protect alerts from the last 24 hours"
  • "Create a smart group for all devices with a CRITICAL risk score"
  • "What API roles do we have configured?"

Features

Product Tools Capabilities
Jamf Pro 37 Computers, mobile devices, users, smart/static groups, policies, configuration profiles, patch policies, App Installers, scripts, extension attributes, categories, departments, buildings, printers, prestages, API roles & integrations
Jamf Protect 6 Security alerts, analytics (detection rules), enrolled computers
Jamf Security Cloud 2 Device risk levels, risk overrides
Setup 2 Configuration status, setup instructions

Zero credentials required to start — tools for unconfigured products return setup guidance instead of errors.

Requirements

Installation

git clone https://github.com/OtakuXavier/jamf-mcp.git
cd jamf-mcp
uv sync

Configuration

1. Set up credentials

Copy .env.example to .env and fill in your credentials:

cp .env.example .env
# Jamf Pro — OAuth (recommended)
JAMF_PRO_URL=https://yourorg.jamfcloud.com
JAMF_CLIENT_ID=your-client-id
JAMF_CLIENT_SECRET=your-client-secret

# Jamf Protect
JAMF_PROTECT_URL=https://yourorg.protect.jamfcloud.com
JAMF_PROTECT_CLIENT_ID=your-protect-client-id
JAMF_PROTECT_PASSWORD=your-protect-client-secret

# Jamf Security Cloud
JAMF_SECURITY_CLIENT_ID=your-security-client-id
JAMF_SECURITY_CLIENT_SECRET=your-security-client-secret
JAMF_SECURITY_REGION=us

You only need to configure the products you use — the others will be skipped gracefully.

2. Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (see claude_desktop_config.example.json for the full template):

{
  "mcpServers": {
    "jamf": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/jamf-mcp", "jamf-mcp"],
      "env": {
        "JAMF_PRO_URL": "https://yourorg.jamfcloud.com",
        "JAMF_CLIENT_ID": "your-client-id",
        "JAMF_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Restart Claude Desktop. You should see the Jamf tools available in the tool menu.

Getting Jamf Pro API Credentials

  1. Log in to Jamf Pro → Settings → System → API Roles and Clients
  2. Create an API Role with the privileges you need (e.g., Read Computers, Update Computers)
  3. Create an API Client, assign the role, enable it
  4. Copy the Client ID and generate a Client Secret

Or ask Claude to do it for you once you have admin credentials: "Create an API client with read-only access to computers and mobile devices"

Authentication

Jamf Pro supports two auth methods:

  • OAuth2 (recommended): Set JAMF_CLIENT_ID + JAMF_CLIENT_SECRET
  • Basic auth fallback: Set JAMF_USERNAME + JAMF_PASSWORD

All three API clients cache bearer tokens in memory and refresh automatically 60 seconds before expiry.

Architecture

src/jamf_mcp/
├── server.py           # FastMCP server, registers all tools
├── config.py           # Env-var config dataclasses
├── response.py         # Shared ok() / err() / not_configured() helpers
├── api/
│   ├── pro.py          # Jamf Pro HTTP client (XML + JSON, token cache)
│   ├── protect.py      # Jamf Protect GraphQL client
│   └── security.py     # Jamf Security Cloud REST client
└── tools/
    ├── setup.py        # jamf_get_setup_status, jamf_configure_help
    ├── pro/            # 37 Jamf Pro tools across 8 modules
    ├── protect/        # 6 Jamf Protect tools
    └── security/       # 2 Jamf Security Cloud tools

All tools return a consistent envelope:

{ "success": true, "message": "Found 42 computers", "data": { ... } }

API Documentation

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选