AgentMcp
A local server that allows AI to execute Windows CMD commands, read/write files, and manage directories within a specified path.
English
AgentMcp
一个本地MCP服务器,允许AI在指定文件路径中工作、执行Windows CMD命令、读写文件和创建目录。该工具可实现简单项目的自主部署、脚本编写和执行等功能。与其他网页抓取MCP工具结合,可从互联网下载文件。
安装
按照以下步骤安装并运行AgentMcp:
-
安装所需的包:
pip install uv
-
初始化项目:
uv init AgentMcp
-
进入项目目录:
cd AgentMcp
-
创建并激活虚拟环境:
uv venv .venv\Scripts\activate
-
添加MCP CLI:
uv add mcp[cli]
-
下载储存库里的AgentMcp.py放入AgentMcp目录下
-
修改AgentMcp.py参数,将其中的路径更改为你所需的工作目录地址。
BASE_DIR = Path(r"C:\\Users") # 请填写好你规定的工作路径
-
运行AgentMcp服务器:
mcp run AgentMcp
集成
将AgentMcp集成到你的AI软件中,添加以下配置:
{
"mcpServers": {
"AgentMcp": {
"command": "uv",
"args": ["--directory", "C:\\example\\AgentMcp", "run", "AgentMcp.py"]
}
}
}
功能
- 文件操作:在指定目录中读写文件。
- 目录管理:创建和管理目录。
- 命令执行:自主运行Windows CMD命令。
- 自主部署:部署简单项目和脚本。
- 联合工作:与其他MCP工具结合进行网页抓取和文件下载。
使用场景
- 自动化本地文件和目录任务。
- 无需人工干预即可部署脚本和小型项目。
- 结合网络工具下载和管理文件。
许可证
AgentMcp是开源的,基于MIT许可证发布。
Related Servers
MCP Apple Notes
Perform semantic search and retrieval augmented generation over your Apple Notes.
ZIP MCP Server
Compress and decompress ZIP files, with support for multi-file packaging, password protection, and encryption.
PDF Splitter
Provides random access to PDF contents, allowing selective extraction of pages and content to reduce reading costs.
mini_mcp
A lightweight plugin to list all files and folders on the current macOS user's desktop.
WebP Batch Converter
Batch convert PNG, JPG, and JPEG images to WebP format with options for quality, lossless mode, and multi-threaded processing.
File Converter
Convert various file formats for documents and images, such as DOCX, PDF, CSV, and more.
peekaboo-mcp
A minimal MCP server providing read-only access to the file system.
CData FTP Server
A read-only MCP server for querying live FTP data using the CData JDBC Driver.
File MCP Server
A server providing comprehensive file system operations, automatically downloaded and built on first use.
Filesystem MCP Server
A server for performing filesystem operations such as reading/writing files, managing directories, and searching.