Semble Offline
FreeNot checkedassembled an offline toolkit w tree-sitter language packs and the potion-v2 model
About
assembled an offline toolkit w tree-sitter language packs and the potion-v2 model
README
Semble Offline is a Linux x86_64 and Apple Silicon macOS distribution of Semble for firewalled and air-gapped development environments. It bundles the embedding model and tree-sitter grammars that upstream Semble normally downloads at runtime.
Use it when Python packages can come from an approved index but the installed agent cannot reach public model or release hosts. Once installed, searching a local repository makes no automatic network requests.
Supported platforms: Linux x86_64 with glibc 2.34 or later, and Apple Silicon macOS 11 or later. Both support CPython 3.10 through 3.14. Intel macOS, Windows, Linux ARM, musl-based Linux, and older systems are intentionally out of scope.
Install and verify
Activate the Python environment where Semble should run, then install the release wheel matching the machine.
Linux x86_64:
python -m pip install "semble[mcp] @ https://github.com/pszemraj/semble-offline/releases/download/v0.5.1%2Boffline.2/semble-0.5.1%2Boffline.2-py3-none-manylinux_2_34_x86_64.whl"
Apple Silicon macOS:
python -m pip install "semble[mcp] @ https://github.com/pszemraj/semble-offline/releases/download/v0.5.1%2Boffline.2/semble-0.5.1%2Boffline.2-py3-none-macosx_11_0_arm64.whl"
Linux can also build from the v0.5.1+offline.2 Git tag. macOS end-user installation is wheel-only because the source checkout intentionally contains the Linux grammar bundle; maintainers can prepare a local macOS bundle with the documented build helper.
Verify the platform, bundled model, every grammar hash, all 264 parsers, and MCP dependencies:
python -m semble doctor --full
The command should end with All required checks passed. Omit [mcp] only when the agent will call the CLI directly and does not need an MCP server.
The wheel resolves ordinary Python dependencies through the package index already configured for the environment. For a machine with no package-index access, follow the offline transfer procedure.
Paste this into your agent
Give an agent the following instructions when you want it to install and use Semble itself:
Use the already-active Python environment. Install the Semble Offline release wheel matching this machine with exactly one of these commands:
Linux x86_64:
python -m pip install "semble[mcp] @ https://github.com/pszemraj/semble-offline/releases/download/v0.5.1%2Boffline.2/semble-0.5.1%2Boffline.2-py3-none-manylinux_2_34_x86_64.whl"
Apple Silicon macOS:
python -m pip install "semble[mcp] @ https://github.com/pszemraj/semble-offline/releases/download/v0.5.1%2Boffline.2/semble-0.5.1%2Boffline.2-py3-none-macosx_11_0_arm64.whl"
Do not use a Git-source installation on macOS.
Verify the installation before using it:
python -m semble doctor --full
If diagnostics pass, use Semble for code discovery in this repository:
- `semble search "<one focused description of the code or behavior>" .`
- `semble find-related <file_path> <line> .` after finding one relevant implementation.
- Add `--content docs`, `--content config`, or `--content all` when the target is not source code.
- Use one concept per search query.
- Use exact-text search instead when you need every occurrence of a known symbol or string.
- Search local paths in restricted environments; a remote Git URL explicitly requests network access.
- Do not replace this installation with an unqualified `pip install semble`.
If the semble executable is not on PATH, use python -m semble with the same arguments.
Configure a coding agent
To detect installed agents and choose integrations interactively:
semble install
For unattended setup, name the agent and integrations explicitly:
semble install --agent codex --type mcp instructions --yes
Replace codex with an agent ID shown by semble install --help. The installer preserves unrelated configuration and writes MCP entries using the absolute Python executable from the active environment. If that environment moves, run the installer again.
Remove configuration created by Semble with:
semble uninstall --agent codex --type all --yes
Search a repository
The search CLI and Python API remain compatible with upstream Semble 0.5.1:
semble search "retry with exponential backoff" /path/to/repository
semble find-related src/retry.py 42 /path/to/repository
semble search "deployment configuration" /path/to/repository --content config
python -m semble can be used anywhere the semble executable is not on PATH.
Use Semble to discover relevant code by behavior. Use an exact-text tool when you already know the symbol, filename, or error message and need exhaustive matches.
Offline behavior
- The
minishlab/potion-code-16M-v2embedding model is bundled and required by default. - 264 tree-sitter grammar libraries from
tree-sitter-language-pack1.6.2 are bundled and loaded from the package. - The GPL-3.0 EBNF grammar is deliberately excluded;
.ebnffiles use Semble's line chunker. - Missing or corrupt bundled assets produce a clear error instead of silently falling through to a network download.
SEMBLE_MODEL_NAMEmay point to a different local model directory.- Supplying a remote Git URL to
semble searchis an explicit request to clone that repository and therefore requires network access. Searching local paths does not.
See provenance for exact revisions, hashes, licenses, and the upstream base.
Project status
This repository tracks the runtime-download problem described in MinishLab/semble#224 and is a focused stopgap until upstream provides an equivalent distribution. The installed distribution and import package are both named semble; this is intentional replacement behavior for constrained environments. Version 0.5.1+offline.2 remains based on upstream commit f4c397e2ede0c16ab1772adeee9a0af1024043bf.
PyPI publication is not part of this repository change. GitHub Releases are the binary distribution channel; the tagged Git source remains a Linux-only maintainer and installation path.
Useful references:
- Install and configure an agent
- Offline transfer
- Troubleshooting
- Asset provenance
- Rebuilding and releases
- Contributing
Semble itself is MIT licensed. The upstream authors and citation information are preserved in CITATION.cff; bundled third-party asset notices ship inside the wheel.
Install Semble Offline in Claude Desktop, Claude Code & Cursor
unyly install semble-offlineInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add semble-offline -- uvx sembleStep-by-step: how to install Semble Offline
FAQ
Is Semble Offline MCP free?
Yes, Semble Offline MCP is free — one-click install via Unyly at no cost.
Does Semble Offline need an API key?
No, Semble Offline runs without API keys or environment variables.
Is Semble Offline hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Semble Offline in Claude Desktop, Claude Code or Cursor?
Open Semble Offline on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Semble Offline with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
