# Local workspace MCP

> Install and wire local-workspace-mcp so an AI agent can read and write one chosen folder, with sandbox limits, token auth, and a user-chosen access path from stdio up to a public HTTPS tunnel.

Local workspace MCP is a free AI agent skill on Agensi by rinaldisign, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [rinaldisign](https://www.agensi.io/creators/rinaldisign)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/local-workspace-mcp
- Tags: mcp, local-files, agent-tools, setup, cloudflare-tunnel, tailscale, ngrok, agent-agnostic

## About this skill

Bridging the gap between an AI agent and your local files is often a messy process involving insecure scripts or vague prompts that fail on absolute paths. This skill provides a structured, vendor-neutral implementation of a local-workspace-mcp server to grant any AI client secure, sandboxed read/write access to a single folder on your machine.

### What it does
- **Standardizes file access** via an MIT-licensed Node.js MCP server with 11 tools for reading, writing, patching, and searching.
- **Enforces sandboxing** by locking the agent to one confirmed folder and rejecting path traversal or symlink escapes.
- **Automates transport setup** for both `stdio` (zero-network) and HTTP/HTTPS connections.
- **Configures secure tunnels** using Cloudflare, Tailscale, or ngrok for hosted web agents that need a public endpoint.
- **Verifies connectivity** with health checks and smoke tests that prove auth, tool availability, and write permissions.

### How it works
1. **Confirm Environment:** The skill validates your OS, app folder, and workspace folder, refusing system roots.
2. **Install & Start:** It clones the repository, installs dependencies, and initializes the server on port 43787.
3. **Select Exposure:** You choose a connection path based on where your client runs, from local `stdio` to public HTTPS.
4. **Wire Client:** The skill generates the exact JSON config or connection string required for your specific AI client.
5. **Audit & Verify:** It runs validation scripts to ensure the agent can actually perform file operations.

### Frameworks & tools
Node.js, MCP (Model Context Protocol), Cloudflare Tunnels, Tailscale, ngrok, and standard POSIX/Windows shell commands.

### Why this beats prompting it yourself
Manual setup often leads to broken paths, exposed auth tokens, or insecure `OPEN_MODE` configurations. This skill follows a strict playbook that separates app and workspace folders, handles cross-platform npm/git quirks, and ensures the tunnel is actually reachable before handing off control.

### Use cases
- Give a hosted web agent access to a local React or Python project folder.
- Maintain a single local workspace across multiple AI IDEs and CLI agents.
- Expose a local file server safely to a remote agent using Tailscale Funnel.
- Troubleshoot MCP connection issues between an agent and a local filesystem.

### Known limitations
Requires Node.js v18.17 or newer. Cannot grant access to drive roots or system directories. Tunnel stability depends on third-party providers.

## Requires

- Local Workspace MCP
- Any Client MCP
- Node.js
- Git
- Stdio MCP

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Local workspace MCP skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply giving an AI agent my folder path?

This skill automates the configuration of a Model Context Protocol (MCP) server, allowing AI agents to securely interact with your local files without risk of path traversal or unauthorized system access.

### Which AI agents or clients are compatible with this setup?

It is compatible with any AI client that supports the Model Context Protocol, including Claude Desktop, various AI IDEs, and custom-built CLI agents.

### Can I use this with web-based AI agents that aren't running locally on my machine?

Yes, you can choose between a local zero-network 'stdio' setup for maximum privacy or secure tunnels like Cloudflare and Tailscale for agents running in the cloud.

### What security measures are in place to prevent the AI from deleting my entire hard drive?

The setup enforces a strict 'sandbox' mode, locking the agent to a single directory and preventing it from accessing sensitive system files or escaping the designated workspace.

### Do I need to install any specific software before running this setup skill?

You will need Node.js (v18.17+) and a standard terminal environment; the skill handles the repository cloning, dependency installation, and server initialization for you.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
