Modular MCP Server
@da-snap
关于 Modular MCP Server
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Modular MCP Server?
It is a Go implementation of a Model Context Protocol (MCP) server using the mcp-golang library, structured in a modular way. It provides file operations (show, search, write) and shell command execution with security features like path restriction.
How to use Modular MCP Server?
Build and run from source: cd cmd/mcp-server && go build -o mcp-server && ./mcp-server. Configure allowed paths via --paths flag or MCP_ALLOWED_PATHS environment variable, and denied paths via --deny-paths or MCP_DENIED_PATHS. If no paths are specified, the server defaults to the current working directory.
Key features of Modular MCP Server
- File operations: show, search, and write files.
- Execute shell commands with whitelisted utilities.
- Path restriction system to limit file operations.
- Configurable allowed and denied paths via CLI and environment variables.
- Modular tool architecture: easy to add new tools.
- Automatic denial of sensitive directories like .git and .env.
Use cases of Modular MCP Server
- Allowing an AI assistant to read and write files within a safe directory.
- Executing predefined shell commands in a restricted environment.
- Providing a secure file editing interface for MCP clients.
- Extending with custom tools for domain-specific operations.
FAQ from Modular MCP Server
What dependencies are required?
Requires Go to build; uses github.com/metoro-io/mcp-golang library. No other external runtime dependencies are mentioned.
How do I configure allowed paths?
Use the --paths flag (colon‑separated) or MCP_ALLOWED_PATHS environment variable. Denied paths can be set with --deny-paths or MCP_DENIED_PATHS.
What is the default behavior if no paths are configured?
If no paths are specified, the server defaults to allowing only the current working directory.
What security measures are in place for shell commands?
Commands are restricted to a whitelist of common utilities; custom executable paths are checked against allowed paths; working directories must be within allowed paths.
How can I add a new tool?
Create a new file in internal/tools, implement the Tool interface (and optionally ConfigAware for configuration access), then register the tool in cmd/mcp-server/main.go.
开发工具 分类下的更多 MCP 服务器
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
评论