Qwen MCP Filesystem Server
ποΈ 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
π‘ 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 https://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.
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/Frosty-09/Qwen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server