workspace-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@workspace-mcpCreate a new project called demo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Workspace MCP ๐ ๏ธ
The ultimate local filesystem bridge for Claude Desktop & Claude Code! โก Stop losing code to token limits โ let Claude design, scaffold, build, and save full-stack software projects directly on your hard drive! ๐๐ป
๐ฏ Overview: Solving Claude's Token Limits ๐
When using Claude to build multi-file projects, developers frequently run into output token limits and context window cutoffs:
โ ๏ธ Truncated File Outputs: Claude hits completion token limits mid-file, cutting off output and forcing you to repeatedly ask it to continue.
๐ Lost Progress: When a conversation gets too long or expires, un-saved code in the chat window disappears unless manually copy-pasted into your editor.
๐ซ No Direct Disk Access: Standard web and desktop chats cannot write files directly to your local computer.
๐ช How Workspace MCP Helps ๐
Workspace MCP connects Claude directly to your local filesystem:
๐พ Incremental Local Disk Saves: Every file and folder is saved immediately as Claude works. If Claude hits an output token limit on a long response, everything written up to that point remains 100% safely stored on disk.
๐ Resuming Work: In a new chat prompt, simply ask Claude to read your project files and pick up right where it left off using
read_file,find_text, orupdate_file.๐ Automatic Work Logs (
CLOUD.md): Maintains an architectural work log tracking what was built, key decisions, and next steps for future chat sessions.
Related MCP server: Axme-code
๐งญ Capabilities Guide: What Workspace MCP Does ๐ ๏ธ
Think of workspace-mcp as providing file and project management hands ๐คฒ to your AI assistant. The AI handles the reasoning (what code to write and how to structure it); workspace-mcp handles applying those changes directly to disk in a clean, organized folder layout.
๐จ The 4 Main Tool Categories
Category | Description |
๐๏ธ Project & Folder Management | Create, rename, or remove project roots and subdirectories. |
๐ File Operations | Create, read, edit, move, rename, and delete individual files safely. |
๐ Search & Discovery | Find text across files ( |
๐ Auto-Documentation | Automatically generate |
๐๏ธ 1. Project & Folder Management
create_project๐๏ธ โ Initializes a project directory with a default scaffold.create_directory๐ โ Creates subfolders (e.g.src/,docs/) and missing parent folders automatically.rename_projectโ๏ธ โ Moves or renames an entire project directory.delete_directory๐๏ธ โ Recursively deletes a folder (requires explicitconfirm=true).delete_project๐ฅ โ Permanently removes an entire project directory (requiresconfirm=true).
๐ก Tip: Always start a new application with create_project to keep files scoped inside a dedicated folder!
๐ 2. File Operations
create_fileโจ โ Creates a new file with content (fails if the file already exists to prevent accidental overwrites).write_file๐ โ Overwrites a file completely or creates it if missing (requiresconfirm=trueif overwriting).update_file๐ง โ Performs targeted string edits (find/replace) on existing files without replacing the entire file.append_fileโ โ Appends text to the end of a file without touching existing content.read_file๐ โ Reads a file's full UTF-8 text content.move_file๐ โ Relocates a file to another directory.rename_file๐ท๏ธ โ Renames a file within its current folder.delete_fileโ โ Deletes a single file (requiresconfirm=true).
๐ก Tip: Use create_file for brand new files, update_file for inline edits, and write_file when replacing an entire file!
๐ 3. Search & Discovery
find_text๐ โ Grep-like search across text files for literal strings (e.g. findingTODOcomments or function usages).search_files๐ฏ โ Glob search for files matching a pattern (e.g.**/*.pyor*.ts).list_directory๐ โ Lists files and subdirectories with sizes and metadata.
๐ก Tip: Use search_files when looking for file types or names, and find_text when searching for specific code text across your project!
๐ 4. Auto-Documentation & Validation
generate_readme๐ โ Creates or updates a structuredREADME.md.generate_project_tree๐ด โ Saves an ASCII visual tree map toPROJECT_TREE.md.project_tree๐๏ธ โ Returns an ASCII visual tree in the tool response without saving to disk.generate_cloud_logโ๏ธ โ WritesCLOUD.mddocumenting what was built and why.validate_workspace๐ฅ โ Checks workspace health, server configuration, and limits.validate_path๐ก๏ธ โ Verifies if a path is safe and valid before performing file operations.
๐ Typical Workflow
1. create_project ๐๏ธ โ Initialize project directory
2. create_directory ๐ โ Scaffold subfolders (src/, docs/)
3. create_file โจ โ Write initial source files
4. update_file ๐ง โ Edit and refine code incrementally
5. find_text/search_files๐ โ Locate references or check for TODOs
6. move_file/rename_file ๐ โ Organize file structure
7. generate_project_tree ๐ด โ Save project tree map
8. generate_readme ๐ โ Document setup and usage
9. generate_cloud_log โ๏ธ โ Save AI work log
10. validate_workspace ๐ฅ โ Verify workspace state๐ Connecting to Claude Desktop ๐ค
Claude Desktop manages MCP servers via its configuration file. Using uv allows Claude Desktop to run workspace-mcp automatically in the background without needing to start a server manually! โก
๐ Step 1: Locate claude_desktop_config.json
OS | Config Path |
Windows ๐ช |
|
macOS ๐ |
|
Linux ๐ง |
|
โ๏ธ Step 2: Add Configuration
Add the following to your claude_desktop_config.json. Update the paths to point to your local installation of workspace-mcp and your desired --workspace-root directory:
Windows ๐ช
{
"mcpServers": {
"workspace-mcp": {
"command": "uv",
"args": [
"--directory",
"C:/Users/YourUsername/mcp/servers/workspace-mcp",
"run",
"workspace-mcp",
"--workspace-root",
"C:/Users/YourUsername/AIProjects"
]
}
}
}macOS ๐ / Linux ๐ง
{
"mcpServers": {
"workspace-mcp": {
"command": "uv",
"args": [
"--directory",
"/home/user/workspace-mcp",
"run",
"workspace-mcp",
"--workspace-root",
"/home/user/AIProjects"
]
}
}
}๐ก Note: Requires uv to be installed on your system PATH.
๐ Step 3: Restart Claude Desktop ๐จ
Fully close Claude Desktop (from system tray or menu bar).
Re-open Claude Desktop.
Click the hammer icon (๐จ) in the chat bar to confirm that the workspace-mcp tools are active! ๐
๐ฎ Usage & Master Prompt ๐
๐ Comprehensive Master Prompt
Copy and paste this prompt into Claude Desktop to test all tool capabilities at once:
Using the workspace MCP, create a new project called [project-name]. Set up the following structure: create a src/ directory, add starter files inside it ([file1], [file2]), and create a top-level README.md and .gitignore.
Once the files exist, append a notes section to the README, then update [file1] with the core logic for [feature].
Search the project for any TODO or FIXME comments using find_text. Find all files matching *.[ext] using search_files.
Rename [file2] to [new-name], then move it into a new docs/ directory.
Generate the project tree, generate a proper README, and generate a CLOUD.md log summarizing what was built.
Finally, validate the workspace configuration, and list the contents of the project root to confirm everything is in place.โก Resuming Work After Token Limits
If Claude hits a completion limit mid-task:
Open a new chat session.
Prompt Claude:
"Check the files in
MyProject/src, reviewCLOUD.mdto see what was built so far, and finish implementing the main module."Claude will use
list_directory,read_file, andupdate_fileto continue development seamlessly! ๐
๐ก๏ธ Security Sandbox Architecture ๐
Workspace MCP strictly isolates all operations to the configured --workspace-root:
Claude Desktop (Client ๐ค)
โ
โผ Stdio Transport โก
Workspace MCP Server ๐ฅ๏ธ
โ
โผ
Service Layer โ๏ธ โโโบ PathValidator (os.path.realpath Sandbox ๐ก๏ธ)
โ
โผ
Sandboxed Workspace Root ๐๐ก๏ธ Path Security: All input paths are resolved using
os.path.realpath/Path.resolve(strict=False)to prevent..path traversal sequences and symlink escapes.๐ซ Reserved Names: Windows reserved filenames (
CON,NUL,AUX,COM1-9) are rejected to preserve cross-platform compatibility.๐ Confirmation Gating: Destructive actions (
delete_file,delete_directory, file overwrites) require explicit confirmation flags (confirm=true/overwrite=true).๐ Audit Logs: Operations are logged to both
operations.jsonl(machine-readable) andoperations.log(human-readable text).
๐งฐ Tool Reference ๐ฆ
Category | Tool | Description |
Project ๐๏ธ |
| Scaffolds directory structure + |
| Removes project folder (requires | |
| Renames or relocates a project directory | |
Directory ๐ |
| Creates subdirectories (including missing parents) |
| Deletes directory recursively (requires | |
| Lists directory files and metadata | |
File ๐ |
| Creates a new file |
| Reads UTF-8 text file content | |
| Overwrites file content (requires | |
| Appends text to end of file | |
| Performs | |
| Relocates or renames a file | |
| Deletes a file (requires | |
Search ๐ |
| Glob search for matching filenames |
| Grep-like search across text files | |
| Generates ASCII project tree string | |
Docs ๐ |
| Creates/updates |
| Creates | |
| Saves | |
Validation ๐ฅ |
| Returns server health and settings |
| Validates relative path safety without modifying disk |
โ๏ธ Configuration Reference ๐ง
Settings can be specified via command-line flags or environment variables (WORKSPACE_MCP_*):
Option | Environment Variable | Default | Description |
|
|
| Base sandboxed directory for all operations |
|
|
| Path to YAML/JSON configuration file |
|
|
| File size write limit |
|
|
| Enforces confirmation on file overwrite/delete |
๐ License โ๏ธ
Distributed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides Claude Desktop with direct access to your local file system for development tasks, enabling file operations (read, write, edit), directory browsing, command execution, and codebase search within a configured projects directory.Last updated6MIT
- Alicense-qualityBmaintenancePersistent project memory + architectural decisions + pre-execution safety hooks for Claude Code. Local-only storage, multi-repo workspace, automatic knowledge extraction via background auditor.Last updated5413MIT
- Alicense-qualityCmaintenanceProvides comprehensive file system operations including reading, writing, searching, patching, code analysis, SSH transfers, and git operations, while aiming to reduce token usage in Claude Desktop.Last updated15MIT
- Flicense-qualityDmaintenanceProvides filesystem access to Claude via the MCP protocol, enabling local file operations through natural language.Last updated
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shanmukhdatta/workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server