Scripthold logo

Scripthold

Securely reads, edits, searches, analyzes, and converts files within explicitly authorized local workspaces.

Install Scripthold

Run the project’s own setup commands, in order.

Setup steps from the project

Scripthold installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/zoster81/scripthold.git
    
  2. 2. Run
    cd scripthold
    
  3. 3. Install
    go build -o scripthold ./cmd/scripthold
    
  4. 4. Run
    $tokenPath = Join-Path $env:TEMP "scripthold.token"
    
  5. 5. Sign in
    $bytes = New-Object byte[] 32
    
  6. 6. Run
    $rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
    

Overview

Scripthold MCP server gives AI agents controlled access to explicitly authorized local workspaces through file, search, source-navigation, encoding, backup, and verification tools. It supports stdio and authenticated Streamable HTTP transports, with workspace roots supplied at startup for local use. Reach for Scripthold when agents need to inspect or change project files while preserving encoding, path-boundary, approval, and recovery controls. It is especially suited to repositories containing legacy text encodings or requiring reviewable file mutations.

Use cases

  • Read and update files in an authorized project workspace
  • Search repositories by filename, text, or source structure
  • Convert legacy-encoded text without losing readable content
  • Preview and verify agent-proposed filesystem changes
  • Restore workspace files from persistent backups

Key features

  • Authorized local workspace boundaries
  • Encoding and line-ending detection
  • Source symbol and structural navigation
  • Preview, fingerprint, and verification workflows
  • Persistent backup and restore operations
  • Stdio and authenticated Streamable HTTP transports

Tools41

What Scripthold lets your agent do. Expand a tool for its parameters.

Self-reported~139 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 83d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Tools exposed41Callable tools this server registers over MCP.

How Scripthold works

What Scripthold does

Scripthold connects MCP-compatible agents to local directories that you explicitly authorize. Its catalog covers ordinary workspace operations such as reading files, listing directories, building directory trees, retrieving metadata, writing complete files, and applying targeted edits. Search tools support filename and text lookup, while source-oriented tools provide symbol discovery, outlines, structural queries, and related navigation.

The server also addresses concerns that arise when agents modify real workspaces. It can fingerprint paths, verify whether state has changed, prepare operations for confirmation, and maintain local backup history. Encoding tools detect and convert text encodings, and line-ending detection helps agents account for file-format differences instead of treating every file as UTF-8 text.

How it works

For local clients, Scripthold runs as a standalone Go executable over MCP stdio. Authorized directories are passed as startup arguments, and those startup roots define the workspace boundaries. A roots-capable stdio client can provide dynamic roots when the process starts without directory arguments.

Streamable HTTP is also available. The service exposes an MCP endpoint and health and readiness endpoints, uses bearer authentication, and defaults to loopback operation. Requests must include the configured bearer token. Deployments outside loopback require explicit security configuration involving TLS or a trusted proxy.

Changes use a preview-and-apply style for operations that need approval. Exact fingerprints and conflict checks help detect changes made between preparation and confirmation. The server can stage writes and report partial state when an operation does not complete as a whole.

Setup and configuration

Download a platform asset from the latest GitHub release and verify its checksum, or build it from source with Go after cloning the repository. A local stdio configuration supplies the executable path and one or more authorized directories as arguments.

For HTTP, configure exactly one bearer-token source and choose the listen address. The documented local setup uses MCP_HTTP_TOKEN_FILE and MCP_HTTP_ADDR, then starts the executable with --transport=streamable-http and a workspace path. Container deployments can bind a project directory, run with a read-only root filesystem, drop capabilities, and use the provided unprivileged container user.

Tools and capabilities

  • Read one or multiple text files and write or edit workspace files.
  • List directories, render trees, inspect file information, and search by path or text.
  • Find source symbols, generate outlines, run source queries, and assemble source-oriented context.
  • Detect encodings and line endings, then convert files between supported encodings.
  • Prepare and apply package or filesystem changes, with previews, fingerprints, and state verification.
  • Create, restore, compare, audit, pin, and garbage-collect persistent backups through the relevant operations.

The project describes support for 168 registered text encodings, including UTF-32 little-endian and big-endian variants, with content-based detection and conservative handling of ambiguous files. Source Intelligence providers are bounded to the operations they support rather than offering unrestricted code execution.

Limitations and notes

Workspace access is limited to authorized roots; the startup arguments are authoritative for normal stdio use. HTTP should not be exposed beyond loopback without following the additional TLS, proxy, host, origin, and resource-limit requirements.

Scripthold is derived from the original mcp-file-tools project and retains its GPL-3.0 licensing lineage. Clients moving from the 3.x tool layout need to account for the unified confirmation approach in the 4.x line. Releases include checksums, and published GoReleaser assets include signed Sigstore build-provenance data.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Scripthold

Scripthold is an MCP server that connects AI agents to explicitly authorized local workspaces through stdio or authenticated Streamable HTTP. Its main tools read, write, edit, search, inspect, navigate source symbols, detect and convert encodings, verify state, and manage backups and approved filesystem operations.

Install Scripthold by downloading an asset from the latest GitHub release or building it with Go from the repository. Configure your MCP client to run the executable and pass each authorized workspace directory as a startup argument.

Configure an MCP stdio entry with the Scripthold executable as the command and authorized directories in its argument list. Startup roots define the available workspace boundaries; a roots-capable client may provide dynamic roots when no directory arguments are supplied.

Run Scripthold with `--transport=streamable-http`, configure exactly one bearer-token source, and set the listen address. The MCP endpoint is `/mcp`; every request must carry the token, and non-loopback exposure requires TLS or a trusted proxy boundary.

Yes. Scripthold provides encoding detection and conversion tools, supports 168 registered text encodings, and includes UTF-32 little-endian and big-endian support. It also detects line endings and uses conservative handling for ambiguous encoding detection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewScripthold AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/scripthold?style=directory)](https://allmcps.com/mcp/scripthold)
HTML Embed
<a href="https://allmcps.com/mcp/scripthold"><img src="https://allmcps.com/api/badge/scripthold?style=directory" alt="Scripthold on AllMCPs" /></a>