openlocal
Provides web search capabilities through DuckDuckGo (with optional Tavily key) as a built-in tool for the agent loop.
Supports locally running Ollama models for tool-calling tasks through the OpenAI-compatible API.
Click on "Install 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., "@openlocalread notes.md and summarize the project structure"
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.
openlocal
Open tools. Local brains. Zero cloud.
A tool belt that small local models can actually use β and the receipts to prove it.
pip install openlocal
openlocal quickstartThat's it. quickstart finds the model server you already run β ollama, LM Studio,
llama.cpp, vLLM β writes your config, measures which tool-calling protocol your model can
actually drive, and runs a real task so you see it work:
$ openlocal quickstart
openlocal quickstart - looking for a model server...
found ollama at http://127.0.0.1:11434/v1 with 6 model(s)
wrote ~/.openlocal/models.toml
default model: qwen3-4b (served as qwen3:4b)
measuring which tool protocol this model can drive...
-> native tool calling
demo: Read notes.md and tell me how many lines it has.
tool file_read
final
The file notes.md has 3 lines.
You are set up. Try:
openlocal run "list the files here and summarise what this project is"
openlocal eval # score this model on 15 deterministic tool tasks
openlocal mcp # serve these tools to Claude Code over MCPWhy openlocal
πͺΆ Zero dependencies | Pure standard library. Installs in seconds, runs on a Raspberry Pi, and can't be broken by somebody else's release. |
π Works with what you have | Anything that speaks the OpenAI |
π Measured, not claimed | 10 models from 9 vendors, scored on 17 deterministic tasks. No LLM judge β every check is a file diff or a regex. |
π§° One registry, two surfaces | The same 8 tools power an MCP server (Claude Code, any MCP client) and a local-model agent loop. |
π©Ή Tuned on real failures | Every ergonomic rule here was paid for by a model breaking. The lessons table is the part you can't get anywhere else. |
π§© Add a vendor by editing TOML | New model family? Edit |
Related MCP server: Hermes MCP Server
The leaderboard
Same tasks, same tools, one model at a time, two runs each. tools is the protocol each
model was measured driving β not the one its docs claim.
model | vendor | tools | passed | pass rate | bad json | tok/s |
| Alibaba | native | 17/17 | 100% | 0 | 40.4 |
| z.ai | native | 17/17 | 100% | 0 | 39.9 |
| Alibaba | native | 17/17 | 100% | 0 | 16.6 |
| NVIDIA | native | 16/17 | 94% | 0 | 54.9 |
| native | 16/17 | 94% | 0 | 50.3 | |
| OpenAI | native | 16/17 | 94% | 2ΒΉ | 45.3 |
| IBM | native | 15/17 | 88% | 4 | 66.0 |
| Meta | native | 14/17 | 85% | 2 | 33.4 |
| Mistral | native | 14/17 | 82% | 0 | 11.1 |
| Microsoft | native | 13/17 | 79% | 0 | 61.5 |
ΒΉ gpt-oss's harmony parser rejects some of its own tool calls (llama.cpp answers 500).
The client's retry ladder recovers every one β the retries column in
RESULTS.md keeps that honest.
Reproduce it: openlocal leaderboard --repeat 2
Why your small model fails at tools
A 3B model doesn't fail because it's stupid. It fails because tool output is a prompt, and most tool output is written for humans. Everything below was measured β kept when the score went up, reverted when it didn't.
what broke | the fix | measured effect |
"What is line 300?" β model answered line 311 | number every line: | fixed in one turn, across models |
Model walked a 500-line file one line per turn | footers state facts, never commands ("file continues" β "call again withβ¦") | phi: 12 wasted steps β 2 |
Prose instead of a tool call | prose with no tool = the final answer (native only) | phi: 51 malformed replies β 5 |
β¦but "Sure, I'll use file_grep" is a plan | intent detection: plans get nudged, answers get accepted | runs stopped ending on intentions |
| prose call-syntax is parsed and executed | wasted turns eliminated |
| JSON repair: brace scan, tail closing, Python literals, fragment merge | phi bad_json 5 β 0 |
Model wrote the file before reading the source | stale-write detection at finish time | llama: 13 β 15 / 15 |
Model guessed "44" and repeated it when nudged | one turn of | granite recovered the task |
Read a 4-line CSV perfectly, said the sum was 40 | a | granite: +2 tasks |
Wrote the output file without ever reading the source | thin-air-write detection at finish time | qwen-4b over MCP recovered |
Copied the |
| edit_code: 10/10 models pass |
Same call, forever (AβBβAβB) | repeat guard replays the cached result | llama pagination loop gone |
Server 500s on its own tool-call syntax | retry ladder: as-asked β warmer β same turn without | gpt-oss: 11/15 β 14/15 |
Reverted: one more system-prompt rule | β | granite 12/15 β 11/15. Fewer rules win. |
MCP is a first-class citizen, not a wrapper
openlocal eval --via-mcp reruns the whole eval suite with the tools served over a real
stdio MCP server β schemas crossing the wire, results as content blocks, a subprocess per
task. The scores match the in-process numbers, which is the point: what Claude Code
experiences is what was measured.
Use it from Claude Code (or any MCP client)
pip install "openlocal[mcp]"
claude mcp add openlocal -- openlocal mcpThe same 10 tools your local model uses, now in Claude Code. finish stays behind β it's
loop control, not a capability.
Commands
openlocal quickstart # find a server, configure, probe, demo
openlocal run "goal" # agent loop over your tools
openlocal run "goal" --url http://host:1234/v1 # no config at all
openlocal chat "hello" # one plain turn, no tools
openlocal tools # what the model can call
openlocal probe # measure native vs JSON tool calling
openlocal eval # 17 deterministic tasks, pass/fail
openlocal eval --via-mcp # same tasks, tools served over a REAL MCP server
openlocal leaderboard --repeat 2 # every configured model, one table
openlocal mcp # stdio MCP server
openlocal models / serve / stop / status / pull # local llama-server managementsmol is a shorter alias for the same CLI.
Configuration
Your workspace is ~/.openlocal (or any directory containing models.toml, or
$OPENLOCAL_HOME). It holds models.toml, state.json, logs, downloads and eval results β
never the installed package.
[engine.ollama]
type = "external"
base_url = "http://127.0.0.1:11434/v1"
[[model]]
id = "qwen"
engine = "ollama"
family = "qwen" # tells openlocal this vendor's tool-calling quirks
served_model = "qwen3:4b" # the exact name the backend knows
default = trueenv | default | meaning |
|
| workspace directory |
| β | point every command at one |
| cwd | sandbox root for the file and shell tools |
| 8000 | hard cap on one tool result |
| dev commands | comma list, or |
| 120 | seconds before an MCP tool call is abandoned |
The tools
file_list(path=".") list files and folders
file_read(path, start_line=1, limit=200) read a file, one page at a time
file_write(path, content) write a file
file_edit(path, find, replace) replace text exactly, leave the rest alone
file_append(path, content) add to the end without touching what exists
file_grep(pattern, path=".") search files
web_search(query, limit=5) search the web (DuckDuckGo, or Tavily via key)
web_read(url, offset=0, max_chars=4000) read a page as text
shell_run(command, timeout=60) run one allowlisted command
calc(expression) exact arithmetic - models cannot count
finish(answer) agent loop only: end the taskHouse rules, enforced by tests: flat arguments with defaults, an example call in every
description, one-line result headers, hard-capped output with a truthful continuation hint,
and errors that name the next move β no such file: x - call file_list(".") to see the files that exist.
Architecture
tools/ one registry β mcp_server.py (Claude Code speaks MCP to it)
β agent.py (a local model calls the same tools)
_http.py the entire network layer, on urllib (this is why deps = 0)
runner.py external servers, or llama-server processes it starts and owns
protocol.py native tool_calls β loose JSON β repair β symptom-specific nudge
families.toml per-vendor quirks as DATA - the file contributors edit
evals/ 17 deterministic tasks + a leaderboard across modelsContributing
Adding a model family takes no Python: edit families.toml, add
your model to models.toml, then
openlocal probe --model your-model
openlocal eval --model your-modeland paste the resulting row into the PR. See CONTRIBUTING.md.
Running local GGUF models on AMD hardware (ROCmFP4 + MTP speculative decoding) is documented in docs/ENGINE.md β optional, and not needed for anything above.
License
MIT Β© DevXV3
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight and fast MCP server that enables AI agents to efficiently discover and execute tools through progressive disclosure, minimizing context consumption while supporting safe code execution in external environments.12
- FlicenseNot gradedqualityBmaintenanceA lightweight Node.js MCP server with zero dependencies offering 9 built-in tools for system info, web fetching, GitHub search, file operations, shell execution, and key-value memory, enabling AI agents to perform these tasks via the Model Context Protocol.
- AlicenseNot gradedqualityBmaintenanceA plug-and-play MCP server that adds zero-boilerplate tools like file search, reliability scoring, and prompt injection detection to any MCP-compatible agent.MIT
- FlicenseBqualityCmaintenanceA lightweight MCP server that enables AI assistants to interact with the local machine through terminal, filesystem, and Python execution tools.91
Related MCP Connectors
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DevXV3/openlocal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server