mcp-infra-readonly
Click on "Install 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., "@mcp-infra-readonlylist all Ansible hosts"
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.
mcp-infra-readonly
Serveur MCP (Model Context Protocol) Python donnant à Claude Code un accès strictement en lecture à l'infrastructure Epiconcept — logs, état des services, métriques, facts Ansible, état Docker.
Repos liés :
Sandbox Docker Claude Code : https://github.com/senseicoder/claude-sandbox
Principe de sécurité
Zéro écriture : aucun outil ne peut modifier l'état d'un serveur
Liste blanche explicite : seules les commandes listées dans
config/allowlist.ymlsont exécutablesPas de sudo : toutes les commandes s'exécutent avec les droits de l'utilisateur SSH
Transport stdio : le serveur tourne en local, communique via stdin/stdout avec Claude Code
Pas de credentials en dur : la configuration SSH utilise les clés SSH existantes de l'hôte
Related MCP server: MySQL MCP Server
Outils MCP exposés
Outil | Description | Commande SSH sous-jacente |
| Liste les hosts Ansible connus | lecture inventory |
| État d'un service systemd |
|
| Dernières N lignes d'un log |
|
| Utilisation disque |
|
| Top processus CPU/RAM |
|
| État des containers Docker |
|
| Facts Ansible d'un host |
|
| Dernières valeurs Munin | lecture fichiers RRD/texte |
Installation
pip install -e .Configuration
cp config/hosts.yml.example config/hosts.yml
# Éditer config/hosts.yml avec les hosts réelsUtilisation avec Claude Code
Ajouter dans .mcp.json du projet ou dans ~/.claude/settings.json :
{
"mcpServers": {
"infra": {
"command": "python",
"args": ["-m", "mcp_infra.server"],
"cwd": "/chemin/vers/mcp-infra-readonly"
}
}
}Architecture
mcp-infra-readonly/
├── src/mcp_infra/
│ ├── server.py # point d'entrée MCP
│ ├── config.py # chargement config + allowlist
│ └── tools/
│ ├── ssh.py # helper SSH lecture seule
│ ├── services.py # get_service_status, get_process_list
│ ├── logs.py # get_log_tail, get_disk_usage
│ ├── docker.py # get_docker_status
│ └── ansible.py # get_ansible_facts, list_hosts
├── config/
│ ├── hosts.yml.example
│ └── allowlist.yml # liste blanche des commandes autorisées
└── tests/This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/senseicoder/mcp-infra-readonly'
If you have feedback or need assistance with the MCP directory API, please join our Discord server