cd /news/ai-tools/wired-the-local-mcp-server-into-clau… · home topics ai-tools article
[ARTICLE · art-122572] src=pipelineandprompts.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Wired the Local MCP Server into Claude Code

A developer successfully wired a local MCP server into Claude Code, enabling the AI client to directly query a Chroma-based notes index via the today-i-ran-notes server. During testing, the tool accurately reported that no notes covered 'check pod status with oc' rather than hallucinating a match, demonstrating honest retrieval. The developer also clarified that Claude Code saved new commands to its own memory system, not the Chroma index built in prior entries.

read2 min views24 publishedSep 1, 2026

Context: Every prior entry in this arc — building the Chroma index, chunking, querying — was done by hand, typing Python commands one at a time. An MCP server is what turns that into a real tool: a small program that exposes specific capabilities (like “search my notes”) to an AI client such as Claude Code, so the client can call it directly instead of a person running queries manually. The point of this entry was proving that connection actually works, not just that the server starts.

Ran: After the earlier Connection closed error (Claude Code launching a bare python3, which resolved to system Python outside the venv, missing every package the server needs), re-registered the server pointing directly at the venv’s Python:

claude mcp remove today-i-ran-notes
claude mcp add today-i-ran-notes -- ~/mcp-env/bin/python3 mcp_search_server.py
claude mcp list

That returned ✔ Connected. Then, in a real Claude Code session, asked it directly:

Use the today-i-ran-notes server to search for how to check pod status with oc

Result: The tool got called — twice. First a broad search, then a follow-up call pulling more detail from the closest match. Claude Code’s own response is worth quoting closely, because it’s more interesting than a clean success would have been:

The search returned results, but none of them directly cover checking pod status with oc. The closest match is a note about building an “oc CLI Mentor” system prompt… but doesn’t appear to include specific pod-status commands.

That’s the right answer. Entry 02 is about building a constrained system prompt, not a list of pod-status commands — the tool didn’t hallucinate a match, it accurately reported the gap and said so plainly, then fell back to its own general knowledge to actually answer the question, clearly separating “your notes don’t cover this” from “here’s the answer anyway.”

One more thing worth flagging clearly: when asked to save the new commands for future reference, Claude Code saved them to its own built-in memory system — not to the Chroma index built across Entries 05–07. Those are two separate mechanisms that are easy to conflate: one is the RAG pipeline this series has been building by hand, the other is Claude Code’s own persistent memory feature. The note that got saved lives in the latter, not in chroma_db.

Takeaway: The full loop works — a local embeddings pipeline, exposed as a real MCP tool, correctly invoked by a real client, with honest reporting when the answer isn’t in the index rather than a confident wrong guess. That honesty is the most important result here: a search tool that admits “not in here” is far more useful than one that always returns something and lets the caller assume it’s relevant.

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/wired-the-local-mcp-…] indexed:0 read:2min 2026-09-01 ·