Skip to main content
Glama
sivanlm-commits

MCP Workspace Server

MCP Workspace Server

一个轻量级的 Python MCP 服务器,让 AI 代理能够安全、结构化地访问受控本地工作区内的文件。

概览

AI 代理通常需要访问存储在本地文件中的项目上下文。如果给代理无限制的文件系统访问权限,就会带来不必要的安全风险。

本项目使用 Model Context Protocol (MCP) 来暴露一组受控的工作区工具,同时将访问限制在配置的目录内。

Related MCP server: Files MCP Server

MCP 工具

该服务器提供三种工具:

list_workspace_files

列出工作区内可用的文件。

read_text_file

以可配置的文件大小限制读取 UTF-8 文本文件。

search_text

搜索工作区文档,并返回匹配的文件名、行号和文本。

安全性

服务器会相对于定义的工作区根目录来解析请求的路径,并防止路径遍历绕过到该目录之外。

其他安全保护包括:

  • 受限的工作区访问

  • 输入验证

  • 文件大小限制

  • UTF-8 处理

  • 路径遍历防护

  • 自动化安全测试

项目结构

mcp-workspace-server/
├── src/
│   └── mcp_workspace_server/
│       ├── __init__.py
│       └── server.py
├── tests/
│   └── test_paths.py
├── workspace/
│   └── example.txt
├── pyproject.toml
└── README.md
A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables Large Language Models to safely browse and interact with local file systems through secure directory listing, file reading, and content search capabilities. Built with comprehensive security controls and high-performance handling of large directories and files.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to safely explore directories, read files, search content by pattern or filename, and edit files with checksum verification and dry-run preview within sandboxed filesystem access.
    13
    75
    ISC
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides secure filesystem access for AI assistants with optimizations like file reading limits and depth-limited traversal to improve token efficiency. It enables AI models to read, write, and search files within explicitly allowed directories while automatically skipping large system folders.
    3
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides a secure, constrained filesystem workspace for LLM agents to manage files, notes, and code artifacts via stdio or remote HTTP. It features granular access controls, including extension whitelisting, storage quotas, and immutable paths for safe automated file operations.
    BSD 3-Clause

View all related MCP servers

Related MCP Connectors

  • Securely search and manage workspace context files for AI agents and teams.

  • Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.

  • File uploads for AI agents. Upload, list, and manage files. No signup required.

View all MCP Connectors

Latest Blog Posts

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/sivanlm-commits/mcp-workspace-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server