file-mcp
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., "@file-mcpread the contents of readme.md"
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.
file-mcp
Учебный MCP-сервер для работы с файлами.
Описание
MCP-сервер, реализующий базовые файловые операции через протокол MCP (Model Context Protocol).
Сервер работает через STDIO (JSON-RPC 2.0) и может использоваться любым MCP-клиентом (Roo Code, Claude Desktop, Cursor и др.).
Related MCP server: Filesystem MCP Server
Инструменты
Инструмент | Описание | Параметры |
| Прочитать содержимое файла |
|
| Записать содержимое в файл |
|
Установка
# Клонировать репозиторий
git clone <repo-url>
cd file-mcp
# Создать виртуальное окружение
python -m venv .venv
# Активировать (Windows)
.venv\Scripts\activate
# Установить зависимости
pip install -r requirements.txtЗапуск
python main.pyСервер запускается в режиме STDIO и ожидает JSON-RPC сообщений от MCP-клиента.
Тестирование
Проверить работу сервера можно через Git Bash:
# Получить список инструментов
cd /g/projects/file-mcp && printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test-client","version":"1.0.0"}}}\n{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}\n' | .venv/Scripts/python main.py
# Прочитать файл
cd /g/projects/file-mcp && printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test-client","version":"1.0.0"}}}\n{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"read_file","arguments":{"path":"main.py"}}}\n' | .venv/Scripts/python main.py
# Записать файл
cd /g/projects/file-mcp && printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test-client","version":"1.0.0"}}}\n{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"write_file","arguments":{"path":"example.txt","content":"Hello from MCP!"}}}\n' | .venv/Scripts/python main.pyКонфигурация Roo Code
Файл .codeassistant/mcp.json:
{
"mcpServers": {
"file-mcp": {
"command": "g:\\projects\\file-mcp\\.venv\\Scripts\\python.exe",
"args": ["main.py"],
"cwd": "g:\\projects\\file-mcp"
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
Read-only MCP server exposing a user ORANO library to their own AI agent.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseAqualityAmaintenanceNode.js server implementing Model Context Protocol (MCP) for filesystem operations.1014497,862 npm90,569-
- AlicenseNot gradedqualityFmaintenanceGo server implementing Model Context Protocol (MCP) for filesystem operations.690MIT
- AlicenseNot gradedqualityDmaintenanceA proof-of-concept MCP server that enables reading local files and performing basic arithmetic operations. It provides a simple foundation for understanding how tools are exposed to MCP clients.1,026 npmMIT
- AlicenseAqualityAmaintenanceMCP Server that enables LLMs to interact with the local filesystem.13865 npm23MIT