Qwen MCP Filesystem Server
This server is an MCP filesystem bridge that lets AI clients like Qwen Studio safely read, write, search, and manage files inside designated internal or external project folders.
Project management: create, list, resolve, and register projects (internal folders or external
.txtshortcuts).File browsing: list files and directories recursively or shallowly, with optional pattern filters.
File reading: read text files as UTF-8 or binary files as Base64, with a size threshold for truncation/conversion.
File writing: write or overwrite files with auto-created directories, supporting UTF-8 and Base64 encodings.
File appending: add content to existing files.
File deletion: delete files or directories (with recursive option for directories).
File renaming/moving: rename or move files/folders within a project.
Text search: search files by text or regex, returning matching lines with file paths and line numbers, with case sensitivity and result limits.
Security controls: blocks path traversal (
../../), prevents mounting Windows drive roots, and can restrict access to only internal projects viaQWEN_MCP_ALLOW_EXTERNAL=false.Configuration options: adjustable root workspace, external access toggle, automatic creation of external target dirs, and max read size.
Status inspection: check server health, active workspace, and security flags via
qwen_status.
Click on "Deploy 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., "@Qwen MCP Filesystem Server list the files in my project folder"
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.
ποΈ Qwen MCP Filesystem Server
A dedicated, safe Model Context Protocol (MCP) server that empowers Qwen Studio and other desktop AI environments with controlled read, write, search, and management access to your local Windows files and projects.
π Table of Contents
Related MCP server: filesystem-mcp-server
π‘ Why This Exists
Desktop AI environmentsβsuch as Qwen Studioβand complex creative workstation software (like DaVinci Resolve Studio) operate within protected sandbox boundaries. By design, they cannot freely browse, modify, or control files on your Windows machine.
When you want an AI assistant to assist with your codebase, automate scripting, or build plugins:
β The Old Way: You are forced to manually copy and paste code back and forth between your editor and the AI chat window. The AI has zero context about the rest of your project structure, cannot verify changes, and cannot create or edit files directly.
β The Dangerous Way: Giving an AI broad, unrestricted terminal or OS-level access risks accidental file deletion or damage to critical Windows system directories.
The Solution: Qwen MCP
Qwen MCP acts as a secure, purpose-built bridge. It lets you "feed" specific local folders and external projects directly to Qwen Studio through the standardized Model Context Protocol (MCP).
With Qwen MCP, Qwen Studio can autonomously explore your project tree, read files, write code, append changes, rename files, and perform regex searchesβstrictly inside the project folders you choose to connect.
βοΈ How It Works
βββββββββββββββββββββββββββ JSON-RPC (stdio) βββββββββββββββββββββββββββββ
β Qwen Studio β ββββββββββββββββββββββββββββββββββΊ β Qwen MCP Server β
β (Desktop AI Client) β β (Python/uvx) β
βββββββββββββββββββββββββββ βββββββββββββββ¬ββββββββββββββ
β Controlled Sandboxed Access
βββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
βΌ βΌ
ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
β Internal Projects β β External Projects β
β workspace/projects/* β β Shortcut .txt Pointersβ
ββββββββββββββββββββββββββ βββββββββββββ¬βββββββββββββ
β Maps to
βΌ
ββββββββββββββββββββββββββ
β Any Folder on Windows β
β e.g. DaVinci Fuses, β
β Scripts, Web Projects β
ββββββββββββββββββββββββββYou launch or connect the MCP server in your Qwen Studio configuration (handled automatically via
uvxwith zero installation).You feed your project either by placing it into the internal
workspace/projects/folder or by adding a lightweight.txtlink insideworkspace/external/pointing to any folder on your computer.Qwen Studio takes over: It queries the server tools to inspect files, execute changes, and search code with complete sandbox protection.
β¨ Features
π‘οΈ Strict Path Traversal Protection: Prevents directory traversal attacks (
../). File operations cannot escape the designated project boundary.π Dual Project Mapping:
Internal Projects: Store projects directly in
workspace/projects/<name>.External Shortcuts: Mount folders anywhere on your drive (e.g. DaVinci Resolve scripts, desktop code) via 1-line
.txtlink files without moving or copying original files.
β‘ Zero-Effort Execution: Automatically launches via Astral
uvxwithout requiring manual virtual environments or dependency installs.π In-File Text Search: Deep regex and string search across files with line numbers and preview matches.
π οΈ Full Filesystem Capabilities: List directory structures, read UTF-8 and binary (Base64) files, write, append, rename/move, and delete.
π Drive Root Protection: Explicitly blocks mounting Windows drive roots (like
C:\) for maximum system safety.
ποΈ Workspace Architecture
Qwen-mcp/
βββ server.py # FastMCP core filesystem engine
βββ pyproject.toml # Packaging metadata & entry point
βββ requirements.txt # Python dependencies (mcp>=1.0.0)
βββ install.cmd / .sh # Helper installation scripts (optional)
βββ run.cmd / .sh # Helper launch scripts (optional)
βββ workspace/ # Root workspace directory
βββ projects/ # Internal projects live here
β βββ my-project/ # AI accesses as "my-project"
βββ external/ # External project shortcut link files
βββ davinci-app.txt # 1-line text file pointing to external folderπ₯ Download from GitHub
Choose the method that works best for you:
Option A: Clone via Git (Recommended)
git clone https://github.com/<your-username>/Qwen-mcp.git
cd Qwen-mcpOption B: Download as a ZIP Archive
On the GitHub repository page, click the green
<> Codebutton.Select
Download ZIP.Extract the ZIP file to your preferred folder (e.g.,
D:\MCPs\Qwen-mcporC:\Users\YourUser\Qwen-mcp).Open the folder in your terminal or command prompt.
π Prerequisites
Python 3.10+: Download Python (ensure "Add Python to PATH" is checked on Windows).
Astral
uv(Recommended): Install uv for instant, zero-setup execution.
# Verify uv installation
uv --versionπ Zero-Effort Quick Start
Method 1: Using uvx (Zero-Install, Recommended)
You do not need to create virtual environments or manually install dependencies. uvx will automatically install requirements in an isolated cache and run the server on demand.
Method 2: Standard Python Virtual Environment
If you prefer a traditional Python virtual environment:
On Windows:
Double-click install.cmd or run:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtOn Linux / macOS:
chmod +x install.sh run.sh
./install.shβοΈ Connecting to Qwen Studio & Other MCP Clients
Add the server configuration into your client's MCP settings file (such as Qwen Studio, Claude Desktop, Antigravity IDE, Cursor, Cline, or Roo Code).
Configuration Using uvx (Recommended)
{
"mcpServers": {
"qwen-mcp": {
"command": "uvx",
"args": ["--from", "/ABSOLUTE/PATH/TO/Qwen-mcp", "qwen-mcp"],
"env": {
"QWEN_MCP_ALLOW_EXTERNAL": "true"
}
}
}
}Replace/ABSOLUTE/PATH/TO/Qwen-mcp with your actual repository path.
Windows Example:
D:/Root/DummyCode/Experiment/MCPs/Qwen-mcpLinux/macOS Example:
/home/user/projects/Qwen-mcp
Configuration Using Python Directly
{
"mcpServers": {
"qwen-mcp": {
"command": "python",
"args": ["/ABSOLUTE/PATH/TO/Qwen-mcp/server.py"],
"env": {
"QWEN_MCP_ALLOW_EXTERNAL": "true"
}
}
}
}π Feeding Your Projects to Qwen Studio
Once Qwen MCP is connected, you have two effortless ways to grant Qwen Studio access to your projects:
1. The Direct Folder Method (Internal)
Simply create or copy your project folder inside workspace/projects/:
workspace/projects/my-video-tool/Qwen Studio will now recognize and interact with this project by the name my-video-tool.
2. The Shortcut Pointer Method (External β Recommended for Existing Work)
If your project already lives elsewhere on Windows (for example, in your Documents, Desktop, or DaVinci Resolve directories), you don't need to move it!
Create a
.txtfile insideworkspace/external/named after your project, e.g.,davinci-plugin.txt.Inside that file, write the single absolute path to your project folder:
C:\Users\YourName\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\Fusion\Fuses\MyPluginThat's it! Qwen Studio can now read and write directly to
davinci-pluginsafely.
(You can also use the qwen_register_external_project tool from inside Qwen Studio to link external directories automatically).
π§° Available MCP Tools
Qwen Studio automatically receives access to these 12 filesystem tools:
Tool | Description | Key Arguments |
| Checks server health, active workspace directory, and security flags. | None |
| Lists all internal and external connected projects. | None |
| Creates a new project folder inside |
|
| Registers an external folder path via a |
|
| Resolves any project name to its actual absolute filesystem path. |
|
| Recursively or shallowly lists files and subdirectories. |
|
| Reads file content as clean UTF-8 text or Base64 (for binaries). |
|
| Writes or overwrites a file (auto-creates directories). |
|
| Appends text or binary content to an existing or new file. |
|
| Deletes a file or directory ( |
|
| Renames or moves a file/folder within a project. |
|
| Searches text/regex inside project files with line numbers. |
|
π§ Environment Variables
You can configure operational limits via environment variables in your client config:
Variable | Default | Description |
|
| Path where |
|
| Allows or blocks mapping external project shortcuts. |
|
| Automatically creates missing target directories when linking. |
|
| File size threshold before content is truncated or converted. |
π Security & Sandboxing
Directory Traversal Defense: All paths are resolved and validated using strict containment checks. Any attempt by the AI to escape using
../../triggers an immediatePermissionError.Protected Roots: Windows drive roots (
C:\,D:\) cannot be registered as project sandboxes.Isolated Control: Setting
QWEN_MCP_ALLOW_EXTERNAL=falserestricts the server exclusively to files insideworkspace/projects/.
β Troubleshooting & FAQ
Verify that:
For internal projects: A folder named
<project-name>exists insideworkspace/projects/.For external projects: A text file named
<project-name>.txtexists insideworkspace/external/with a valid, absolute path on the first line.You can ask the AI to run
qwen_list_projectsto see all active projects detected by the server.
Create a text file workspace/external/davinci-scripts.txt and paste the path to your DaVinci Resolve Fusion Scripts or Fuses directory. In Qwen Studio, refer to the project as davinci-scripts.
The AI client attempted to access a path above the designated project directory. All file operations must stay within the root of the targeted project.
Install Astral uv from docs.astral.sh/uv and restart your terminal or Qwen Studio so your system PATH updates.
π License
Distributed under the MIT License. Built for seamless, safe AI development.
Available Tools
12 toolsqwen_append_fileB
Append content to a file inside a project. Creates the file if missing.
Inputs: path (required), content (required), project (required), encoding, +1 more. Returns: result
qwen_create_projectC
Create a project folder inside the Qwen MCP projects directory.
Inputs: name (required). Returns: result
qwen_delete_fileA
Delete a file or directory inside a project. Set recursive=true to delete directories.
Inputs: path (required), project (required), recursive. Returns: result
qwen_list_filesC
List files and directories inside a project.
Inputs: project (required), path, pattern, recursive. Returns: result
qwen_list_projectsA
List internal projects and external .txt-linked projects.
Inputs: no named parameters. Returns: result
qwen_read_fileB
Read a file from a project. Returns UTF-8 text when possible, otherwise base64.
Inputs: path (required), project (required). Returns: result
qwen_register_external_projectB
Register an external project by saving its absolute path into a .txt link file.
Inputs: name (required), path (required), create. Returns: result
qwen_rename_fileC
Rename or move a file or directory inside a project.
Inputs: project (required), new_path (required), old_path (required). Returns: result
qwen_resolve_projectA
Resolve a project name to its actual root directory.
Inputs: project (required). Returns: result
qwen_search_filesA
Search for text inside project files. Returns matching lines with file paths and line numbers.
Inputs: query (required), project (required), path, pattern, +2 more. Returns: result
qwen_statusA
Show where Qwen MCP stores projects and whether external projects are allowed.
Inputs: no named parameters. Returns: result
qwen_write_fileC
Write content to a file inside a project. Use encoding='base64' for binary data.
Inputs: path (required), content (required), project (required), encoding, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 12 tools
Each tool targets a distinct action and resource type: project-level status/list/create/register/resolve versus file-level list/read/write/append/delete/rename/search. There is no meaningful overlap between the tools, and the descriptions reinforce their boundaries.
All tools follow the same qwen_verb_noun pattern, with clear verbs like create, list, read, write, append, delete, rename, and search. The naming is uniform and predictable across the entire tool set.
12 tools is well within the ideal range for a filesystem server. Each tool covers a necessary operation without redundancy or bloat, and the set feels appropriately scoped for managing projects and their files.
File operations are well covered with create, read, update, append, delete, rename, and search. The main gaps are project lifecycle operations: there is no delete/unregister project tool, and no explicit directory creation tool, though these are minor for the core file-management purpose.
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.10MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides AI agents with secure access to local filesystem operations, enabling reading, writing, and managing files through a standardized interface.1082 npm55Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely browse, search, inspect, and understand local project files through Model Context Protocol tools.1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that gives AI assistants secure, sandboxed filesystem access with tools for reading, writing, searching, and managing files and directories.MIT