About Chef Server MCP
Chef Server MCP is an MCP server published by aknarts in the Developer Tools category: an MCP server used to talk to Chef Server.
The repository has 3 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/aknarts/chef-server-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (16)
getCookbookGet cookbook metadata and files
Parameters not published.
getDataBagItemGet specific data bag item
Parameters not published.
getEnvironmentGet environment configuration
Parameters not published.
getNodeGet detailed node information
Parameters not published.
getOrganizationGet organization details
Parameters not published.
getRoleGet role definition and run lists
Parameters not published.
getUserGet user details
Parameters not published.
listCookbooksList cookbooks and their versions
Parameters not published.
listDataBagItemsList items in a data bag
Parameters not published.
listDataBagsList all data bag names
Parameters not published.
Show all 16 tools
listEnvironmentsList all environments
Parameters not published.
listNodesList all node names
Parameters not published.
listRolesList all role names
Parameters not published.
listUsersList all user names
Parameters not published.
searchExecute Chef search queries (decoded results)
Parameters not published.
searchJSONExecute Chef search queries (raw JSON results)
Parameters not published.
Ask AI
Ask AI about Chef Server MCP
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
Chef Server MCP
A Model Context Protocol (MCP) server that provides AI assistants with read-only access to Chef Server data including nodes, roles, cookbooks, data bags, environments, and more.
Features
- Read-only Chef Server access via Chef API
- Multi-organization support with aliases and defaults
- Comprehensive Chef data access: nodes, roles, users, cookbooks, data bags, environments
- Search capabilities with both decoded and raw JSON results
- Docker-based deployment for easy installation
- MCP protocol compliance for seamless AI assistant integration
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
CHEF_USER |
Yes | Chef username for API authentication |
CHEF_KEY_PATH |
Yes | Path to Chef private key file (.pem) |
CHEF_SERVER_URL |
Yes | Chef Server base URL (without organization path) |
CHEF_DEFAULT_ORG |
No | Default organization to use when none specified |
CHEF_ORG_ALIASES |
No | Organization aliases in JSON or key=value format |
Organization Support
The server supports multiple organizations through:
- Default organization: Set via
CHEF_DEFAULT_ORG - Organization aliases: Set via
CHEF_ORG_ALIASES(e.g.,"qa=qa1,prod=fireamp_classic") - Per-request organization: Specify in individual MCP tool calls
IDE Integration
Visual Studio Code
Add to your VSCode settings (.vscode/settings.json or global settings):
{
"mcpServers": {
"chef-server": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "CHEF_USER=your-username",
"--env", "CHEF_KEY_PATH=/chef/your-username.pem",
"--env", "CHEF_SERVER_URL=https://your-chef-server.com/",
"--env", "CHEF_ORG_ALIASES=qa=qa1,prod=production",
"--env", "CHEF_DEFAULT_ORG=qa1",
"--volume", "/path/to/.chef:/chef:ro",
"ghcr.io/aknarts/chef-server-mcp:latest"
]
}
}
}
GitHub Copilot
Add to your Copilot configuration:
{
"servers": {
"chef-server": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "CHEF_USER=your-username",
"--env", "CHEF_KEY_PATH=/chef/your-username.pem",
"--env", "CHEF_SERVER_URL=https://your-chef-server.com/",
"--env", "CHEF_ORG_ALIASES=qa=qa1,prod=production",
"--env", "CHEF_DEFAULT_ORG=qa1",
"--volume", "/path/to/your/.chef:/chef:ro",
"ghcr.io/aknarts/chef-server-mcp:latest"
]
}
}
}
Important Notes:
- The
--volumeflag maps your local.chefdirectory to/chefinside the container - The
CHEF_KEY_PATHmust point to the file path inside the container (e.g.,/chef/your-username.pem) - Make sure the volume path matches your actual local
.chefdirectory location
Available Tools
| Tool | Description |
|---|---|
listNodes |
List all node names |
getNode |
Get detailed node information |
listRoles |
List all role names |
getRole |
Get role definition and run lists |
listUsers |
List all user names |
getUser |
Get user details |
search |
Execute Chef search queries (decoded results) |
searchJSON |
Execute Chef search queries (raw JSON results) |
getOrganization |
Get organization details |
listCookbooks |
List cookbooks and their versions |
getCookbook |
Get cookbook metadata and files |
listDataBags |
List all data bag names |
listDataBagItems |
List items in a data bag |
getDataBagItem |
Get specific data bag item |
listEnvironments |
List all environments |
getEnvironment |
Get environment configuration |
All tools support optional organization parameter for multi-org setups.
Development
For development instructions, building from source, and contributing guidelines, see DEVELOPMENT.md.
License
This project is licensed under the MIT License - see the LICENSE file for details.
README fetched from the repository 5 days ago. The original is authoritative.