piherder-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@piherder-mcpshow me the current server inventory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PiHerder MCP
stdio process that lets Cursor, Grok Build, Claude, and Codex call a PiHerder instance through the existing bearer API.
It runs on the computer that runs the agent. It is not part of the PiHerder image, and the herder does not open an MCP port. The public demo is not a target.
Adapter 0.1.0 (GitHub Release v0.1.0). It talks to the token API that shipped with PiHerder 1.6.0. The contract for this cut is the v1.7 train.
Install
Full steps, client samples, and what each scope can do: Agents (MCP).
The public docs site (piherder-docs.hacknow.info) is built from PiHerder main. That site’s Agents page is published when v1.7 merges. Until then, use the wiki file on v1.7.0-dev linked above.
The package is not on PyPI yet. Launch it from git:
export PIHERDER_URL='https://piherder.example.com'
export PIHERDER_TOKEN='ph_…'
uvx --from git+https://github.com/bjorngluck/piherder-mcp.git piherder-mcpAfter a PyPI release the same program is uvx piherder-mcp.
In PiHerder: Settings → API management. Token page: API tokens.
readis required.jobs,edit, andfilesadd the write tools. A token withoutreadexits on stderr.Put
PIHERDER_URLandPIHERDER_TOKENin the client config. Samples are inclients/. Do not commit the token.
Related MCP server: Puppet Enterprise MCP Server
Tools
Tool | Scope |
|
|
|
|
|
|
|
|
trigger_job accepts backup, retention, os_patch, container_patch, os_update_check, and container_update_check. A 409 is the job already running. Poll get_job. File bodies are capped at 256 KiB.
SSH, the console, Move, undo, compose stack actions, and token admin are not tools.
Clients
Samples live in clients/. They use ${PIHERDER_TOKEN} so the secret stays out of git. Grok Build also loads a Cursor .cursor/mcp.json when Cursor MCP import is on. Codex needs clients/codex/config.toml.
The same operating note is in skills/piherder/SKILL.md (Grok), clients/cursor/piherder.mdc (Cursor), CLAUDE.md, and AGENTS.md.
Wiki
Topic | Page |
Install, clients, scopes | |
Token scopes and allowlist | |
Jobs the token can start | |
Fleet-jail files | |
Train contract |
Do not vendor this tree inside the PiHerder Docker image.
Tests
pip install -e ".[dev]"
pytest -qTests mock HTTP. They do not call a live herder.
Support
Optional. Nothing here is required to install the adapter.
github.com/sponsors/bjorngluck · buymeacoffee.com/bjorngluck · Support the project
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client. Air Pipe MCP token as a bearer credential, e.g. 'Authorization: Bearer <token>'. Create one at https://app.airpipe.io/
Deploy and manage Jade Hosting projects from AI clients. Jade account and OAuth required.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to manage and monitor Hetzner Cloud infrastructure, including servers, firewalls, networks, and snapshots, while keeping the API token local and secure.MIT
- FlicenseNot gradedqualityDmaintenanceExposes the full Puppet Enterprise API to AI assistants, enabling management of Puppet infrastructure through natural language.-
- AlicenseBqualityAmaintenanceGives AI assistants read (and optionally write) access to a NetBox instance, covering DCIM, IPAM, circuits, virtualization, tenancy, and more.1009 npmMIT
- AlicenseNot gradedqualityAmaintenanceTurns any Linux server into an AI-agent-accessible machine over HTTPS, allowing MCP clients like ChatGPT, Claude, and Grok to securely control files, run shell commands, inspect system state, query SQLite, and work with git behind a bearer token.1,323 npm4MIT