Local Runbook MCP Server
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., "@Local Runbook MCP Server Search runbooks for package restore and show the runbook ID."
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.
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.
Available Tools
1 toolsearch_runbooksBRead-only
Find matching troubleshooting notes. Read-only; never runs their steps.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its stated purpose (read-only lookup of troubleshooting notes) is unambiguous.
The single name follows a clear verb_noun snake_case convention (search_runbooks) that would scale predictably. No conflicting conventions to reconcile.
A server framed as a runbook manager exposes only one lookup operation, which is too thin for the apparent scope. There is no way to browse, read in full, or contribute runbooks, so the surface feels like a stub.
Search is the only operation; there is no tool to fetch a full runbook by id, list or index available runbooks, or add/update notes. After a search returns a match, an agent has no lifecycle path to act on it.
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.
Search published MkSaaS documentation. Read-only and public.
Read-only search over the Vocenya AI receptionist API docs and endpoints, with code samples.
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.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.8 npmMIT
- AlicenseAqualityBmaintenanceEnables searching, listing, and reading local notes with security constraints like path traversal protection and configurable limits.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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