MCP-Delete
The MCP-Delete server provides a tool to safely delete files using both relative and absolute paths. It features intelligent path resolution that tries multiple approaches to locate files, performs existence checks before deletion, and returns clear error messages with path resolution details if deletion fails. The server works with Claude and other MCP-compatible AI assistants.
Provides specific configuration paths and instructions for macOS users to enable file deletion capabilities.
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., "@MCP-Delete delete the temporary file test_output.log"
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.
@qpd-v/mcp-delete
A Model Context Protocol (MCP) server that provides file deletion capabilities. This server allows AI assistants to safely delete files when needed, with support for both relative and absolute paths.
Features
Delete files using relative or absolute paths
Smart path resolution that tries multiple potential paths
Clear error messages with detailed path resolution information
Safe file existence checks before deletion
Works with Claude and other MCP-compatible AI assistants
Related MCP server: File MCP Server
Examples
Using with Claude Desktop

Using with VSCode Roo Cline Extension

Installation
Installing via Smithery
To install File Deletion for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @qpd-v/mcp-delete --client claudeManual Installation
npx @qpd-v/mcp-deleteOr install globally:
npm install -g @qpd-v/mcp-deleteConfiguration
Claude Desktop
Add the server configuration to your Claude Desktop config file:
Windows:
// %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-delete": {
"command": "npx",
"args": ["@qpd-v/mcp-delete"]
}
}
}MacOS:
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-delete": {
"command": "npx",
"args": ["@qpd-v/mcp-delete"]
}
}
}
}VSCode Extension
Add the server configuration to your Cline settings:
Windows:
// %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
{
"mcpServers": {
"mcp-delete": {
"command": "npx",
"args": ["@qpd-v/mcp-delete"]
}
}
}MacOS:
// ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
{
"mcpServers": {
"mcp-delete": {
"command": "npx",
"args": ["@qpd-v/mcp-delete"]
}
}
}
}Available Tools
delete_file
Deletes a file at the specified path.
Parameters:
path(string, required): Path to the file to delete (relative to working directory or absolute)
Example usage in Claude:
You can ask me to delete a file like this:
"Please delete the file example.txt"
I will use the delete_file tool to safely remove the file.Path Resolution
The server intelligently handles path resolution by trying multiple approaches:
The exact path as provided
Path relative to the current working directory
Path relative to a specified base directory
This makes it more user-friendly as files can be referenced by relative paths and the server will attempt to locate them correctly.
Development
Clone the repository:
git clone https://github.com/qpd-v/mcp-delete.git
cd mcp-deleteInstall dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchDebugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for debugging:
npm run inspectorThis will provide a URL to access debugging tools in your browser.
License
MIT
Author
qpd-v
Available Tools
1 tooldelete_fileC
Delete a file at the specified path (supports both relative and absolute paths)
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap with other tools. The tool's purpose is singular and clearly defined.
A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The tool name 'delete_file' follows a clear verb_noun pattern.
One tool is too few for a server named 'MCP-Delete', which suggests a broader deletion domain. A single file deletion tool feels thin and incomplete for the implied scope.
The server name implies deletion operations, but only file deletion is covered. There are significant gaps, such as deleting directories, database entries, or other resources, which will likely cause agent failures.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
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 (MCP) server that enables AI assistants to perform comprehensive file operations including finding, reading, writing, editing, searching, moving, and copying files with security validations.71MIT
- FlicenseNot gradedqualityDmaintenanceA model-agnostic Model Context Protocol server implementation that works with any compatible AI model or client, allowing tools like file operations to be accessed through the MCP standard.1-
- AlicenseAqualityAmaintenanceFilesystem MCP server for AI assistants. Search, read, edit, and manage local files in directories you choose.6141,447 npm34MIT