maic-server-fs-mcp

maic-server-fs-mcp

Provides LLMs with local filesystem operations (read/write files, list directories) and command execution via MCP, enabling file management and task automation within AI clients.

Category
Visit Server

README

Local Filesystem MCP Server (maic-server-fs-mcp)

一个基于 Model Context Protocol (MCP) 构建的自定义本地文件系统与命令行执行服务。此工具已被发布至 NPM,支持通过 npx 直接在 LLM 客户端(如 Cursor、Claude Desktop 等)中无缝运行。


🛠️ 核心工具 (Tools)

本 MCP 服务端向 LLM 提供了以下接口能力:

工具名称 作用描述 输入参数
readFile 读取指定本地文件内容 filePath (string)
writeFile 写入或更新本地文件(若父级目录不存在会自动创建) filePath (string), content (string)
readDirectory 列出目标文件夹内容(已自动忽略 node_modules 等庞大文件夹) filePath (string, 默认 .)
executeCommand 在终端中运行命令(同步执行,最长 30 秒超时) command (string)
dispatchTask 派发特定任务给下属专家(CODERTESTER worker ('CODER' | 'TESTER'), taskInstruction (string)
humanReview 人工审核插桩,用于人工确认 message (string)

🔌 接入与集成当前 MCP 服务

您可以通过 NPM 方式直接运行(推荐),或者使用本地克隆源码开发模式

方式 1: 通过 NPM 接入(最简便,推荐)

A. 接入 Cursor 编辑器

  1. 打开 Cursor 设置:进入 Settings ➡️ Features ➡️ MCP
  2. 点击 + Add New MCP Server
    • Name: maic-local-filesystem-mcp
    • Type: command
    • Command:
      npx -y --package maic-server-fs-mcp mcp-server-fs
      
  3. 点击 Save。等待状态指示灯亮起绿色 🟢。

B. 接入 Claude Desktop

  1. 打开并编辑 Claude Desktop 的配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. mcpServers 节点内,追加如下配置:
    {
      "mcpServers": {
        "maic-local-filesystem-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "--package",
            "maic-server-fs-mcp",
            "mcp-server-fs"
          ]
        }
      }
    }
    
  3. 保存文件并重启 Claude Desktop。

方式 2: 使用本地克隆源码运行(适合贡献者/二次开发)

1. 安装与构建

git clone https://github.com/maicFir/server-fs-mcp.git
cd server-fs-mcp
npm install
npm run build # 编译生成 dist/server.js

2. 在客户端中配置本地路径

  • Cursor (Command):
    node /absolute/path/to/server-fs-mcp/dist/server.js
    
  • Claude Desktop (claude_desktop_config.json):
    "maic-local-filesystem-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/server-fs-mcp/dist/server.js"
      ]
    }
    

⚠️ 开发者必看避坑指南 (Gotchas)

  • 标准输出占用:MCP 的 stdio 传输机制完全独占了标准输出流 (stdout) 用于 JSON-RPC 通信。因此在开发调试时,绝对不能在工具执行或初始化逻辑中使用 console.log()process.stdout.write()
  • 调试日志:所有打印日志、调试信息请全部使用 console.error() 输出,客户端会自动捕获并展示在控制台或日志文件中。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured