technical-notes-mcp
MCP server that allows searching a local notes directory and retrieving live CPU and memory usage.
README
technical-notes-mcp
A Model Context Protocol server that lets Claude — or any MCP-compatible client — search your local notes directory and check live system resource usage. Built with TypeScript on the official
@modelcontextprotocol/sdk, talking over stdio.
Demo

Architecture
The server is a Node process spoken to over stdio using JSON-RPC 2.0. Each MCP client (Inspector, Claude Desktop, Claude Code) spawns it as a subprocess and exchanges messages on its stdin/stdout. The server exposes two tools that read from the local filesystem and the Node os module.
Tools
search_technical_notes
Searches a local directory of markdown and code files for a keyword and returns the contents of the most relevant file.
| Input | keyword (string) — the term to search for, case-insensitive |
| Output | Best-matching file's relative path, score, and full contents |
| Scoring | filename matches × 10, plus content occurrence count |
Supported extensions: .md, .mdx, .txt, .ts, .tsx, .js, .jsx, .py, .go, .rs, .java, .c, .cpp, .h, .hpp, .rb, .sh, .json, .yaml, .yml. Files over 1 MB are skipped; node_modules, .git, dist, build, .venv, __pycache__, .cache, .next are pruned during the walk.
get_system_resource_usage
Returns a live snapshot of the host's CPU and memory.
| Input | none |
| Output | platform, CPU%, memory used/free/total, uptime, ISO timestamp |
| Method | samples os.cpus() twice over 500 ms and computes busy-time delta |
This is more accurate than os.loadavg() (which is Unix-only) and works on every platform Node supports.
Quick start
Requirements
- Node.js 18 or later
- An MCP client — the MCP Inspector for testing, or Claude Code for daily use
Install and build
git clone https://github.com/poplores/technical-notes-mcp.git
cd technical-notes-mcp
npm install
npm run build
The build produces build/index.js — the entry point an MCP client will spawn.
Configure your notes directory
The search tool reads from NOTES_DIR. Set this in your MCP client config (examples below) — never hardcode it in the source.
Verify it works
Run the official Inspector against the build:
NOTES_DIR=/path/to/your/notes npm run inspector
Windows (Command Prompt):
set NOTES_DIR=C:\path\to\your\notes
npm run inspector
Open the URL the Inspector prints, click Connect, then the Tools tab. Both tools should appear. Run search_technical_notes with a keyword you know is in your notes — it should return the matching file. Run get_system_resource_usage twice in a row — the timestamp and uptime should change, confirming live data.
Use it with an MCP client
Claude Code (recommended)
claude mcp add technical-notes \
--env NOTES_DIR=/absolute/path/to/your/notes \
-- node /absolute/path/to/technical-notes-mcp/build/index.js
Then in any Claude Code session: "Search my technical notes for X" or "What's my CPU usage?"
Claude Desktop
⚠️ The current MSIX/Microsoft Store builds of Claude Desktop on Windows have a known bug where they silently ignore
mcpServersinclaude_desktop_config.json. The macOS build is unaffected. If you're on Windows, use Claude Code for now.
On macOS, edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"technical-notes": {
"command": "node",
"args": ["/absolute/path/to/technical-notes-mcp/build/index.js"],
"env": {
"NOTES_DIR": "/absolute/path/to/your/notes"
}
}
}
}
Restart Claude Desktop fully.
Project structure
technical-notes-mcp/
├── src/
│ └── index.ts # Server setup + both tool handlers
├── docs/
│ ├── architecture.svg # Diagram embedded above
│ └── demo.gif # Demo embedded above
├── .github/workflows/
│ └── build.yml # CI: typecheck + build on Node 18/20/22
├── package.json # ESM, bin entry, build/inspector scripts
├── tsconfig.json # ES2022 / Node16 module resolution
├── LICENSE # MIT
└── README.md
How it works (under the hood)
This is a stdio MCP server: a Node process that reads JSON-RPC requests on stdin and writes responses on stdout. Each MCP client spawns it as a subprocess; there's no network, no port, no shared state.
Don't console.log from a stdio MCP server. stdout is reserved for the protocol. The server uses console.error (stderr) for its startup message. Any stray write to stdout will break the JSON-RPC stream.
The get_system_resource_usage tool samples CPU counters twice over 500 ms and computes the busy-time delta across all cores — see the getCpuUsagePercent function in src/index.ts if you want to tune the sample window.
The search_technical_notes tool walks the directory with an async generator that yields one file path at a time, scoring each file with a simple weighted match count (filename_hits × 10 + content_hits). For a smarter scoring strategy, edit scoreFile — e.g. weight matches in markdown headers higher, or plug in a real tokenizer.
Extending it
- Different scoring — edit
scoreFileinsrc/index.ts. - More extensions — add to the
ALLOWED_EXTENSIONSset. - More tools — call
server.registerTool(...)again with the same shape as the existing two. The SDK handles schema validation via Zod.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Notes directory does not exist |
NOTES_DIR not set or wrong path |
Set it in the client config or env |
| Inspector "Disconnected" on connect | Build failed or path wrong | Re-run npm run build; check build/index.js exists |
| Tools don't appear in Claude Desktop on Windows | MSIX build ignores config | Use Claude Code instead |
'chmod' is not recognized on Windows during build |
Old build script | The current package.json uses just tsc |
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。