bigfix-root-mcp
This server provides read-only access to the HCL BigFix root server REST API, with optional write tools when BIGFIX_ALLOW_WRITES=true.
Session relevance queries: Evaluate server-side data (computers, fixlets, actions, sites, operators, etc.) instantly.
Client fast queries: Submit, poll, and retrieve live agent responses with targeting by computer ID/name or relevance, configurable timeout and stability detection.
Server and site info:
get_server_info,list_sites,get_computer_group,get_operator,list_operators/roles(master operator), read/write dashboard variables (get_dashboard_variable,set_dashboard_variable).Computer management: Find by name (
find_computers), get full record (get_computer), list applicable content/actions (applicable_fixlets,list_actions), and retrieve action status/details (get_action,get_action_status).Content browsing: Search for fixlets, tasks, analyses, baselines by name (
find_content) and fetch specific content by site path and ID (get_content).Generic API access:
api_getas a read-only escape hatch to any/api/path for discovery or custom reads.XML validation: Validate BES XML against BigFix schemas offline (
validate_bes_xml).Identity check:
whoamireturns configured user, root server URL, and master operator status (affects result scope).Optional writes: Stop actions, set dashboard variables, import custom content (dry-run defaults, audit logging).
Safe handling: All list/blob tools report
truncatedandtotal_availableto bound large result sets.Built-in help: Access session relevance cookbooks, tool usage guides, and predefined prompts (e.g.,
diagnose_computer).
All results reflect the configured operator’s visibility; only a master operator sees the full fleet.
Provides read-only tools for interacting with the HCL BigFix root server REST API, including session relevance queries, client fast queries, server info retrieval, site listing, computer group and operator lookups, dashboard variable reads, and a generic read-only API escape hatch.
Click on "Install 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., "@bigfix-root-mcphow many computers are reporting in my enterprise"
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.
bigfix-root-mcp
A minimal, read-only MCP server around the besapi library, exposing the HCL BigFix root server REST API to MCP clients. Built on FastMCP 4 (stateless).
Focus: session relevance queries (data the server already has) and client fast query (live questions answered by BigFix agents), plus a few read-only helpers.
Tools
Tool | Purpose |
| Evaluate session relevance on the root server; returns the JSON envelope ( |
| Submit a client fast query, return its |
| Fetch current (cumulative) results for a query ID; safe to call repeatedly. |
| Submit + poll in one call with progress notifications; stops on expected count reached, results stable, or timeout. |
| Root server version info ( |
| Sites visible to the configured operator. |
| Look up a group by name - requires an explicit |
| Look up a console operator by name. |
| Read a dashboard datastore variable. |
| Configured user/root server, main-operator status, write-gate state; connectivity smoke test. |
| Read-only escape hatch: GET any |
| One computer's full record ( |
| Find computers by case-insensitive name substring. |
| Content currently relevant to one computer. |
| An action's definition, and its per-computer execution state. |
| Actions visible to the configured operator. |
| Search fixlets/tasks/analyses/baselines by name across sites; resolves the |
| One fixlet, task, analysis or baseline by site path and ID. |
| Console operators and roles (master operator only). |
| Validate BES XML against the BigFix schemas. No server call. |
Write tools (opt-in)
Absent unless BIGFIX_ALLOW_WRITES is set - see Writes.
Tool | Purpose |
| Stop an in-flight action ( |
| Set a dashboard datastore variable. |
| Create/update custom content in a site. Does not deploy it. |
Result bounding
Every tool that can return an unbounded payload is windowed and says so.
List-shaped tools take limit/offset and report returned,
total_available and truncated; blob-shaped tools report truncated and
total_chars, and drop an oversized payload rather than cut it into something
that looks complete.
This is not optional politeness: BigFix relevance has no row-limiting
operator (first, firsts, items, elements are all undefined), so
bounding the response is the only way to bound a result. find_content on the
reference deployment matches 12,395 fixlets.
Related MCP server: MSSQL-MCP
Resources and prompts
Relevance is the hard part, so the server ships reference material clients can pull on demand rather than repeating it in every tool description:
Resource | Contents |
| Session relevance that works - every expression verified against a live root server - plus the operators that don't exist. |
| Client (fast query) relevance, targeting forms, reading cumulative results. |
| Which tool answers which question, how to read bounded responses, what operator scope means. |
Prompts: diagnose_computer, patch_status, find_stale_agents,
troubleshoot_relevance.
Relevance errors also carry a cause hint: the server recognizes the common failure shapes (a non-existent limiting operator, client relevance in a session query, singular-vs-plural) and appends what to do instead, so a bad expression is a retry rather than a dead end.
Client fast query semantics
Client queries are answered by live agents: results accumulate at
/api/clientqueryresults/{id} over seconds to minutes as clients report in,
and there is no completion flag. The client_query tool polls with three
termination heuristics (reported in stop_reason):
expected_count_reached- as many distinct computers reported as targeted;results_stable- no new computers forstable_pollsconsecutive polls;timeout- partial results at timeout are a normal outcome (offline agents never report), not an error.
For long waits, use client_query_submit then client_query_results
repeatedly instead of a single blocking call.
Configuration
Environment variables win over config files:
Setting | Env var / | Default |
Root server URL |
| - |
REST operator |
| - |
Password |
| - |
Write tools |
| off |
TLS verification |
|
|
Config files are searched in besapi's order: /etc/besapi.conf,
~/besapi.conf, ~/.besapi.conf, ./besapi.conf - same
[besapi] section format as besapi/bescli, so an existing config just works.
Prefer keeping credentials in ~/besapi.conf over MCP client config files.
Example MCP client config (see .mcp.json):
{
"mcpServers": {
"bigfix-root": {
"command": "uvx",
"args": ["bigfix-root-mcp"]
}
}
}Install / run
pip install bigfix-root-mcp # or: uvx bigfix-root-mcpFrom a checkout:
pip install -e ".[dev]"
bigfix-root-mcp # or: python -m bigfix_root_mcpSmoke test against a live root server with MCP Inspector:
npx @modelcontextprotocol/inspector bigfix-root-mcpthen call whoami, session_relevance_query with number of bes computers,
and client_query targeting a known computer ID.
Operator scope
Every result is limited to what the configured REST operator can see. Only a
master operator has full visibility; a regular operator can never be
certain its view is complete, and cannot distinguish "does not exist" from
"outside my scope". So number of bes computers returning 35 means 35
computers visible to this operator - a lower bound, not the BigFix total.
whoami reports is_main_operator for exactly this reason: check it before
treating any result as the full state of BigFix. The tool descriptions carry
this caveat so LLM clients don't overstate scoped results.
Safety and design notes
Read-only by default: with
BIGFIX_ALLOW_WRITESunset, only read tools are registered - the write tools do not exist as far as any client can tell. One nuance: submitting a client query does create a query object server-side, but agents only evaluate relevance against it - no managed-endpoint state changes.Client fast query is a powerful read.
client_querywithtarget_allevaluates arbitrary client relevance on every agent the operator can see, and the BigFix agent runs as SYSTEM/root. That can read file contents, registry values and process lists fleet-wide, and the results come back in the tool response. Scope the configured operator to the smallest useful set of computers;whoami.is_main_operatortells you which you have.Explicit site paths: this server never uses besapi's mutable "current site path" connection state (
set_current_site_path/get_current_site_path- a bescli convenience); tools that need a site take a requiredsite_pathparameter.Stdout hygiene: stdout belongs to the MCP stdio transport; all logging goes to stderr, and config loading avoids besapi helpers that print.
TLS: verification is off by default to match besapi; set
BES_SSL_VERIFY=true(or a CA bundle path) for anything beyond a lab.Generic BigFix logic here is written to be upstreamed into besapi - see docs/besapi-proposals.md.
Writes
Set BIGFIX_ALLOW_WRITES=true to register the three write tools. The flag
controls registration, so with it off there is nothing to call.
Two guardrails apply to all of them:
dry_rundefaults to true. The response describes the call that would be made and nothing is sent. A write only happens on an explicitdry_run=false.Every attempt is audit-logged to stderr as one
BIGFIX WRITEline with the operator, target, dry-run flag and outcome.
The set is limited on purpose to operations whose blast radius is reversible
or nil. import_bes_content creates content; it does not run it - a fixlet
imported this way does nothing until somebody deploys an action against it in
the console.
Not implemented, and not to be added without their own design round:
deploying actions (POST /api/actions), any DELETE, creating sites or
operators, and file upload. Deploying an action is arbitrary code execution as
root across the fleet, which is a different category of risk from anything
here.
Documentation
Doc | Contents |
Client fast query protocol reference: endpoints, payloads, live-captured result schema, termination heuristics and their tradeoffs. | |
besapi behaviors this wrapper depends on or works around (error surfacing, connection lifecycle, return shapes, site-path state). | |
Why the server is shaped this way, plus FastMCP 4 beta specifics. | |
Proposed upstream besapi changes that would let this project shrink. | |
Live-verified REST paths, site-path rules, and relevance findings (including the operators that don't exist). | |
Threat model and findings for the tool surface. |
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytestTests run entirely offline against a scripted fake BESConnection, including
in-memory end-to-end MCP calls via fastmcp.Client.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceA read-only MCP server for InvGate Asset Management, enabling natural language queries for assets, people, computers, servers, software, and API health.12121MIT
- AlicenseNot gradedqualityAmaintenanceSecurity-first, read-only MCP server for Microsoft SQL Server, enabling safe natural-language querying of databases.17MIT
- AlicenseAqualityCmaintenanceA read-only MCP server that enables AI assistants to query ServiceNow instances—incidents, changes, users, CMDB—with malformed query linting and injection protection.7MIT
- AlicenseNot gradedqualityAmaintenanceA read-only MCP server that enables natural language querying of DSpace 7+ repositories via the REST API, allowing users to search, retrieve items, and analyze repository data.2MIT
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgstew/bigfix-root-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server