Scripthold MCP Server
Secure encoding-aware local workspace runtime for AI agents
Scripthold scores 64 (Good), licensed GPL-3.0 and written in Go. It installs as a local process. It does not declare tools yet. Filed under File systems. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
64 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: gpl-3.0.
License, quality and maintenance
License: Grade C
GPL-3.0 is a strong copyleft license: derived works must use the same license.
How license is gradedQuality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 64 comes from
22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "zoster81-scripthold": { "command": "npx", "args": [ "-y", "https://github.com/zoster81/scripthold/releases/download/v4.2.0/scripthold_windows_amd64.mcpb" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Scripthold — Secure MCP Server for Local Workspaces
Code from the web. Work locally. Recover safely.
Scripthold is a Model Context Protocol (MCP) server that gives web, desktop, and CLI agents controlled access to explicitly authorized local workspaces. It safely handles legacy text encodings, deterministic file changes, source navigation, backups, and optional durable local execution over stdio or authenticated Streamable HTTP.
AI clients see Настройки — not ???? or Íàñòðîéêè.
Start here: Quick start · Find a tool · All documentation · Security policy.
Project goal and documentation map
Scripthold's goal is to let agents inspect and change files in explicitly authorized local workspaces without guessing encodings, crossing filesystem boundaries, or losing track of approved changes. Source Intelligence helps an agent locate source evidence; it does not compile code, infer every dependency, or decide which files should be edited. See Project Direction for the product scope and Architecture for the security and durability boundaries.
Use Quick start to run Scripthold, then the Tool Reference to choose operations. The Documentation Guide organizes installation, security, recovery, development and release guides. To contribute or resume development, start with Contributing and the repository Agent Guide, use the Development Checklist to verify changes, and consult the Roadmap for completed source-level milestones, qualification boundaries, and remaining work. The Changelog distinguishes released behavior from unreleased fixes; a local commit does not update an installed server.
Private operator checkpoints, local test task identifiers and machine-specific handoff notes are intentionally not part of the public repository documentation. They must be verified in the authorized operator workspace when resuming a supervised session; the public documents remain usable from a normal clone.
What Scripthold provides
Scripthold 4.x provides 36 tools and 3 guided prompts; see GitHub Releases for the latest published version. Clients upgrading from 3.x should follow the 4.0 migration guide for the unified confirmation tool. Since 4.0.1, the source_symbols outline response defaults to a compact tree; pass presentation: "detailed" to retain the earlier files and symbols fields. Release 4.1.0 adds bounded Source Intelligence improvements and opt-in concise output without changing legacy defaults. Publishing the release does not update a running installation.
- 168 registered text encodings with content-based detection, UTF-32 LE/BE support, and conservative ambiguity handling.
- 100 active Source Intelligence providers for bounded declaration navigation, structural search, selected project relations, and verified context assembly.
- Secure workspace boundaries with canonical-root containment, Windows reparse/junction handling, deterministic traversal, and missing-path validation.
- Approval-bound mutations using preview/apply capabilities, exact fingerprints, conflict checks, staged writes, and truthful partial-state reporting.
- Optional persistent backups with history, compare, audit, restore, explicit garbage collection, pinning, and exact-ID deletion.
- Durable asynchronous tasks with idempotency, persistent state, bounded logs, recovery, locks, and cancellation.
- Reliable long-running read-only calls through optional deferred-operation storage and bounded retained-result retrieval.
- Authenticated Streamable HTTP with loopback defaults, bearer authentication, Host/Origin validation, resource limits, and explicit TLS/proxy requirements for non-loopback exposure.
Scripthold originated from the original mcp-file-tools project, created by Dimitar Grigorov, and retains its GPL-3.0 lineage. See Project Direction.
Quick start
Choose a published binary or build from source, then configure your MCP client to grant access only to the directories you intend to share. HTTP and container deployments have additional setup below.
Use a published release
Download the asset for your platform from the latest release and verify it against checksums.txt. Releases also attach a signed Sigstore build-provenance bundle for the normal GoReleaser assets.
Build from source
git clone https://github.com/zoster81/scripthold.git
cd scripthold
go test ./...
go build -o scripthold ./cmd/scripthold
The module path is github.com/zoster81/scripthold.
Local stdio client
Pass each authorized directory as a startup argument:
{
"mcpServers": {
"scripthold": {
"type": "stdio",
"command": "C:\\Tools\\scripthold_windows_amd64.exe",
"args": ["D:\\Projects"]
}
}
}
Startup roots are authoritative. A roots-capable stdio client may supply dynamic roots only when the process starts without directory arguments.
Verified self-update
Supported standalone installations can opt in to self-update. Stop other Scripthold processes using the same binary before running scripthold update --adopt. Adoption prepares local state without downloading or replacing the executable.
After adoption, run scripthold update to verify and dispatch an available release. Use scripthold update status to confirm completion; only run scripthold update recover when status offers recovery. These actions have different safety and verification requirements.
See the Verified Self-update Guide for supported installations, exact commands, failure handling, and recovery rules.
Streamable HTTP
HTTP requires exactly one bearer-token source. A minimal loopback PowerShell launch is:
$tokenPath = Join-Path $env:TEMP "scripthold.token"
$bytes = New-Object byte[] 32
$rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
try { $rng.GetBytes($bytes) } finally { $rng.Dispose() }
[System.IO.File]::WriteAllText($tokenPath, [Convert]::ToBase64String($bytes), [System.Text.UTF8Encoding]::new($false))
$env:MCP_HTTP_TOKEN_FILE = $tokenPath
$env:MCP_HTTP_ADDR = "127.0.0.1:8765"
.\scripthold_windows_amd64.exe --transport=streamable-http D:\Projects
The MCP endpoint is http://127.0.0.1:8765/mcp; /healthz and /readyz expose liveness/readiness. Send the token as Authorization: Bearer <token> on every MCP request.
Do not expose HTTP beyond loopback without reading HTTP Security. Non-loopback use requires explicit opt-in and TLS or a trusted proxy boundary.
OpenAI Secure MCP Tunnel
Sanitized PowerShell examples are available under examples/:
start-local-stdio.ps1start-local-http.ps1start-openai-tunnel-stdio-plus-local-http.ps1start-openai-tunnel-http-plus-local-stdio.ps1
Copy an example outside the checkout before replacing placeholders. Never commit Runtime API keys, Tunnel IDs, bearer tokens, or private state paths.
Container
docker build --build-arg VERSION=dev -t scripthold:dev .
docker run --rm -i \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges \
--tmpfs /tmp:rw,noexec,nosuid,size=64m \
--mount type=bind,source=/absolute/project,target=/data \
scripthold:dev --transport=stdio /data
The image runs as unprivileged UID/GID 10001.
Tool groups
TOOLS.md is the detailed public reference for schemas, parameters, examples, limits, and error behavior. The table below describes the 4.x catalog (36 tools). Clients upgrading from 3.3.6 must migrate the eight former apply commands to confirm_verified_operation.
| Area | Main tools |
|---|---|
| Text/files | read_text_file, read_multiple_files, write_whole_file, edit_file, grep_text_files |
| Confirmation | confirm_verified_operation — one-shot approval of any prepared operation |
| Multi-file changes | patch_package, filesystem_package |
| Directory/state | list_directory, tree, search_files, get_file_info, fingerprint_paths, verify_state |
| Encoding | detect_encoding, convert_encoding, detect_line_endings, change_line_endings, manage_bom, list_encodings |
| Backups | backup_store, backup_delete |
| Source Intelligence | source_symbols, source_query |
| Markdown intelligence | markdown_read, markdown_workspace, markdown_create, markdown_edit |
| Durable work | task_run, task_list, task_get, task_logs, task_cancel, deferred_operation |
| Service | list_allowed_directories, check_for_updates |
Source Intelligence
Source Intelligence provides bounded source evidence without requiring agents to read every file in full. The LLM chooses what to investigate and interprets the results; Scripthold does not reason about a change request or select edit targets. Use source_symbols to map project files with digest presentation: "compact", inspect the parent-child symbol hierarchy within each file with outline (which defaults to tree), and retrieve a selected declaration with fingerprint-verified show. Request presentation: "detailed" for the earlier outline JSON structure. Use source_query for structural search, supported project relationships, dependency graphs, and verified context. The separate filesystem tree tool shows file paths, not class/member ownership. Use grep_text_files and targeted reads for arbitrary text, call sites, and independent verification of important declarations.
Unsupported or ambiguous relationships are rejected rather than guessed. A completed structural scan is not proof that every source declaration or caller was identified; verify important results against the original source and prefer grep_text_files for literal occurrences. Markdown files have their own document tools. Check the generated Language Capabilities matrix for available source providers and analysis coverage. The current original-project qualification separately reports which providers have passed bounded development-handler navigation checks; registration alone does not certify project-level behavior.
Markdown documents
Markdown files use dedicated tools rather than Source Intelligence providers. Read a document with markdown_read, or inspect links and relationships across files with the read-only markdown_workspace tool.
To change a document, prepare a preview with markdown_edit (or markdown_create for a new file), review the proposed content, and pass its previewId to confirm_verified_operation. Unsafe, conflicting, or stale changes are rejected instead of being silently rewritten.
For examples and the exact operation forms, see the Markdown tool reference. For Markdown semantics, supported encodings, and the Marksplice integration boundary, see Markdown Intelligence.
Safety model
- File access is limited to explicitly authorized roots after canonical path validation.
- Symlink, junction, reparse-point, alias, and missing-path escapes fail closed.
- Encoding detection uses bytes and decoded-content evidence, never filenames or extensions.
- Mutations stage and revalidate before commit; initially missing destinations use no-replace semantics.
- Preview/apply workflows bind the approved operation to a one-shot capability so mutation parameters cannot be changed at apply time.
- Multi-file mutations do not claim transactional rollback; failures report committed/unchanged/unknown state where applicable.
- The optional backup store is a separate protected authority outside public roots.
task_runexecution is disabled by default. Shell and script execution require explicit authorization; HTTP requires an additional HTTP execution opt-in.- HTTP is authenticated and loopback-only by default.
Current architectural boundaries are summarized in Architecture.
Key configuration
Most installations need only a small subset of environment variables:
| Variable | Purpose | Default |
|---|---|---|
MCP_TRANSPORT | stdio or streamable-http | stdio |
MCP_DEFAULT_ENCODING | Encoding for new text files | utf-8 |
MCP_HTTP_ADDR | HTTP listen address | 127.0.0.1:8765 |
MCP_HTTP_TOKEN_FILE / MCP_HTTP_TOKEN | Mutually exclusive bearer-token sources | unset |
MCP_HTTP_ALLOW_NON_LOOPBACK | Permit non-loopback binding when other security requirements are met | disabled |
MCP_BACKUP_STORE_DIR | Enable the persistent backup store | unset |
MCP_BACKUP_DEFAULT_POLICY | Default persistent backup policy for eligible approval-bound mutations | disabled |
MCP_TASK_STORE_DIR | Enable durable task persistence | unset |
MCP_DEFERRED_STORE_DIR | Enable durable ownership for eligible long-running read-only calls | unset |
MCP_ENABLE_RUN_SCRIPT | Allow task_run kind=script | disabled |
MCP_ENABLE_SHELL | Allow task_run kind=shell | disabled |
MCP_ENABLE_EXECUTION | Allow both task kinds | disabled |
MCP_HTTP_ENABLE_EXECUTION | Additional HTTP execution gate | disabled |
Detailed limits and subsystem-specific options are documented where they are used: TOOLS.md, Durable Tasks, and HTTP Security.
Documentation
Use the Documentation Guide to find instructions by task, whether you are configuring a client, choosing a tool, securing a deployment, or contributing to the project.
- Using the server: Tool Reference, HTTP Security, and Durable Tasks.
- Understanding and changing the project: Architecture, Contributing, and Roadmap.
- Release history: Changelog, with version-specific steps in the migration guides.
Development
The required Go version is declared by go.mod.
go mod verify
go test ./...
golangci-lint run ./...
go build -o scripthold ./cmd/scripthold
See CONTRIBUTING.md before proposing changes.
License
GPL-3.0 — see LICENSE.
Frequently asked questions
What is Scripthold MCP Server?
Secure encoding-aware local workspace runtime for AI agents
How do I install Scripthold MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Scripthold MCP Server runs locally from the MCP bundle https://github.com/zoster81/scripthold/releases/download/v4.2.0/scripthold_windows_amd64.mcpb with the command npx -y https://github.com/zoster81/scripthold/releases/download/v4.2.0/scripthold_windows_amd64.mcpb.
Is Scripthold MCP Server free and open source?
Yes. Scripthold MCP Server is released under the GPL-3.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Scripthold MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Scripthold MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Scripthold MCP Server's trust score calculated?
Scripthold MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.