Cisco FMC Server
БесплатноНе проверенA read-only MCP server for Cisco Firepower Management Center (FMC) 7.4.x, allowing LLMs to query firewall configuration, search network objects, and check deplo
Описание
A read-only MCP server for Cisco Firepower Management Center (FMC) 7.4.x, allowing LLMs to query firewall configuration, search network objects, and check deployment status through natural language.
README
A read-only Model Context Protocol (MCP) server for Cisco Firepower Management Center (FMC) 7.4.x.
This server allows LLMs like Claude to query your firewall configuration, search for network objects, and check deployment status—all through natural language.
Features
- Read-Only Access: Safe exploration of FMC configuration without modification risk
- Rate Limiting: Built-in token bucket rate limiter (120 req/min, 10 concurrent connections)
- Automatic Token Refresh: Handles FMC's 30-minute token expiration and 3-refresh limit
- Transparent Pagination: Automatically fetches all pages from large datasets
MCP Resources
| Resource | Description |
|---|---|
fmc://system/info |
FMC server version and system information |
fmc://devices/list |
List of all managed firewall devices |
fmc://objects/network |
All network objects (IPs, subnets) |
fmc://deployment/status |
Devices with pending changes |
MCP Tools
| Tool | Description |
|---|---|
search_object_by_ip |
Find network objects containing a specific IP |
get_deployment_status |
Check if devices are in sync |
Installation
Prerequisites
- Python 3.10+
- uv (recommended) or pip
- Access to a Cisco FMC 7.4.x instance
Using uv (Recommended)
# Clone the repository
git clone https://github.com/your-org/fmc-mcp.git
cd fmc-mcp
# Install dependencies
uv sync
Using pip
pip install -e .
Configuration
- Copy the example configuration:
cp .env.example .env
- Edit
.envwith your FMC credentials:
FMC_HOST=fmc.example.com
FMC_USERNAME=api_user
FMC_PASSWORD=your_password_here
Configuration Options
| Variable | Required | Default | Description |
|---|---|---|---|
FMC_HOST |
Yes | - | FMC hostname or IP |
FMC_USERNAME |
Yes | - | API username |
FMC_PASSWORD |
Yes | - | API password |
FMC_VERIFY_SSL |
No | false |
SSL certificate verification |
FMC_DOMAIN_UUID |
No | auto | Domain UUID (auto-discovered) |
FMC_TIMEOUT |
No | 60 |
Request timeout in seconds |
MCP_TRANSPORT |
No | stdio |
Transport mode: stdio or http |
MCP_HOST |
No | 127.0.0.1 |
HTTP server host (HTTP mode only) |
MCP_PORT |
No | 8080 |
HTTP server port (HTTP mode only) |
Usage
Running the Server
stdio Mode (Default - for Claude Desktop)
# Using uv
uv run python -m fmc_mcp
# Or using the CLI entry point
uv run mcp-server-fmc
HTTP/SSE Mode (for Integration Testing)
HTTP/SSE mode enables multiple client connections and integration testing scenarios:
# Set environment variable for HTTP mode
export MCP_TRANSPORT=http
export MCP_HOST=127.0.0.1 # Optional, defaults to 127.0.0.1
export MCP_PORT=8080 # Optional, defaults to 8080
# Run the server
uv run python -m fmc_mcp
Or add to your .env file:
MCP_TRANSPORT=http
MCP_HOST=127.0.0.1
MCP_PORT=8080
Benefits of HTTP/SSE mode:
- Multiple concurrent client connections
- Integration testing with Python MCP clients
- Health checks and monitoring
- Standard HTTP debugging tools
Testing Connection
uv run python -c "from fmc_mcp.client import FMCClient; import asyncio; asyncio.run(FMCClient().test_connection())"
Claude Desktop Integration
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"fmc": {
"command": "uv",
"args": ["run", "--directory", "/path/to/fmc-mcp", "python", "-m", "fmc_mcp"]
}
}
}
Then restart Claude Desktop and try:
- "What version is my FMC running?"
- "List all firewall devices"
- "Find the network object for IP 10.10.10.5"
- "Are there any pending deployments?"
MCP Inspector Testing
# Install MCP Inspector
npx @anthropic/mcp-inspector
# Run the server
uv run python -m fmc_mcp
Development
Running Tests
# Run all tests
uv run pytest -v
# Run with coverage
uv run pytest --cov=src/fmc_mcp --cov-report=term-missing
Code Quality
# Linting
uv run ruff check src/ tests/
# Type checking
uv run mypy src/
API Rate Limits
The FMC API has strict rate limits that this server respects:
| Limit | Value | How We Handle It |
|---|---|---|
| Requests per minute | 120 | Token bucket rate limiter |
| Concurrent connections | 10 | Connection semaphore |
| Token lifetime | 30 min | Auto-refresh on 401 |
| Max token refreshes | 3 | Full re-authentication after 3 |
The server logs warnings when approaching rate limits:
WARNINGwhen token bucket drops below 20%ERRORon 429 (rate limited) responses
Security Notes
- Read-Only: This server only performs GET requests
- SSL: Disabled by default for lab environments; enable in production
- Credentials: Store in
.env, never commit to version control - API User: Create a dedicated read-only API user in FMC
License
Apache 2.0
Установка Cisco FMC Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/lbreukel1/fmc-mcpFAQ
Cisco FMC Server MCP бесплатный?
Да, Cisco FMC Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Cisco FMC Server?
Нет, Cisco FMC Server работает без API-ключей и переменных окружения.
Cisco FMC Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Cisco FMC Server в Claude Desktop, Claude Code или Cursor?
Открой Cisco FMC Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Cisco FMC Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
