When you first hear aboutMCP - Model Context Protocol, it sounds like something built for hardcore AI researchers. But here's the reality:Network engineers and automation engineersare going to be some of the biggest users of it.
In case you're wondering why: MCP is how you makeLarge Language Models (LLMs)understand your network, your topology, your standards,your world.
Without it?|?YouTube You're just getting generic ChatGPT answers.
With it? You're creatingAgentic AIthat can configure, troubleshoot, and design networks withyou.
I have been talking to you -You! ...Yes, you!- about network automation and adopting automation in your network engineering for years now. All in all, it's time to add another brick in *your* wall (of tech tools). In this AI Break, we'll explore an example that demonstrates the value of using MCP to master automation in today's AI world.
At its heart,Model Context Protocolis aboutinjecting structured knowledgeinto an LLM at runtime -automatically and programmatically.
Instead of manually pasting network diagrams or config templates into a chat window, MCP lets your tools tell the model:
All that context flows into the model, making its responses smarter, more aligned, and more useful for your environment.
Let's say you're building an LLM-basedNetwork Assistantthat helps generate configs. You don't want it suggestingRIPwhen your entire network runsOSPF and BGP.
With MCP, before you even ask the model for a config, you provide AI with the following context:
Look familiar? Yup, it's a JSON.
{ "network_standards": { "routing_protocols": ["OSPF", "BGP"], "preferred_encapsulation": "VXLAN", "security_policies": { "ssh_required": true, "telnet_disabled": true } }, "topology": { "core_devices": ["core-sw1", "core-sw2"], "edge_devices": ["edge-fw1", "edge-fw2"], "site_layout": "hub and spoke" }}
Your assistantautomaticallysends this context to the LLM using MCP, andthenasks, "Generate a config to onboard a new site."
The model nowanswers in a way that fits your environment- not some random textbook response.
Honestly, a lot of you already have most of what's needed:
MCP isn't some "maybe later" thing for networkers.
It's becomingthe bridgebetween your real-world network knowledge and AI's ability to help you faster, better, and more accurately.
Engineers who know how tofeed real context into LLMswill dominate network design, troubleshooting, security auditing, and even full-stack automation.
The best AI Agents are built by engineers who know their network-and know how to teach it to their AI. Next, let's get hands-on with MCP!
For a fully working code and instructions to get started, check out my project on GitHub.
Create areal Model Context Protocol (MCP)server designed fornetwork engineers.
This MCP app does the following:
And it's as simple as:
frommcp.server.fastmcpimport FastMCP
mcp= FastMCP("network-assistant")
@mcp.tool()async def get_network_standards()->dict[str, Any]: """Returns standard routing protocols, encapsulation, and security policies."""return NETWORK_STANDARDS
if__name__== "__main__": mcp.run(transport="stdio")
And if we look at it, this is what the LLM knows about your networkbeforeyou contextualized it:
And this isafterconnecting the LLM to our Network:
You're no longer scripting for the sake of scripting. And you don't just use AI for the sake of buzzwords. When you canblend live network state with LLM intelligence, you're building systems that think, adapt, and assistwith you-not justforyou.
Start simple. Build one flow.
Make your AI agentactually know your network. Because the future belongs to engineers who don't just automate-theycontextualize.
Welcome to the new frontier of Agentic AI!
Learning Paths, courses, free tutorials, and more. Unlock the future of technology with artificial intelligence training in Cisco U. Explore AI learning and start building your skills today.
Sign up for Cisco U. | Join the? Cisco Learning Network?today for free.| Join the? Cisco Learning Network?today for free.
Follow Cisco Learning & Certifications
X?|?Threads | Facebook?|?LinkedIn?|?Instagram|?Threads | Facebook?|?LinkedIn?|?Instagram?|?YouTube
Use? #CiscoU and #CiscoCert?to join the conversation.
Adaptability: The Must-Have Skill for Network Engineers in the AI Era
MCP for DevOps, NetOps, and SecOps: Real-World Use Cases and Future Insights