Cisco ACI Intelligent Explorer
Allows AI assistants to query and explore a Cisco ACI fabric in natural language, providing tools for schema search, live object queries, and more via APIC REST API.
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., "@Cisco ACI Intelligent ExplorerShow me all interfaces on node-101 that are DOWN"
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.
π§ Cisco ACI Intelligent Explorer β MCP Server
An AI-powered Model Context Protocol (MCP) server that lets any AI assistant (Claude, Cursor, VS Code Copilot, etc.) query and explore your Cisco ACI fabric in natural language.
π What Is This?
This project bridges Cisco ACI (Application Centric Infrastructure) and AI assistants through the Model Context Protocol (MCP). Instead of manually browsing the APIC GUI or writing REST API calls, you can simply ask your AI:
"Which Bridge Domains have Unicast Routing disabled but are still attached to an L3Out?" "Show me all interfaces on node-101 that are DOWN and explain why." "What BGP neighbors are configured on leaf-1 and how many are established?"
The MCP server translates these questions into precise APIC REST API calls and returns structured answers.
Related MCP server: now-sdk-ext-mcp
ποΈ Architecture
βββββββββββββββββββββββ MCP / SSE ββββββββββββββββββββββββββ
β AI Client β ββββββββββββββββββββββββΊ β ACI MCP Server β
β (Claude, Cursor, β (127.0.0.1:9000) β aci_mcp_server.py β
β VS Code, etc.) β β β
βββββββββββββββββββββββ β ββββββββββββββββββββ β
β β RAG Engine β β
β β (Semantic Searchβ β
β β over ACI MIM) β β
β ββββββββββββββββββββ β
β β
β ββββββββββββββββββββ β
β β APIC REST API β β
β β Live Queries β β
β ββββββββββββββββββββ β
ββββββββββ¬ββββββββββββββββ
β HTTPS
ββββββββββΌββββββββββββββββ
β Cisco APIC β
β (your fabric) β
ββββββββββββββββββββββββββπ Project Structure
cisco-aci-mcp-server/
β
βββ aci_mcp_server.py β π Main MCP Server (run this daily)
βββ apic_config.py β π APIC credentials (configure before first use)
βββ requirements.txt β π¦ Python dependencies (pip install -r requirements.txt)
β
βββ mcp_config/
β βββ aci_rag_dataset.json β ACI class knowledge base (~2.4 MB, 1000+ classes)
β βββ aci_rag_embeddings.npy β Pre-computed semantic embeddings (~9 MB)
β βββ aci_filters.json β APIC query filter reference guide
β
βββ download_classes.py β π One-time: downloads ACI class metadata from Cisco DevNet
βββ build_rag_dataset.py β π One-time: builds the RAG knowledge base
β
βββ aci_advanced_test_results.md β Sample: 32 real-world scenario test output (Markdown)π οΈ Available MCP Tools
The server exposes 12 tools to the AI client:
Tool | Type | Description |
| π Schema | Semantic search across 1000+ ACI classes using natural language |
| π Schema | All properties of an ACI class with types and descriptions (supports fuzzy case-matching) |
| π Schema | Child classes that can exist under a given parent class (supports fuzzy case-matching) |
| π Schema | Parent classes that contain a given class (supports fuzzy case-matching) |
| π Schema | Unified tool to explore logical relations (incoming, outgoing, or both) for a class |
| π Schema | Outgoing relations that originate FROM a given class pointing TO others |
| π Schema | Incoming relations that point TO a given class FROM others |
| π§ Utility | Constructs a syntactically valid and properly escaped ACI query filter string (prevents parens errors) |
| π΄ Live | Fetches one real live object from APIC to show actual field values (supports fuzzy case-matching) |
| π΄ Live | Queries live APIC for all objects of a class with filters, pagination, and client-side attribute filtering |
| π΄ Live | Fetches a specific Managed Object by its Distinguished Name with client-side attribute filtering |
| π Guide | Reference guide for building APIC filter queries |
β‘ Quick Start
1. Prerequisites
Python 3.10+
Access to a Cisco APIC (or use the free Cisco DevNet Sandbox)
An AI client that supports MCP over SSE (Claude Desktop, Cursor, VS Code with MCP extension, etc.)
2. Install Dependencies
pip install -r requirements.txtOr install individually:
pip install fastmcp httpx sentence-transformers numpy urllib33. Configure Your APIC
Edit apic_config.py:
APIC_SERVERS = [
{
"apicname": "myFabric", # Name you choose (used in queries)
"url": "https://192.168.10.10", # Your APIC IP or FQDN
"username": "admin",
"password": "YourPassword"
}
]β οΈ Security: Never commit real credentials to a public repository. Use environment variables or a secrets manager in production deployments.
4. Start the MCP Server
python aci_mcp_server.pyExpected output:
INFO: Starting MCP server 'Cisco ACI Intelligent Explorer Agent' with transport 'sse' on http://127.0.0.1:9000/sse
INFO: Uvicorn running on http://127.0.0.1:90005. Connect Your AI Client
Claude Desktop β add to claude_desktop_config.json:
{
"mcpServers": {
"cisco-aci": {
"url": "http://127.0.0.1:9000/sse"
}
}
}Cursor β add to .cursor/mcp.json:
{
"mcpServers": {
"cisco-aci": {
"url": "http://127.0.0.1:9000/sse"
}
}
}π Script Reference β When to Run What
The main server (aci_mcp_server.py) is the only file you run day-to-day. The other scripts are one-time setup or periodic update tools:
aci_mcp_server.py β Run Every Time You Use the System
python aci_mcp_server.pyStarts the MCP server on
http://127.0.0.1:9000/sseLoads the RAG dataset and semantic model on startup (~10-15 seconds)
Restart this if you: edit
apic_config.py, add new APIC servers, or updatemcp_config/files
download_classes.py β Run Once at Setup (or on ACI Version Upgrade)
python download_classes.pyDownloads ACI class metadata from Cisco DevNet documentation
Saves JSON files into
aci_classes_json/directoryWhen to re-run: Only when Cisco releases a new ACI software version and you want updated class definitions
build_rag_dataset.py β Run After download_classes.py
python build_rag_dataset.pyReads all JSON files from
aci_classes_json/Enriches data with a curated Acronyms/Synonyms Dictionary (29 entries: VRF, EPG, BD, AEP, vPC, LACP, OSPF, CDP, STP, VMM domain, L3Out EPG, Filter/ACL, Contract Subject, VLAN Pool and more)
Dynamically extracts configurable properties (
isConfigurable=True) for all classes to prevent system noiseBuilds
mcp_config/aci_rag_dataset.json(the knowledge base)Computes vector embeddings β
mcp_config/aci_rag_embeddings.npyWhen to re-run: After
download_classes.py, or if you modify class data / synonym mappings
Full Setup Flow (First-Time or ACI Version Update)
Step 1: python download_classes.py
ββ Downloads class metadata from Cisco DevNet β aci_classes_json/
Step 2: python build_rag_dataset.py
ββ Builds knowledge base β mcp_config/aci_rag_dataset.json
ββ Computes embeddings β mcp_config/aci_rag_embeddings.npy
Step 3: python aci_mcp_server.py
ββ Server ready at http://127.0.0.1:9000/sseπ‘ Tip: The
mcp_config/files are already included in this repository. For most users, you only need Step 3 (start the server directly). Steps 1 and 2 are only needed when updating for a new Cisco ACI version.
π Security Design
Protection | Description |
No credential leaks | Error messages to AI clients never contain APIC URLs, usernames, passwords, or tokens β sensitive details stay in server logs only |
GET-only | The server exclusively uses HTTP GET requests β it cannot create, update, or delete any fabric object |
Rate limiting | Sliding-window limiter (30 requests / 60 seconds) prevents AI loops from flooding your APIC |
Input validation | All DN inputs are validated with a strict regex β path traversal attacks and injection attempts are blocked before any network call |
Page size control | Single queries return at most 1,000 objects; pagination with |
Client-Side Attribute Filtering | Prevents 400 Bad Request by fetching all fields internally from APIC and filtering attributes in Python ( |
Case-Insensitive Normalization | Prevents AI matching errors by dynamically normalising query class names (e.g. |
AI Error Recovery Hints | Every validation error (invalid filter, bad DN, wrong rsp_props, rate limit) includes a |
π¬ Example Queries
Once connected, ask your AI natural language questions:
"Show me all tenants in the fabric"
"Which EPGs are providing the 'web-contract'?"
"Find all Bridge Domains without subnets in tenant CHA_PCIDSS_TN"
"What is the operational status of all ports on node-101?"
"Are there any faults with severity 'critical' or 'major'?"
"Show BGP peer configuration for node-101 and compare to runtime state"
"Which LLDP policies have TX disabled and where are they applied?"
"Find EPGs with static port bindings but no active endpoints"
"What are the active VTEP tunnels and which nodes do they belong to?"π Requirements
fastmcp>=0.1.0
httpx
sentence-transformers
numpy
urllib3Install all at once:
pip install fastmcp httpx sentence-transformers numpy urllib3π§ͺ Test Results
See aci_advanced_test_results.md for a complete diagnostics test run output.
A total of 32 real-world operational and audit scenarios (including advanced troubleshooting, logical relation tracing, DN drill-down exploration, and example query runs) were successfully executed against the Cisco DevNet Sandbox APIC. The results file contains full details of the tool call flows, arguments, and live APIC responses, demonstrating successful end-to-end execution of the MCP server.
π€ Contributing & Feedback
Contributions, issues, and feature requests are welcome! Feel free to:
Open an Issue to report bugs or suggest new features.
Start a Discussion (if enabled) if you have questions or ideas to share.
Submit a Pull Request (PR) to improve the codebase.
For direct feedback, you can reach out via email: ciftcigkhn@gmail.com
π License
This project is provided for educational and operational use under the MIT License. Not affiliated with or endorsed by Cisco Systems, Inc.
πΉπ· TΓΌrkΓ§e DokΓΌmantasyon
TΓΌrkΓ§e kullanΔ±m kΔ±lavuzu iΓ§in bkz: README_TR.md
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/gokhan-ciftci/cisco-aci-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server