r/devops • • Sep 15 '26

Discussion Anyone using MCP to manage Infrastructure

Hi Everyone, I am working in a small company and we do not have the resources to get really big teams. So what we though of was to start using AI to cover the current gap. We mostly suffer from a lot of operational issues which needs to be resolved really fast. (I know really fast is really vague, but sadly there is no SLA because the Manager only sees every hour that our system has issues as lost revenue. its an ecommerce company)

So what we thought of now is to utilize AI and MCPs to help us evaluate issues faster. Like on our File Servers, there are a certain set of conditions that the folders need to have so that our applications work. Sometimes the files that we receive cause issues and we would like to simply utilize AI to evaluate all of this. We are also utilizing AWS and Kubernetes.

Any thoughts on the strategy that we have utilized. I would like to know:

  • Have you guys done something like this? Any pointers that we need to consider?
  • Interested on any other innovative ways how you have also solved similar issues?
  • Other interesting ways that would help us as well and not just using AI and MCP for evaluating issues.
  • Or just in general thumbs up 😄

Thanks for you feedback!

7 Upvotes

36 comments sorted by

31

u/neveralone59 Sep 15 '26

Where is your other account to comment a proprietary solution?

-3

u/hakku276 Sep 15 '26

ahh you mean that I am scanning for people to market? Sadly I am not. I would just like to know how you guys handle it.. Should I have added a tag somewhere here that said I am not promoting or something? I am a bit new to all these reddit rules and regulations. I would be really grateful for the input though.

8

u/neveralone59 Sep 15 '26

Look at 80% of the posts on sub asking similar questions. Not using ai to generate your post would be a start. Or you can just search the sub for the same question being asked.

3

u/hakku276 Sep 15 '26

I actually wrote the post myself. its interesting for me though what made you feel like the post was written by AI. When I read my post again, I feel like the writing skill on my post is really bad.. But confused.

I tried some free tools to detect AI and I got a negative result. But feel free to suppose whatever you want. I cannot prove anything else than posting this screenshot :)

2

u/neveralone59 Sep 15 '26

The bold text and bulletpoints and emojis just make me tune out completely. Read any other similar post on this sub and you’ll see very quickly what I’m talking about. After reading I don’t doubt that you wrote it but I’m sure you can understand why I only skim these kinds of posts now

3

u/hakku276 Sep 15 '26

No worries, I understand. I created this account about a year ago I think, but never used it so much and only recently some of the guys I work with said that I could get some useful help in reddit communities so I have been using it a bit more now. Its sad then that there are only these other kinds of posts that you mentioned. Anyways.. I will try some local communities where I can meet people and ask about these things.

4

u/neveralone59 Sep 15 '26

Yeah this subreddit unfortunately hasn’t been that for a while, the moderation is really poor. The sysadmin sub is pretty good, you just need to structure your question quite a bit differently. A little less formal, no formatting and no emojis should get you most of the way there.

As to your original question, you’re asking about a file server where there are a known set of invariants that cause issues when they’re not in the correct state. This seems to me like a much better usecase for traditional observability and alerting. Setting up Prometheus to alert when the desired state is incorrect, then you can view the details from that alert. I’m not sure why you’d introduce an ai, except for locally if you need to ask questions using the date you’ve gathered from the relevant logs which, with proper alerting, will already be displayed to you. This is way simpler than implementing AI.

1

u/hakku276 Sep 15 '26

Thank you for the tip, I will try there as well. What I have is that I have is a really patched up system / solution basically which I ( or my team) inherited. There are these files servers which receives orders, and order confirmations and so on as files. Then these files are moved to another server where there are applications (for some reason we have 1 application per supplier) which listen for the files and then process them. And this is the shorter loop. Sometimes we have 2 to 3 servers where the files jump before making it to these applications. (Please don't ask me why)

And the biggest issue for us right now is that if lets say we notice there is a problem on some orders that we got no confirmation, then we have to check the path for these specific supplier and see on each test point if everything worked smoothly or there is a problem. Sometimes that could mean I am checking the log and sometimes it could mean I am just checking the folders if some files got stuck.

Therefore the idea that hey why not use AI for this. But maybe we as a team were just hyped for AI and MCP as a tech. Maybe observability and a better system restructuring could help us more.

2

u/neveralone59 Sep 15 '26

You’d have to implement controls for the mcp anyway which would mean implementing the primitives at least for proper observability. If you don’t know whether an order has gone through then that’s a real observability problem and the ai is going to struggle. You need real promoetheus scraping happening so you can actually see what’s happening in the system and where that diverges from what should be happening.

1

u/samehaircutfucks Sep 18 '26

It’s one emoji at the end.. and bullets are fine. Wtf are you on about.

1

u/neveralone59 Sep 18 '26

Read the other posts on this sub and it’ll be clear why I skimmed it

29

u/metalisticpain Sep 15 '26

CLI faster then a MCP.

7

u/JasonSt-Cyr Sep 15 '26

MCP is not going to solve this problem for you. Think of MCP as just another API endpoint, but it explains a little bit about what the endpoints do so your agent knows which one to call. You probably need to have some tools that your agent can use to help you scale.

That said... a lot of what you are talking about is covered by having infrastructure as code tools in your organization. There are plenty of free open source options as well as paid commercial offerings and enterprise-grade expensive ones.

  1. Use a deterministic tool to manage your infrastructure/drift/configs so they adhere to whatever policy your org has for those servers/apps over time... no one-off manual agent calls to try to fix a thing, have a source of truth and run infrastructure as code.
  2. When issues come up, use your agent for analysis, definitely. Let it help you debug faster and get some idea of how to solve the issue.
  3. Don't trust any of the agent's solutions and push directly to prod. Make sure you are validating it in staging/test environments before you allow it to be deployed further.

5

u/Adventurous-Put8305 Sep 15 '26

MCP against file servers, AWS, and Kubernetes is useful and dangerous for the same reason: the agent can take actions, not just summarize tickets.

Start read-only. Give the agent a scoped identity, not a shared admin role. Keep secrets out of the prompt path. Log every tool call. Require a human approval gate before writes, restarts, or config changes. Prefer known runbooks over open-ended "fix production" prompts.

If the business pressure is "every hour is lost revenue," that is an argument for tighter blast radius, not for wider permissions. An AI-Native ops path has an owner, an audit trail, and a kill switch. Without those, MCP is just a faster way to automate an outage

5

u/Sakred Sep 18 '26

Why implement deterministic rules and x-as-code when you can just point an LLM at something and HOPE for the best?!

Sarcasm aside, using LLM as your first step in trying to create a deterministic and consistent environment is not a good approach

5

u/bilingual-german Sep 18 '26

I don't get it. Why would you need an MCP server?

Claude code, Terraform, Ansible, Gitlab CI and bash scripts are more than enough.

Like someone else said, just use the CLIs. Install glab for gitlab and gh for Github, gcloud for GCP, awscli for AWS. Let AI create wrapper scripts to simplify operations. Give claude read access to your logs, metrics and traces if you have those.

4

u/TheIncarnated Sep 20 '26

Horrifyingly, this sounds like you aren't using IaC, otherwise, you'd have the LLM scan the IaC for performance enhancements.

Azure/AWS/gcloud CLI to call the environment and get a read on logs.

That's it. Have it comb the environment, then submit a PR to IaC, review it, push it, if it passes scrutiny

2

u/Human_Pollution2820 Sep 15 '26

I'm developing my own solution, I've successfully integrated AI with my zabbix monitoring, it is mostly barebones , but after I polish it I will start implementing ai ops capablities , basically give it all the adapters it needs depending on what kind of device it is managing, it can be API, ssh etc - do a web portal with chat etc

1

u/Romzorus591 Sep 19 '26

Interesting do you have a public repo ?

1

u/nemofbaby2014 Sep 19 '26

Depends on the issue I use maps to get a quick overview otherwise I’m just in the command line I don’t trust ai to do much than a quick look

1

u/Romzorus591 Sep 19 '26

I began to develop my own solution which is applying GitOps principle to configuration management. I have a central git repository where expected configuration of endpoints/servers is described and on each machine, a local agent regularly checks its own localhost against this expected configuration. It can be just assessment or self-remediation.

Like many others, not a big fan of anything AI-driven in this matter, unless you can be absolutely positive it only looks and doesn't touch anything, which you can't really...

2

u/Zenin The best way to DevOps is being dragged kicking and screaming. Sep 20 '26

a central git repository where expected configuration of endpoints/servers is described and on each machine, a local agent regularly checks its own localhost against this expected configuration

Pro tip: Don't ask LLMs to do defined, deterministic work. Instead make the LLM write the deterministic code that validates your configuration spec. Reliable, auditable, and a teeny-tiny fraction of the cost of asking LLMs to be glorified bash executors.

2

u/Romzorus591 Sep 20 '26

After reading my comment again, it did seem like my "agent" is an AI agent but it is not. I meant agent like a puppet or zabbix agent. I wrote it myself and there are no LLM involved anywhere. At best LLMs would be involved in the writing of the tooling like you said, agreed 100%

1

u/Routine_Low_6202 Sep 20 '26

There is even a vendor for this named Cloudaware that has built an MCP interface for your systems and their configurations.

1

u/StatureDelaware Sep 21 '26

I use Obelinf MCP, can confirm it's pretty awesome. I once configured it with my AWS account to be a source-of-truth of everything and got no issues so far

1

u/Early-Employee-5515 Sep 29 '26

Before locking in multi-year commitments or letting EA renewals auto-roll, its worth reviewing your actual resource utilization and tiering. A lot of teams run a quick licensing health check through trustedtech or an equivalent CSP to strip out dormant seats ​​​​a​​​​n​​​​d​​​​ optimize reserve instances before finance signs off on the next contract cycle.

1

u/LayerV-AI Sep 30 '26

MCP is nice as a wrapper for giving agents access to services but not so much for ops tasks like this

CLI or standard APIs is usually a lot more flexible and usually is the first to get new features and bug fixes.

Hence, for your example it might be better to start with something like a simple script that validates incoming files and flags unusual things -> uses AI for follow up work like log correlations and failure investigations or whatever else you need that is “operational” but hard to standardize

1

u/[deleted] Sep 15 '26

[removed] — view removed comment

5

u/pl2303 Sep 15 '26

So what's the hot stuff? 

0

u/[deleted] Sep 15 '26

[removed] — view removed comment

3

u/rozling Sep 15 '26

This kills the context window

2

u/danekan Sep 15 '26

I describe this as using ai to create or run deterministic code (integrations) vs ai to do non deterministic things.