Local Runbook MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local Runbook MCP Server
A tiny, read-only MCP server for searching two fictional troubleshooting notes. It's the companion code for the article Building Your First Tiny MCP Server.
The server has one tool, search_runbooks. It looks for all query words across a runbook's title, tags and checks, then returns matching notes as JSON. It doesn't read your disk, run commands or contact a service.
Run locally
The server requires Node.js 20 or newer. The optional MCP Inspector (version 2.14) requires Node.js 22.23.4+, 24.22.1+, or 26.12.1+.
npm ci
npm startThe terminal prints local-runbooks: ready on stdio and waits. This is expected: an MCP client has to connect before anything else happens. Press Ctrl+C to stop this manual run.
Related MCP server: obsidian-vault-mcp
Test the tool without VS Code
npm testThe tests launch the server over stdio, discover its tool, call it with a matching query, check a no-match result and verify that blank input is rejected.
For an interactive test, run:
npx @modelcontextprotocol/inspector node server.mjsConnect in the Inspector, open Tools, select search_runbooks, and try {"query":"package restore"}.
Connect from VS Code
Open the Command Palette and choose MCP: Add Server.
Choose Command (stdio).
Supply
node "C:\absolute\path\to\runbook-mcp-example\server.mjs", using your actual path.Use the server ID
local-runbooks. For personal use, choose Global → Copilot Global if offered.Review the trust prompt and enable the tool for your agent.
Then ask in agent chat:
Call search_runbooks with query "package restore". Show the runbook ID and summarize the checks. Do not execute any steps.
Expand the tool call to confirm that VS Code invoked search_runbooks. A plausible answer alone doesn't prove it did.
Notes
The runbooks are sample data, not production troubleshooting guidance.
The tool description and read-only annotation are useful hints, not an enforcement mechanism. The implementation is read-only because it only searches a static array.
Never log with
console.login a stdio server. Useconsole.errorso protocol messages on stdout remain intact.Licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Recall authorized Vault notes with keyword and hybrid search, original excerpts, and source paths.
Search and read your own notes: insights, drafts, book and podcast notes. Read-only, OAuth.
Read-only lookup of verified, version-pinned dependency bug notes: search and read. No account.
Search published MkSaaS documentation. Read-only and public.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to Kubernetes troubleshooting runbooks, enabling search, discovery, and retrieval of guides for common issues like pod crashes, node problems, and network failures.312 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only, filesystem-based access to Obsidian vault Markdown notes, including full-text search, title/path search, and frontmatter or tag metadata lookup, all without running Obsidian or using a plugin/REST API.15 npmMIT
- AlicenseAqualityBmaintenanceEnables searching, listing, and reading local notes with security constraints like path traversal protection and configurable limits.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables ChatGPT to search and fetch approved local Markdown notes through a private, read-only connection, returning results with file names, line numbers, and source context.MIT