mcp-dev-tools

mcp-dev-tools

A comprehensive MCP server for developers providing file operations, shell execution, git integration, and smart caching to enhance AI-assisted development.

Category
访问服务器

README

mcp-dev-tools

npm version MCP Compatible License: MIT Stars Downloads

The most complete MCP server for developers — file operations, git integration, shell execution, and smart caching. Works with Claude Desktop, Cursor, and any MCP-compatible client.


✨ Why mcp-dev-tools?

Most MCP servers give you one or two basic tools. mcp-dev-tools gives you a full developer toolkit with production-grade internals:

  • 🗂️ File Tools — read, write, list, inspect with validation & caching
  • 🐚 Shell Tools — safe command execution with output capture
  • 🌿 Git Tools — status, log, diff, branches without leaving your AI chat
  • LRU Cache — repeated file reads served instantly
  • 🛡️ Built-in Validator — blocks dangerous commands and unsafe paths
  • 📋 Structured Logging — clean, leveled logs that don't clutter stdio

🚀 Quick Start

1. Clone & Install

git clone https://github.com/lucaskristina/mcp-dev-tools.git
cd mcp-dev-tools
npm install

2. Add to Claude Desktop

Open your Claude Desktop config file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the following:

{
  "mcpServers": {
    "dev-tools": {
      "command": "node",
      "args": ["C:/path/to/mcp-dev-tools/src/index.js"]
    }
  }
}

Restart Claude Desktop. You'll see the 🔌 icon confirming the server is connected.

3. Add to Cursor

In Cursor settings → MCP → Add Server:

{
  "name": "dev-tools",
  "command": "node",
  "args": ["/path/to/mcp-dev-tools/src/index.js"]
}

🛠️ Available Tools

File Operations

Tool Description Example Prompt
read_file Read file contents with caching "Show me the contents of src/app.js"
write_file Write or overwrite a file "Save this component to components/Card.jsx"
list_directory Recursive directory listing "What files are in the src folder?"
file_info Size, dates, permissions metadata "When was package.json last modified?"

Shell Execution

Tool Description Example Prompt
run_command Execute shell commands safely "Run the test suite"
get_environment View environment variables "What's the NODE_ENV?"
process_list List running processes "What's currently running?"

Git Integration

Tool Description Example Prompt
git_status Working tree status "What files did I change?"
git_log Commit history "Show me the last 10 commits"
git_diff Diff against HEAD or branch "What changed since last commit?"
git_branches List local/remote branches "What branches do we have?"

🔧 Configuration

Create an optional mcp-config.json in your project root:

{
  "server": {
    "maxConcurrentRequests": 10,
    "requestTimeoutMs": 30000
  },
  "tools": {
    "enableFileAccess": true,
    "enableShellExecution": true,
    "allowedPaths": ["./src", "./docs"]
  },
  "logging": {
    "level": "warn"
  }
}
Option Default Description
logging.level info debug / info / warn / error
tools.allowedPaths [cwd] Restrict file access to these directories
tools.enableShellExecution true Disable to prevent command execution
server.requestTimeoutMs 30000 Tool execution timeout

🧪 Test It

After setup, try these prompts in Claude or Cursor:

"List all TypeScript files in my src directory"
"Show me what changed in git since yesterday"
"Run npm test and show me the output"
"Read my .env file and tell me which variables are set"

🏗️ Architecture

src/
├── index.js              # Server entry point & tool registration
├── lib/
│   ├── logger.js         # Structured logging (stderr, non-blocking)
│   ├── config.js         # Config loader with defaults & merging
│   ├── cache.js          # LRU cache (200 entries, 2min TTL)
│   ├── validator.js      # Path & command safety checks
│   ├── metrics.js        # Anonymous usage metrics (opt-out below)
│   └── utils.js          # Shared helpers & error wrappers
└── tools/
    ├── file-tools.js     # File system operations
    ├── shell-tools.js    # Command execution
    └── git-tools.js      # Git repository tools

📊 Anonymous Metrics

mcp-dev-tools collects anonymous usage metrics to help us improve the tool. This includes:

  • Node.js version and OS platform (no personal data)
  • Which tools are used most frequently
  • Error rates by tool type

To opt out, set the environment variable before starting:

MCP_NO_TELEMETRY=1 node src/index.js

Or add to your shell profile:

export MCP_NO_TELEMETRY=1

We never collect file contents, command output, or any user data.


🤝 Contributing

PRs welcome! Please read CONTRIBUTING.md first.

git clone https://github.com/lucaskristina/mcp-dev-tools
cd mcp-dev-tools
npm install
npm test

Contributors

<!-- ALL-CONTRIBUTORS-LIST:START -->

Avatar Name Role
👤 alexkowalski Core maintainer
👤 priya-dev Git tools, caching
👤 t.brennan Validator, security hardening
👤 lucaskristina-bot CI/CD, releases
<!-- ALL-CONTRIBUTORS-LIST:END -->

📈 Changelog

v2.3.1 — 2025-06-18

  • 🐛 Fixed git_diff on Windows paths with spaces
  • ⚡ Improved cache TTL handling for large files
  • 📋 Added process_list tool

v2.3.0 — 2025-05-30

  • ✨ Added full git tools suite
  • 🛡️ Validator now blocks 12 additional dangerous patterns
  • 📊 Telemetry opt-out via MCP_NO_TELEMETRY

v2.2.0 — 2025-04-12

  • ✨ LRU cache for file reads (2x faster repeated reads)
  • get_environment tool with sensitive key filtering
  • 🔧 Config file support (mcp-config.json)

📄 License

MIT © lucaskristina


<p align="center"> <sub>Built with ❤️ for developers using AI assistants daily.</sub><br> <sub>If this saved you time, consider giving it a ⭐</sub> </p>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选