mcp-bitbake
A deterministic MCP server for BitBake and Yocto that allows users to search, scan, and parse recipe files. It enables the extraction of raw variable assignments from .bb and .bbappend files without performing variable evaluation.
README
mcp-bitbake
A deterministic MCP (Model Context Protocol) server for BitBake/Yocto. Inspects recipe metadata without evaluating variables — returns only raw assignments as found in files.
Design rules:
- Never evaluates variables — only returns raw assignments
- Only supports
.bband.bbappendfiles - Supported operators:
=,:=,?=,+=,.= - Returns structured JSON for all responses
- Fails closed on unsupported syntax (override syntax warned, not parsed)
Install
From GitHub (no npm publish needed):
npm install github:pkt-lab/mcp-bitbake
Or clone and build manually:
git clone https://github.com/pkt-lab/mcp-bitbake
cd mcp-bitbake
npm install && npm run build
Claude Desktop configuration
If installed via npm (GitHub):
{
"mcpServers": {
"mcp-bitbake": {
"command": "node",
"args": ["./node_modules/mcp-bitbake/dist/index.js"]
}
}
}
If cloned locally:
{
"mcpServers": {
"mcp-bitbake": {
"command": "node",
"args": ["/absolute/path/to/mcp-bitbake/dist/index.js"]
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after editing.
MCP tools
find_recipe_files
Search recursively for .bb/.bbappend files matching a filename pattern:
{ "root_path": "/path/to/poky", "query": "busybox" }
Returns: { ok: true, matches: [{ path, file_type, filename }] }
scan_layer_recipe_files
List all .bb/.bbappend files under a layer path:
{ "layer_path": "/path/to/meta-mylayer" }
Returns: { ok: true, files: [{ path, file_type }] }
parse_recipe_file
Parse a single .bb or .bbappend file and return all raw variable assignments:
{ "file_path": "/path/to/meta-layer/recipes-core/myapp/myapp_1.0.bb" }
Returns: { ok: true, variables: [{ name, operator, raw_value, line }], warnings?: [...] }
- Comments and python/shell function blocks are skipped
- Override syntax (
VAR:append,VAR:${PN}, etc.) is warned but not parsed - Multi-line values (lines ending with
\) are concatenated intoraw_value
get_recipe_var_raw
Get all assignments for a specific variable in a file:
{ "file_path": "/path/to/recipe.bb", "variable": "SRC_URI" }
Returns: { ok: true, assignments: [{ operator, raw_value, line }] }
Error format
All errors return:
{ "ok": false, "error_code": "...", "message": "..." }
Error codes: FILE_NOT_FOUND, INVALID_PATH, UNSUPPORTED_SYNTAX, INVALID_ARGUMENT
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.