Provides intelligent wireless client management tools for Cisco Catalyst Center (DNA Center), enabling queries for wireless clients with filtering by site, MAC, IP, SSID, band, and hostname, as well as detailed client health monitoring and diagnostics.
Cisco Catalyst Center (DNAC) MCP Server
MCP server providing intelligent wireless client management tools for Cisco Catalyst Center (DNA Center). This server exposes DNAC wireless client queries through the Model Context Protocol (MCP), enabling AI assistants like Claude to interact with your Catalyst Center infrastructure.
Features
šÆ Smart Query Limiting: Automatic result limiting with configurable thresholds
š Pagination Handling: Transparent pagination for large result sets
š” Actionable Guidance: Intelligent suggestions when results exceed limits
š Rich Filtering: Filter by site, MAC, IP, SSID, band, hostname, and more
š„ Health Monitoring: Detailed client health metrics and diagnostics
ā” Rate Limiting: Built-in API throttling to prevent overload
š Secure: Support for SSL verification and credential management
Installation
Prerequisites
Python 3.10 or higher
Access to Cisco Catalyst Center (DNAC) with API credentials
Claude Desktop or another MCP client
Install from Source
Install for Development
Configuration
Option 1: Environment Variables (Recommended)
Set the following environment variables:
On Windows:
Option 2: Configuration File
Create a config.json file:
Set the config file path:
Option 3: Per-Request Credentials
Pass credentials with each tool call (see Usage examples below).
Claude Desktop Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Or use the installed script:
After updating the config, restart Claude Desktop.
Usage
Available Tools
1. query_wireless_clients
Query wireless clients with smart filtering and limiting.
Parameters:
base_url(required): Catalyst Center URL (e.g.,"https://dnac.example.com")username(required): DNAC usernamepassword(required): DNAC passwordsite_id(optional): Filter by site UUIDmac_address(optional): Filter by client MAC addresshostname(optional): Filter by Access Point hostnameip_address(optional): Filter by client IP addressssid(optional): Filter by SSID nameband(optional): Filter by frequency band (e.g.,"2.4GHz","5GHz")max_results(optional): Maximum clients to return (default: 100)version(optional): DNAC API version (default:"2.3.7.6")verify(optional): Verify SSL certificates (default:true)debug(optional): Enable debug logging (default:true)
Returns:
clients: List of client dictionariestotal_count: Total matching clientsexceeded_limit: Boolean if total > max_resultsguidance: Actionable tips to refine queryfetched_count: Actual number returned
Example Prompts for Claude:
2. get_client_health
Get detailed health information for a specific client.
Parameters:
base_url(required): Catalyst Center URLusername(required): DNAC usernamepassword(required): DNAC passwordmac_address(required): Client MAC addressversion(optional): DNAC API version (default:"2.3.7.6")verify(optional): Verify SSL certificates (default:true)
Returns:
health: Detailed health metricsresponse: Full API response datamac_address: Queried MAC address
Example Prompts for Claude:
Development
Running Tests
Code Quality
Project Structure
Troubleshooting
Connection Issues
Problem: Cannot connect to DNAC Solution:
Verify
base_urlis correct (do not include/api/path)Check credentials
For self-signed certificates, set
verify=false
SSL Certificate Errors
Problem: SSL verification fails Solution:
Or in config.json:
No Results Returned
Problem: Query returns 0 clients Solution:
Verify filters are correct
Check DNAC has clients matching criteria
Try query without filters first
Enable debug logging:
debug=true
API Version Mismatch
Problem: API calls fail with version errors Solution: Update the version parameter to match your DNAC version:
Rate Limiting
Problem: Too many API requests Solution: The server includes built-in rate limiting (0.5s delay between calls). Adjust if needed in wireless_client_agent.py.
Security Best Practices
Never commit credentials to version control
Use environment variables or secrets manager for credentials
Enable SSL verification in production (
verify=true)Use least privilege DNAC accounts (read-only if possible)
Rotate credentials regularly
Audit API access through DNAC logs
API Reference
WirelessClientAgent Class
Standalone Functions
Contributing
Contributions are welcome! Please follow these guidelines:
Fork the repository
Create a feature branch:
git checkout -b feature-nameFollow TDD principles (write tests first!)
Follow SOLID principles in design
Format code:
black src testsLint code:
ruff check src testsRun tests:
pytestCommit changes:
git commit -am 'Add feature'Push to branch:
git push origin feature-nameSubmit a Pull Request
License
MIT License - see LICENSE file for details.
Support
Issues: GitHub Issues
Documentation: DNAC SDK Docs
MCP Spec: Model Context Protocol
Acknowledgments
Built with dnacentersdk
Implements Model Context Protocol (MCP)
Inspired by Cisco DevNet community
Roadmap
Add support for wired clients
Implement client troubleshooting tools
Add network device queries
Support for client statistics and trends
Webhook notifications for client events
GraphQL query support
Multi-site aggregation
Export to CSV/JSON
Changelog
v1.0.0 (2025-01-XX)
Initial release
Wireless client query with smart limiting
Client health monitoring
MCP server implementation
Configuration management
Comprehensive documentation
This server cannot be installed