AI Dev Assistant
This server bridges Claude Desktop to your local Windows development environment, giving Claude four developer tools to interact with your local machine.
Read Local Repositories (
github_repo_reader): Recursively reads source files from any local repo, returning a directory tree and file contents — automatically skipping.git,node_modules, binaries, and files over 500KB (up to 500 files per call).Execute Code Snippets (
code_executor): Runs self-contained Python or Node.js code in a sandboxed process with a 15-second timeout and 64KB output cap — ideal for quick calculations, data transformations, and logic testing with no persistent state between calls.Search Local Documentation (
doc_search): Performs case-insensitive, multi-keyword full-text search across a local docs folder, supporting a wide range of file types (.md,.txt,.json,.yaml,.py,.ts,.js,.sh, etc.) with surrounding context returned for each match.Run Terminal Commands (
terminal_commander): Executes safe Windows CMD or PowerShell commands (e.g.,git status,dir,npm install,ipconfig) via a strict allowlist, with dangerous patterns (e.g.,rm -rf,format C:,shutdown) blocked automatically — supports custom working directories and optional PowerShell mode.
Allows running Docker commands on the local machine, such as managing containers and images, through the terminal commander tool.
Allows reading local Git repositories and executing Git commands (e.g., status, log, diff) via the terminal commander tool.
Enables executing Node.js code snippets in an isolated sandbox via the code executor tool.
Provides ability to run npm commands (e.g., install, build) via the terminal commander tool.
Enables executing Python code snippets in an isolated sandbox via the code executor tool.
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., "@AI Dev Assistant Read my repo at C:\Projects\my-api and explain the architecture."
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.
🤖 AI Dev Assistant — MCP Server
A production-ready Model Context Protocol (MCP) Server that bridges Claude Desktop directly to your local Windows 10 development environment. Give Claude the ability to read your code, run scripts, search docs, and execute safe terminal commands — all without leaving the chat.
✨ What It Does
This server extends Claude Desktop with four powerful developer tools:
Tool | What It Does |
| Recursively reads any local repo (ignores |
| Runs Python or Node.js snippets in isolated child processes |
| Full-text keyword search across your local |
| Executes safe CMD/PowerShell commands via a strict allowlist |
Related MCP server: aki-mcp-sv
🏗️ Project Structure
ai-dev-assistant-mcp/
├── main.py ← MCP server entry point & tool implementations
├── pyproject.toml ← Python project configuration
├── claude_desktop_config.json ← Example Claude Desktop config block
└── README.md⚙️ Setup (Windows 10)
Prerequisites
Python 3.8+ — verify with
python --versionNode.js (optional, only needed for the
code_executorNode.js runtime)Claude Desktop installed
uv (optional, for faster installs) or pip
Step 1 — Clone / Place the Project
Place this project folder somewhere permanent, for example:
C:\ai-dev-assistant-mcp\⚠️ Do not move the folder later — Claude Desktop will reference the script path.
Step 2 — Install Dependencies
Open a terminal in the project root and run:
cd C:\ai-dev-assistant-mcp
pip install -e .Or with uv:
uv pip install -e .Step 3 — Configure Claude Desktop
Open (or create) the Claude Desktop config file at:
%APPDATA%\Claude\claude_desktop_config.jsonPaste in the following block (adjust the path if you placed the project elsewhere):
{
"mcpServers": {
"ai-dev-assistant": {
"command": "python",
"args": [
"C:\\ai-dev-assistant-mcp\\main.py"
],
"env": {}
}
}
}💡 Already have other MCP servers? Just add the
"ai-dev-assistant"key inside your existing"mcpServers"object.
Step 4 — Restart Claude Desktop
Fully quit and relaunch Claude Desktop. You should see the 🔧 tools icon in the chat input bar — click it to confirm all four tools appear.
🔒 Security Architecture
Terminal Commander Safe List
The terminal_commander tool will refuse to run any command whose base name is not on the explicit allowlist in main.py:
SAFE_COMMANDS_ALLOWLIST = {
"dir", "ls", "git", "node", "npm", "npx", "python",
"tsc", "docker", "ipconfig", "ping", "whoami", ...
}Additionally, even allowlisted commands are blocked if they match any dangerous pattern:
rm -rf del /s format C: shutdown
taskkill net user netsh Invoke-Expression
curl | bash registry edits UAC elevation ...To add a new command, edit SAFE_COMMANDS_ALLOWLIST in main.py.
Code Executor Sandbox
Scripts run in isolated temp files — no persistent state between calls
15-second hard timeout — runaway processes are killed automatically
64 KB output cap — prevents memory exhaustion from verbose output
Temp files are deleted immediately after execution
Repo Reader Limits
Ignores:
.git,node_modules,.next,dist,__pycache__,.venv, etc.Skips: binary files, images, archives,
.lockfiles500 KB per-file cap — large generated files are skipped automatically
500 file maximum per call
🛠️ Usage Examples
Once connected to Claude Desktop, you can ask Claude:
"Read my repo at C:\Projects\my-api and explain the architecture."
"Run this Python script and tell me the output:
import json; print(json.dumps({'status': 'ok', 'count': 42}))"
"Search my docs folder at C:\Projects\my-api\docs for 'authentication'"
"Run git status in C:\Projects\my-api"
"What files are in C:\Projects? Run dir."🔧 Development
Run Directly
python main.pyAdd a New Tool
Add a new
@Tool()decorated function inmain.pyThe server will automatically register it
🪟 Windows Path Notes
Windows paths use backslashes. In JSON config files, always double-escape them:
"C:\\Users\\YourName\\Projects\\my-repo"In Claude prompts, you can use either style — the tools normalize paths internally using pathlib.Path.resolve().
📦 Tech Stack
Layer | Technology |
Language | Python 3.8+ |
MCP SDK |
|
Process execution |
|
Transport | stdio (standard MCP transport) |
🤝 How It Bridges Claude and Windows
┌─────────────────────────────────────────────────┐
│ Claude Desktop │
│ ┌─────────────────────────────────────────────┐ │
│ │ Claude AI (Claude Sonnet / Opus) │ │
│ │ → Decides which tool to call │ │
│ └─────────────┬───────────────────────────────┘ │
└────────────────┼────────────────────────────────┘
│ MCP Protocol (stdio JSON-RPC)
┌────────────────▼────────────────────────────────┐
│ AI Dev Assistant MCP Server │
│ ┌──────────────┐ ┌──────────────────────────┐ │
│ │ Repo Reader │ │ Code Executor │ │
│ │ (pathlib) │ │ (asyncio.subprocess) │ │
│ └──────────────┘ └──────────────────────────┘ │
│ ┌──────────────┐ ┌──────────────────────────┐ │
│ │ Doc Search │ │ Terminal Commander │ │
│ │ (os.walk) │ │ (cmd.exe / pwsh.exe) │ │
│ └──────────────┘ └──────────────────────────┘ │
└─────────────────────────────┬───────────────────┘
│
┌───────────────▼───────────────┐
│ Windows 10 File System │
│ Python / Node Runtimes │
│ Git / npm / Docker │
└───────────────────────────────┘Claude sends a tool-call request over stdio. The MCP server validates it, executes the appropriate handler, and returns formatted Markdown back to Claude — which presents it naturally in the conversation.
📄 License
MIT — free to use, modify, and build upon.
Available Tools
4 toolscode_executorA
Executes a small Python or Node.js code snippet in a sandboxed child process. Hard limits: 15 second timeout, 64 KB output cap. The snippet runs in an isolated temp file — no persistent state between calls. Ideal for quick calculations, data transformations, and API-free logic.
Inputs: language (required), code (required).
doc_searchB
Searches all documents in a local docs/ folder (or any directory) for one or more keywords. Supports case-insensitive multi-keyword search across markdown, text, JSON, YAML, code, and other text files. Returns matching lines with surrounding context. Searchable extensions: .md, .txt, .rst, .html, .json, .yaml, .ts, .js, .py, .sh, .bat, .ps1, and more.
Inputs: docs_path (required), keywords (required), case_sensitive, file_extension_filter.
github_repo_readerA
Recursively reads all source files in a local repository directory. Automatically ignores .git, node_modules, binary files, and large files (>500KB). Returns a directory tree and the full content of each readable file.
Inputs: repo_path (required), max_files.
terminal_commanderA
Executes a safe Windows CMD or PowerShell command on the local machine. Protected by a strict allowlist — only pre-approved commands are permitted. Dangerous patterns (rm -rf, del /s, format, shutdown, registry edits, etc.) are blocked even if the base command is allowed. Allowed commands include: dir, git, node, npm, python, tsc, docker, ipconfig, and more. Use this to run git status, dir, npm install, tsc --noEmit, etc.
Inputs: command (required), working_directory, use_powershell.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: code_executor runs code snippets, doc_search searches documents, github_repo_reader reads repository files, and terminal_commander executes system commands. The descriptions make it easy to differentiate between them, as they target different resources and use cases.
The naming follows a consistent snake_case pattern with descriptive names (e.g., code_executor, doc_search), but there is a minor deviation with github_repo_reader using a compound term that could be more aligned (e.g., repo_reader). Overall, the naming is readable and mostly predictable.
With 4 tools, the count is well-scoped for an AI Dev Assistant, covering key development tasks like code execution, documentation search, repository reading, and terminal commands. Each tool earns its place without feeling excessive or insufficient for the server's purpose.
The tool set covers essential development workflows, including code execution, documentation, repository management, and system operations. A minor gap exists in not having tools for more advanced tasks like debugging or version control beyond basic commands, but agents can work around this with the provided tools.
Related MCP Connectors
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides Claude Desktop with direct access to your local file system for development tasks, enabling file operations (read, write, edit), directory browsing, command execution, and codebase search within a configured projects directory.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude AI to securely access files, run shell commands, and search through a Windows computer with explicit user permission.7 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables Windows-native developer orchestration for Claude Code and Codex with PowerShell discovery, capability routing, safety-gated execution, package management, and sandbox-based isolation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to perform local development tasks on Windows by reading and editing files, running commands, and controlling browser and desktop tools, all within isolated workspaces. Supports secure remote access via an optional tunnel for ChatGPT clients.MIT