Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

MCP server · Developer tools · official

cmdshellmcp server

by ag88 · official

Let your AI run a small set of safe Unix commands and handle files in one folder you choose.

cmdshellmcp is a helper program that gives your AI a limited command line and some file tools on your own computer. It only runs commands you allow, and it stays inside one folder you pick. It is meant for people who want an AI to help with small coding or file tasks without handing over a full, unrestricted shell.

What is an MCP server? The 30-second version

On its own, your AI can only chat. An MCP server is a small helper program that gives your AI a new skill or a connection to something else. This one connects your AI to a restricted command line and a set of file actions on your machine. So when you ask for something, the AI can actually look at files or run an allowed command for you, instead of just talking about it.

What this MCP server does

You ask your AI to do something, like list files or read a text file. The AI sends that request to cmdshellmcp, which runs on your computer. The helper checks that the command is on the allowed list and that the file path stays inside the working folder you set. Then it runs the command or file action and sends the result back. Your AI shows you the answer in the chat.

What you can do with it

  • List files and folders inside the folder you chose
  • Read the contents of a text file
  • Search inside files with grep or egrep
  • Create, copy, move, rename, or delete files
  • Make or remove directories
  • Edit a text file with sed and get a diff of the change
  • Apply a unified diff patch to files
  • Fetch a web page and optionally clean up the HTML

Try asking your AI

  • “List all files in my project folder and tell me which ones are largest”
  • “Read the file notes.txt and summarize it for me”
  • “Find every line containing TODO in the files under this folder”
  • “Fetch this web page and give me the main text without the HTML tags”

What it gives back to you

You get answers in the chat: lists of files, the text of a file, search results, or a short summary of a web page. When it edits or patches a file, it can show you a diff so you see exactly what changed. It can also tell you if a command failed and why. Everything stays inside the folder you set.

Before you start

What you need

  • Python installed on your computer
  • The fastmcp, requests, and beautifulsoup4 Python packages
  • GNU sed and diff installed if you want to use the editFile tool
  • A configuration file that sets the working folder and allowed commands

Good to know

This server can run commands and change or delete files, so only use it in a disposable sandbox and never with untrusted clients or an AI you do not trust.

Install it with your AI

Add cmdshellmcp server to your AI, no technical skills needed

You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.

Sign in to get the install prompt

Members get a ready-made prompt that lets the Claude desktop app check cmdshellmcp server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 5,046 MCP servers here for you.

Sign in Start for Free

Who it's for

This is for developers, coders, and technical office workers who want an AI to help with small file and command line tasks in a controlled way.

Jobs it suits