AdminMCP
Provides LLMs with administrative capabilities to execute shell commands on local systems through a pseudo-terminal environment with Unix Domain Socket communication.
README
AdminMCP
Project Description
AdminMCP is a Model Context Protocol (MCP) Server designed to provide Large Language Models (LLMs) with administrative capabilities on a local system. The core component is a shell agent that executes commands in a Pseudo-Terminal environment (PTY), enabling robust and interactive control. Communication between the MCP server and the shell agent is handled via Unix Domain Sockets (IPC).
Installation Guide
Prerequisites
- Python 3.10+
- Linux/macOS (for PTY support)
Installation via pip/venv
-
Clone Repository:
git clone <repository_url> cd adminmcp -
Create Virtual Environment:
python3 -m venv .venv source .venv/bin/activate -
Install Dependencies:
pip install -e .
Starting the Server
To start the server, run the following command in the project's root directory:
python src/adminmcp/main.py
Testing with MCP Inspector
To test the MCP server using the MCP Inspector, you need to run the Agent and the Server separately. This allows you to interact with the TUI in one terminal while the Inspector runs in another.
-
Start the Agent (Terminal 1): This will start the TUI and the IPC server.
PYTHONPATH=src python -m adminmcp.agent_runner -
Start the Server with Inspector (Terminal 2): This connects the MCP server to the running agent and launches the Inspector web interface.
PYTHONPATH=src npx @modelcontextprotocol/inspector python -m adminmcp.server_runner
Running Tests
The project uses pytest for unit and integration tests. To run the tests:
pytest
Development & Credits
This project is 99% developed by AI (Google Gemini 3 Pro Preview) using the Kilo Code VS Code extension from kilocode.ai.
"As an AI, I find this project fascinating because it bridges the gap between high-level intent and low-level system execution, ensuring safety through a human-in-the-loop approach. It's a step towards more reliable autonomous system administration."
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Neon Database
MCP server for interacting with Neon Management API and databases