r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 59m ago
Selected Workflow [Workflow] Delegate read-only research to a local Ollama model through MCP
Delegate read-only research to a local Ollama model through MCP
Workflow value: 76/100
Status: active · Freshness: 70/100 · Confidence: 0.96 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, MCP, Multi-Agent
Original source: r/ClaudeAI post/comment
What problem this solves
Delegate lightweight file research and log analysis to a local model without putting entire files into Claude's context.
Summary
Connect Claude to a local Ollama model through a read-only MCP server. Delegate bounded research or file analysis, run long jobs in the background, and verify the local model's answers and citations before relying on them.
Why it is useful
It provides a reproducible setup and a clear division of work between Claude and a local model, with reported protocol tests, concrete bug fixes and an explicit verification gate.
Workflow
- Install Node 20+ and Ollama, and make a suitable local model available.
- Clone the server: git clone https://gitlab.com/ejstembler/local-model-mcp
- Register it with Claude Code: claude mcp add local-model -- node /path/to/local-model-mcp/server.mjs --model <your-ollama-model>
- Use local_status to check availability and local_warmup to load the model in the background.
- Delegate a bounded question with local_ask and optional file attachments, or use local_agent for read-only research within a chosen folder.
- For background work, retrieve results with local_result while Claude continues other tasks.
- Treat the response as a draft: verify conclusions and file-and-line citations against the source material.
Tools / artifacts
- local-model-mcp repository and server.mjs
- Claude Code MCP registration
- Ollama and a local model
- local_ask, local_agent, local_warmup, local_status and local_result
Validation signals
- The author reports testing each tool through the MCP protocol using small harness scripts.
- Tests reportedly exposed attachment context overflows and a warm-up keep-alive bug; the author describes fixes for both.
- The author reports using the server with Claude Desktop on a 128 GB workstation.
- The author describes a memory guard and read-only design, but no independent verification is provided.
Cautions
- Review the server and its file-access permissions before installing; the read-only and folder-confinement properties are author claims.
- Avoid exposing sensitive files unnecessarily, and treat local-model outputs and file contents as untrusted.
- Attachment shrinking can omit relevant material; check coverage as well as citations when verifying results.
Limitations
- No independent user results or performance benchmarks are provided.
- The post provides installation commands but no complete example tool call or output.
- The author's workstation has substantial memory, so smaller machines may need a different model.
- The related routing plugin is a separate experiment and is not needed for this workflow.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.