Logo van Local MCP

Local MCP

Community
nakasyou

Local file editing with MCP

Uitgevernakasyou
Repositorylocal-mcp
TaalRust
Forks
33
Sterren
314
Beschikbare tools
0
Transporttypestdio
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Local MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    314 sterren en 33 forks in de gekoppelde repository.

local-mcp

local-mcp exposes basic local-machine capabilities as MCP tools: file reads, image reads, directory listings, sandboxed file writes and commands, plus explicitly approved unsandboxed command execution. It intentionally does not provide web search or a dedicated network-request tool.

Commands are isolated with OpenAI Codex's codex-rs/sandboxing: Landlock and the Linux sandbox helper on Linux, and Seatbelt (sandbox-exec) on macOS. Network access is denied for ordinary commands.

Usage

sh
cargo build --release

# Run one persistent MCP server (for example through a tunnel):
local-mcp mcp

# In another terminal, start a session in the project directory:
cd ./some-project
local-mcp start

# Or choose a stable session ID (letters, numbers, "-", "_", and "."):
local-mcp start my-project

# Give the printed session ID to the agent in your prompt. The agent includes it
# in each local-mcp tool call.

# In the approvals UI, allow every unsandboxed call for the session:
/permissions yolo

# Manage the current session from the start screen:
/permission ask
/permission yolo
/permission allow ../another-project
/permission revoke ../another-project
/permission list
/permission status

With Nix, curl and bash are included in the runtime environment. Linux builds also include bwrap:

sh
nix run github:OWNER/local-mcp
nix develop
nix build

The session working directory is the directory where local-mcp start was run; there is no separate persistent cwd setting. Sandboxed calls are always allowed and have no network access. without_sandbox runs with the service user's full host permissions and network access, so it asks the approvals process before every call. /permissions yolo disables those prompts only for the lifetime of that session; /permissions ask turns prompts back on. The singular /permission ... spelling is also accepted. Every tool takes a session_id. The agent can call session_info with the ID from the prompt to confirm the working directory and sandbox roots. One local-mcp mcp process can therefore serve multiple independently configured sessions. get_image returns PNG, JPEG, GIF, WebP, BMP, TIFF, and AVIF files as native MCP image content. Relative image paths are resolved from the session working directory.

Each session uses its own local IPC endpoint: an explicitly permission-restricted Unix domain socket on Unix, or a named pipe using Windows' default security descriptor. Both the MCP server and the start UI block on I/O, so idle operation and pending approvals do not use polling timers.

The start screen also receives live activity from MCP calls. It shows file and image reads, directory listings, file edits with unified diffs and line counts, and command start/completion with output, in a compact Codex-style timeline. execute returns its normal result for commands that finish within 30 seconds. Longer commands continue in the background and return a job_id; use poll_job to check for completion or stop_job to terminate them. Use start_command when a command should run in the background immediately without the 30-second foreground wait.

On Linux, the build produces local-mcp and its sibling codex-linux-sandbox; install or copy both into the same directory, and ensure bwrap (bubblewrap) is available in PATH. On macOS, only local-mcp is needed; sandboxed commands use the system /usr/bin/sandbox-exec. Windows uses named-pipe IPC and direct argv execution; it does not currently provide the filesystem/network sandbox enforced by Linux and macOS. Consequently, execute and start_command require approval on Windows unless the session is in yolo mode, while write_file writes directly to the requested host path. The Windows named pipe uses the default security descriptor, which grants full control to LocalSystem, administrators, and the creator owner, and read access to Everyone and anonymous users; unlike Unix, local-mcp does not install an explicit per-user ACL. Windows builds use the MSVC Rust target and require Visual Studio Build Tools with the "Desktop development with C++" workload. Build from a Developer PowerShell with cargo build --locked --release.

Gebruik Local MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Local MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Local MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Local MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "local-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Local MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Local MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Local MCP gebruiken om me hiermee te helpen?
Local MCP
Zeker. Ik heb het gelezen.
Dit vond ik met Local MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server Local MCP gebruikt?

Local MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Local MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Local MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Local MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Local MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Local MCP MCP met TypingMind?

Local MCP werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Local MCP MCP in TypingMind?

Local MCP biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Local MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Local MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇